[Yunq] Fix syntax error in yunq.
This commit is contained in:
parent
4ee4f9cb87
commit
24bcff2e40
|
@ -155,7 +155,7 @@ class Parser():
|
||||||
def consume_check(self, lex_type: LexemeType):
|
def consume_check(self, lex_type: LexemeType):
|
||||||
tok = self.consume()
|
tok = self.consume()
|
||||||
if tok.type != lex_type:
|
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):
|
def consume_check_identifier(self, name: str):
|
||||||
tok = self.consume()
|
tok = self.consume()
|
||||||
|
|
Loading…
Reference in New Issue