Update HTMLLexer.g4#4092
Conversation
All grammars in this repo are for parsers, so a grammar that is just for lexing is new. One solution is to just have a parser grammar that accepts all tokens: That said, there are problems with your lexer grammar. There are a half-dozen warnings from the Antlr Tool on this grammar. These indicate string literal overlap, which is not acceptable. I plan to add a switch to treat all warnings as errors in the future, which means the grammar won't pass testing. |
|
Hello, thank you for your reply. In the next few hours, I will create a new folder in my repository and try again to request a pull |
|
This is my grammar executor I get error from here I don't do it, at least in the log cat of my program |
You need to add your listener before calling the tool to compile each .g4! |
Hello, I created one of the most complete and professional grammars possible for the web. You can use this grammar for html, js, css, and sass. It supports several programming languages in one grammar. You can make your own changes in it. The fact is this. I can't make a parser, I leave it to you, the final output is shown in the image I posted, I hope you accept these changes and I will be motivated to create more and better grammars.