We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47fdfbc commit b1a630dCopy full SHA for b1a630d
1 file changed
lark/grammar.py
@@ -60,7 +60,7 @@ class NonTerminal(Symbol):
60
def serialize(self, memo=None) -> Dict[str, Any]:
61
# TODO this is here because self.name can be a Token instance.
62
# remove this function when the issue is fixed. (backwards-incompatible)
63
- return {'name': str(self.name)}
+ return {'name': str(self.name), '__type__': 'NonTerminal'}
64
65
66
class RuleOptions(Serialize):
0 commit comments