language icon indicating copy to clipboard operation
language copied to clipboard

Grammar refactor

Open d-jeffery opened this issue 2 years ago • 1 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

@rhamzeh is this still a problem?

Check https://github.com/mindersec/minder/blob/main/internal/authz/model/minder.fga

aaguiarz avatar Oct 26 '24 17:10 aaguiarz