Ken Domino

Results 839 comments of Ken Domino

The easiest solution would be to just delete the INDENT and DEDENT leaves, then just [get the Interval for the sub-tree](https://github.com/antlr/antlr4/blob/b3bb7439546d2035203790d5513c505720cf0bdd/runtime/CSharp/src/Tree/ISyntaxTree.cs#L35). *But, the Antlr runtime doesn't have tree editing.* Instead,...

> [W]e are using custom listener class to identify the endlines for each class, function, statement, etc. by overriding the base listener enter and exit methods. > > For Example:...

> Furthermore, the text property of the EOF token generated by ANTLR is also not an empty string, but <EOF> It might be a good idea to add to the...

> I don't know if the Trash can filter by channel instead of delete. I don't think so at the moment. Token text is addressed using a function `text()`, e.g.,...

What is the grammar? ~~Is it the CPP14 grammar from grammars-v4? https://github.com/antlr/grammars-v4/tree/83cb847a0a6d278b166eb3cb48f032533d0c8060/cpp ? That grammar does not use a symbol table.~~ **It's not the cpp14 grammar because there's no `block`,...

You cannot use the [rust grammar from grammars-v4](https://github.com/antlr/grammars-v4/tree/5bb56f34bff3e0a43197d6e61ca89e2499e5c30b/rust) in antlr-lab. It's impossible because the website uses the "interpreter" form of the parser engine. The rust grammar contains target language specific...

The main problem retaining converted grammars to other parser generators is that there will be grammars that will need to be kept in synch with each other. If we provide...

Someone manually changed the grammars.json file. https://github.com/antlr/grammars-v4/blob/1e08bcbcc56b8ff2cfad7508815544e141d188e9/grammars.json#L2070. It's wrong and it should have been generated by script, not hand edited. https://github.com/antlr/grammars-v4/blob/master/_scripts/mkindex.py

> Upon further inspection, this is actually a bug with mkindex.py itself. I tried running mkindex.py again and got this output, which is still wrong: [grammar.json](https://github.com/user-attachments/files/16401191/grammar.json) Thanks for checking this....

While the parser and lexer grammar tabs fill up with the correct .g4 data, lab.antlr.org does not work with either of the kotlin grammars. It can't because the .g4's contain...