Skip to content

Commit

Permalink
better error msg + increase version
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-develop committed Apr 5, 2022
1 parent f2a3b3c commit 13a275d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ def expr(self):
equals = EQUALS

if self.current_token.type not in equals:
if self.current_token.type not in TOKENS_TO_QUOTE:
if self.current_token.type in [TT_EE, TT_GT, TT_LT, TT_GTE, TT_LTE]:
error_msg = f"expected an assignation equal, but got a test equal ('{self.current_token.type}')."
elif self.current_token.type not in TOKENS_TO_QUOTE:
error_msg = f"expected an equal, but got {self.current_token.type}."
else:
error_msg = f"expected an equal, but got '{self.current_token.type}'."
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"noug_version": "0.3",
"noug_version": "0.4",
"phase": "alpha",
"inherit": true
}

0 comments on commit 13a275d

Please sign in to comment.