Create term precendence level

This commit is contained in:
Bartłomiej Pluta
2019-07-10 22:05:45 +02:00
parent 29820fb2ee
commit 1d573c8c80
7 changed files with 24 additions and 11 deletions

View File

@@ -8,4 +8,5 @@ class Factor(BinaryOperator):
pass
FactorParser = Parser.leftAssociativeOperatorParser(ChainParser, [TokenType.DOUBLE_ASTERISK], ChainParser, lambda left, op, right: Factor.withValues(left, op, right))
FactorParser = Parser.leftAssociativeOperatorParser(ChainParser, [TokenType.DOUBLE_ASTERISK], ChainParser,
lambda left, op, right: Factor.withValues(left, op, right))