-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[new Grammer] web ful grammer #4404
Comments
We could merge the grammars but it's not practical yet. The problem is that Antlr4 doesn't have a good way to add different grammars together like this. Symbol names collide, and the lexer rules are all active, which is not what should be done. The plan is to see if we can get either Antlr-ng or Antlr5 to make this easier to do. |
Will everything change in antlr5? |
Not sure. I have to lobby for a change to do this. Antlr-ng, which is a rewrite of Antlr4 from Java to TypeScript, is coming along nicely. But just without extensions it will be several more months. Antlr5 hasn't had any progress since Feb 2024. If neither have an extension to handle what we want then I will extend the Trash Toolkit to add grammars together but it will not be native in either Antlr or Antlr-ng and it will result in a very large, combined grammar. |
hi @kaby76 Can you combine the 3 important grammars? HTML CSS JS
The text was updated successfully, but these errors were encountered: