Robert Einhorn

Results 31 comments of Robert Einhorn

Yes, I have an implementation for Python 3.10 in ANTLR4. I'll share in a few days.

uploaded: [https://github.com/RobEin/ANTLR4-Python-grammar-by-PEG](https://github.com/RobEin/ANTLR4-Python-grammar-by-PEG) I'm not uploading it to the ANTLR4 repository yet because it has yet to be tested. I have passed all the old tests, but I don't have many...

I still have to work on it. The parser is extremely slow but looks like it works. The grammar was tested with the [latest Python standard library](https://github.com/python/cpython/tree/main/Lib). I found a...

I have also uploaded [another version](https://github.com/RobEin/ANTLR4-parser-for-Python-3.8.12) (3.8.12) which can also handle the named expressions. It's fast enough, but it's still being tested. I hope it helps.

I don't know if it helps. I use something like this to insert INDENT and DEDENT tokens for Python [Lexers](https://github.com/antlr/grammars-v4/tree/master/python/python3_12_1) with TypeScript target. There is no emitToken(). ``` import {...

Already [added](https://github.com/antlr/antlr4/commit/d0440f4673cd177eba00593685c1575e988b2c94) to Token.d.ts. In principle, it will be included in the next ANTLR (4.13.2). Until then, feel free to use [this](https://github.com/antlr/antlr4/blob/dev/runtime/JavaScript/src/antlr4/Token.d.ts) instead of the current one. You can rebuild...

The [lexical analysis documentation](https://docs.python.org/3.12/reference/lexical_analysis.html#comments) does not mention the generation of the TYPE_COMMENT token. Maybe another documentation describes it somewhere, but I haven't found it so far. The solution for the...

A Python 3.11.4 parser for ANTLR4 is ready. It looks like it's working fine, although it's still very slow. If you are interested, please test it. https://github.com/RobEin/ANTLR4-Python-grammar-by-PEG

I did not reply from e-mail. I wrote a response from the webpage, but I deleted it in a few minutes. That was. Thank you for looking over my parser,...

I found a few errors and fixed them. It looks like it's parsing properly now. https://github.com/RobEin/ANTLR4-Python-grammar-by-PEG However, it is still very slow.