-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a strongly typed AST #121
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently to create new rules it's necessary to know the internals of the grammar and look at the generated AST using the zpa-toolkit. Ideally we should provide an easier API to navigate through the AST.
Example:
zpa/plsql-custom-rules/src/main/java/com/company/plsql/ForbiddenDmlCheck.java
Lines 28 to 34 in 304aa89
With a strongly typed AST it could be write like:
The SSLR library provides a API to create a typed AST but it only works with lexerless grammars, but we can't migrate to a lexerless grammar because it's much slower than the lexerful one.
The text was updated successfully, but these errors were encountered: