Unverified Commit 25bd59fb authored by Gao, Xiang's avatar Gao, Xiang Committed by GitHub
Browse files

Using the lalr parser loads networks x2 faster (#9) (#538)


Co-authored-by: default avatarIgnacio Pickering <ign.pickering@gmail.com>
parent 648c970e
......@@ -147,7 +147,7 @@ def load_atomic_network(filename):
%import common.CNAME
%import common.WS
%ignore WS
''')
''', parser='lalr')
tree = parser.parse(nnf_file)
# execute parse tree
......@@ -362,7 +362,7 @@ if sys.version_info[0] > 2:
%import common.WS
%ignore WS
%ignore /!.*/
''') # noqa: E501
''', parser='lalr') # noqa: E501
tree = parser.parse(txt)
class TreeExec(lark.Transformer):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment