antlr4rust icon indicating copy to clipboard operation
antlr4rust copied to clipboard

ANTLR4 parser generator runtime for Rust programming laguage

Results 33 antlr4rust issues
Sort by recently updated
recently updated
newest added

When building the PlSql grammar from https://github.com/antlr/grammars-v4/blob/master/sql/plsql/PlSqlParser.g4 and https://github.com/antlr/grammars-v4/blob/master/sql/plsql/PlSqlLexer.g4, the generated Rust code fails to compile with the following error. ``` error[E0405]: cannot find trait `PlSqlParserParserContext` in this scope -->...

You seem to have forgot that your antlr fork still contain and old pointer for the git submodule Rust@76d0a7d You should update it or add instruction to update it :...

This PR upgraded the rust toolchain and fixed the warnings, also fixed a error that had been complained in https://github.com/rrevenantt/antlr4rust/issues/34. @rrevenantt PTAL

To repro: - use grammars here: https://github.com/sepp2k/antlr4-string-interpolation-examples/tree/master/with-duplication - run commands - `java -jar ./antlr4-4.8-2-SNAPSHOT-complete.jar -Dlanguage=Rust StringLexer.g4` - `java -jar ./antlr4-4.8-2-SNAPSHOT-complete.jar -Dlanguage=Rust StringParser.g4` - Observe errors, e.g: ``error[E0412]: cannot find type...

Implement (previously) broken exception handling.

I'm attempting to use a grammar originally generated to Java, which contains a number of lexer actions that behave differently depending on the current mode / contents of the mode...

The `build.rs` [references a local antlr.jar](https://github.com/rrevenantt/antlr4rust/blob/master/build.rs#L29) that usually does not exist when using antlr4rust as a dependency. This seems to trigger a full rebuild every time, [according to a cargo...

First of all, thanks a lot for implementing this tool. I have generated a parser and visitor for the OpenCypher syntax using your generator. Everything has worked well out of...

Some languages use INDENT\DEDENT tokens such as python. Does this crate have the function to handle them? https://github.com/yshavit/antlr-denter/blob/master/Java/core/src/main/java/com/yuvalshavit/antlr4/DenterHelper.java and is there any example for that?