[Yunq] Fix syntax error in yunq.

This commit is contained in:
Drew Galbraith 2023-11-25 13:07:27 -08:00
parent 4ee4f9cb87
commit 24bcff2e40
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ class Parser():
def consume_check(self, lex_type: LexemeType):
tok = self.consume()
if tok.type != lex_type:
sys.exit("Expected %s got %s" % (lex_type, tok_type))
sys.exit("Expected %s got %s" % (lex_type, tok.type))
def consume_check_identifier(self, name: str):
tok = self.consume()