diff --git a/src/parser.py b/src/parser.py index 26532c5..764b968 100644 --- a/src/parser.py +++ b/src/parser.py @@ -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}'." diff --git a/version.json b/version.json index 4af1979..e74b536 100644 --- a/version.json +++ b/version.json @@ -1,5 +1,5 @@ { - "noug_version": "0.3", + "noug_version": "0.4", "phase": "alpha", "inherit": true }