diff options
Diffstat (limited to 'Homework/cs5300/project-three/out/production/p3-parser/data/Expr.cfg')
| -rw-r--r-- | Homework/cs5300/project-three/out/production/p3-parser/data/Expr.cfg | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Homework/cs5300/project-three/out/production/p3-parser/data/Expr.cfg b/Homework/cs5300/project-three/out/production/p3-parser/data/Expr.cfg new file mode 100644 index 0000000..7493e3e --- /dev/null +++ b/Homework/cs5300/project-three/out/production/p3-parser/data/Expr.cfg @@ -0,0 +1,25 @@ +// +// DO NOT MODIFY THIS FILE. +// +// This file contains an expression grammar that uses tokens described in +// ExprLexer.tokens. + +grammar Expr; + +goal: expr; + +expr: expr PLUS term + | expr MINUS term + | term + ; + +term : term MULTIPLY factor + | term DIVIDE factor + | factor + ; + +factor: OPAREN expr CPAREN + | INT + | FLOAT + | IDENTIFIER + ;
\ No newline at end of file |
