Create statements and block nodes

This commit is contained in:
Bartłomiej Pluta
2019-07-11 00:18:40 +02:00
parent 5a25ec6ffe
commit 101ce862b0
4 changed files with 43 additions and 31 deletions

View File

@@ -1,5 +1,5 @@
from smnp.ast.node.expression import MaxPrecedenceExpressionParser
from smnp.ast.node.model import Node, ParseResult
from smnp.ast.node.statement import StatementParser
from smnp.ast.parser import Parser
@@ -12,10 +12,7 @@ def parse(input):
while input.hasCurrent():
result = Parser.oneOf(
# Start Symbol
#TODO -> temporary (to remove):
MaxPrecedenceExpressionParser,
StatementParser,
exception=RuntimeError("Nie znam tego wyrazenia")
)(input)