From 24bcff2e409f6fbffc517cb8190bba33a473f358 Mon Sep 17 00:00:00 2001 From: Drew Galbraith Date: Sat, 25 Nov 2023 13:07:27 -0800 Subject: [PATCH] [Yunq] Fix syntax error in yunq. --- yunq/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yunq/parser.py b/yunq/parser.py index 2cc9f40..ef923bb 100644 --- a/yunq/parser.py +++ b/yunq/parser.py @@ -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()