language icon indicating copy to clipboard operation
language copied to clipboard

Grammar refactor

Open d-jeffery opened this issue 1 year ago • 0 comments

When time allows, we can build off the following PR and improve the tokenization of the lexer and parser.

https://github.com/openfga/language/pull/22

Core problem stopping this is the character chosen to trigger a comment - it is very difficult to match with best practices in ANTLR4. https://github.com/antlr/grammars-v4/blob/3ecefc5f8ed0a38ff4b68705bcfd521bcd59f8d3/python/python2-js/Python2.g4#L454

d-jeffery avatar Aug 10 '23 16:08 d-jeffery