Skip to content

Commit

Permalink
Fix, thanks to Ethan Sarif-Kattan
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwickerson authored Feb 11, 2019
1 parent 8a6bfa0 commit 9de6b35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 2-parsers/src/maths_parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@

ROOT : EXPR { g_root = $1; }

/* TODO-3 : Add support for (x+6) and (10-y). You'll need to add production rules, and create an AddOperator or
/* TODO-3 : Add support for (x + 6) and (10 - y). You'll need to add production rules, and create an AddOperator or
SubOperator. */
EXPR : TERM { $$ = $1; }

/* TODO-4 : Add support (x*6) and (z/11). */
/* TODO-4 : Add support (x * 6) and (z / 11). */
TERM : FACTOR { $$ = $1; }

/* TODO-2 : Add a rule for variable, base on the pattern of number. */
Expand Down

0 comments on commit 9de6b35

Please sign in to comment.