Closed joepalermo closed 3 years ago
"/\"
is not a valid string literal. It has an escaped "
, meaning the actual string literals continues a bit. Somehow your grammar is designed in a way that it doesn't break the lexer, but only the parser. A syntax highlighter would help there.
Also, these kinds of questions are better over at the gitter chat.
As @MegaIng said, you should use "/\\"
instead.
@erezsh that is what he is using. I assume you mean "/\\"
Whoops, I forgot to quote it.
Thanks. That resolved it.
@MegaIng I can't access that link
What is your question?
I can't create a parser from my grammar. I would appreciate any help debugging my grammar.
Here's the traceback:
I'm reading my grammar in from a text file and then invoking Lark as follows:
parser = Lark(lark_grammar, parser='lalr', debug=True)
Here's the grammar (note that it has about 1500 production rules):
lark_grammar.txt