antlr4
antlr4 copied to clipboard
ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.
I'm running into a similar slowdown to the one reported a few years ago here: https://github.com/antlr/antlr4/issues/2454. Specifically, I'm using ANTLR4 for a variety of syntax analysis tasks, in a batch-processing...
With C# generated code public (static) fields should be pascal cased, not camel cased. An example is lexer generated code: ```csharp public static string[] modeNames = { ... } ```...
The `BaseListener` / `BaseVisitor` classes do nothing by default, they should be marked as abstract to signal it's not meant to be used directly (because it makes no sense to...
Many big data components depend on antlr4. For example: spark, antlr4 cannot be upgraded to the latest version for compatibility with jdk8. grammars-v4 some grammars in 4.10 later, unable to...
I want to convert json object of terraform file to terraform file using antlr. This is the input { "provider": [ { "aws": [ { "region": "us-east-1" } ] }...
node 16 is deprecated in GH, bumping to node 20
According to the Definitive ANTLR 4 Reference: `An ANTLR lexer creates a Token object after matching a lexical rule. Each request for a token starts in Lexer.nextToken(), which calls emit()...
Automatically generated files should be named in snake_case rather than CamelCase because it is the standard for newer versions of the Dart language.
I try to build ``` java -jar antlr-4.13.2-complete.jar -Dlanguage=Python3 -o gen PostgreSQLLexer.g4 -visitor -listener java -jar antlr-4.13.2-complete.jar -Dlanguage=Python3 -o gen PostgreSQLParser.g4 -visitor -listener ``` But I get  without PostgreSQLParserBase...
This is a problem posted on Twitter/X (see thread https://x.com/KenDomino/status/1849814576902099279). The problem is that Antlr error messages only refer to strings, not token types, which is what parsers input. ```...