Replies: 1 comment 4 replies
-
Hi @gitchong! While it's not 100% up to data, you could take a look at the BNF used by the IntelliJ OPA plugin: https://github.com/open-policy-agent/opa-idea-plugin/blob/master/src/main/grammar/Rego.bnf It's also used in a JVM project, so you should be able to pull some of the code from there as well if that would help. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I use the old grammar, the rego input file cannot be recognized correctly. Since I am a rookie and cannot modify the lexer and parser very well, I need the latest rego grammar. I am going to use java to check whether the rego file is grammatically correct with the help of antlr v4. Please help me if there is an easier way, thanks a lot
Beta Was this translation helpful? Give feedback.
All reactions