Closed kskyten closed 3 years ago
The top level grammar rule needs to be stated explicitly, unless it is named "start". So you should call the parser as follows:
Lark(GRAMMAR, parser="lalr", lexer="contextual",start="document")
assuming document
is the top-level rule. Python Lark should also require the "start" option for this grammar.
Thanks! It works now.
I tried to use the tartiflette Lark grammar for Graphql with
This gives the following error message:
However, the grammar does not even contain the word start.