Ken Domino

Results 839 comments of Ken Domino

Apparently, the crash happens when using a local copy of the Antlr Tool that fixes a problem with empty actions. https://github.com/antlr/antlr4/issues/4819. But, just looking over the base class code for...

Thanks for this, but the code doesn't compile/link. Correcting the compilation errors, it crashes. The first thing you'll need to do is to fit this into the build because as...

That doesn't sound right because PythonLexerBase is derived from Lexer not PythonLexer in the TypeScript port: https://github.com/antlr/grammars-v4/blob/56308f1c292051262306a8a604a225a4768e6663/python/python3_13/TypeScript/PythonLexerBase.ts#L35

@teverett Hold please. The PR is not being teated and it contains many compilation issues.

@teverett Could we get a build of this PR? Thanks!

> 1. def test () > 2. print hello > 3. [WebIDL Grammar #3](https://github.com/antlr/grammars-v4/pull/3) > 4. def another () > 5. print hello 2 What is the input? The above...

I agree, I'm not sure what the problem is here. Input: ``` def test(): xxx=1 print xxx def greet(): print 'Hello World' greet(); ``` Or in file: [xxx.txt](https://github.com/user-attachments/files/16111850/xxx.txt). The parse...

The only thing that would be nice to change is the text for the INDENT and DEDENT tokens. They are `` and `` respectively. But the text is inconsistent with...

> The rule is very simple to restore the original source code by the token stream[:] You just have to take out the INDENT and DEDENT tokens. > ... >...

`tree.getText()` doesn't reconstruct the text of the input. It never does for virtually every Antlr grammar! This is because Antlr parse trees don't contain all the tokens of the input,...