grammars-v4
grammars-v4 copied to clipboard
Grammars written for ANTLR v4; expectation that the grammars are free of actions.
Hi, The following valid Lua input cannot be successfully parsed by the current antlr grammar: ``` local function name_s ( ) --[===[]===] end ``` The error output: ``` line 1:26...
The origin mathExpression has bugs when we preprocess complex expressons. for example: if we calculate a expression "100 + 100/2", the result is (100+100)/2. so the mathOperator should have priority....
I am trying to parse the Apache Spark javascript files found in: https://github.com/apache/spark/tree/master/core/src/main/resources/org/apache/spark/ui/static I received the errors below while trying to use the javascript grammar (latest ver) using the Java...
https://github.com/antlr/grammars-v4/actions/runs/6265803494/job/17015394126 ``` Test failed. infix fun box(): String { assertEquals(KVariance.INVARIANT, ((if (true) { (::listOfStrings) } else { (::listOfStrings) }))!!.returnType.arguments.first().variance) } ```
I am using the provided [URL grammar](https://github.com/antlr/grammars-v4/blob/master/url/url.g4) to generate an ANTLR parser, which then I use to parse URL inputs. However, the parser is failing to parse few URL inputs....
I would like to request a grammar file for Julia language if it is possible.
I have a [repository](https://github.com/RobEin/ANTLR4-Python-parser-by-PEG) with a Python 3 parser. And there are a couple of problematic files that Java target parses without error, but the [Python target](https://github.com/RobEin/ANTLR4-Python-parser-by-PEG/tree/main/target_Python3) throws an error....
I want to create a COBOL visitor to translate a COBOL source code into another language using the visitor generated by ANTLR4. I have been going through the repository and...
I have a common parser [grammar](https://github.com/RobEin/ANTLR4-Python-parser-by-PEG/blob/main/PythonParser.g4 ) for Java and Python targets to parse Python files: I'm currently using a 'self' reference in the grammar, which in [Java superclass](https://github.com/RobEin/ANTLR4-Python-parser-by-PEG/blob/main/target_Java/PythonParserBase.java) is...