master > master: umbenennung von grammatik
This commit is contained in:
parent
30ed4667e1
commit
cbeca60c33
@ -15,7 +15,7 @@ from aussagenlogik.syntaxbaum import SyntaxBaum;
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
# lexer durch LARK erzeugen
|
||||
with open('grammars/grammar.lark', 'r') as fp:
|
||||
with open('grammars/aussagenlogik.lark', 'r') as fp:
|
||||
grammar = ''.join(fp.readlines());
|
||||
lexer = Lark(grammar, start='expr', regex=True);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user