python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
ANTLR4 - What is the correct way to define an array type?
I am creating my own grammar, and so far I had only primitive types. However, now I would like to add a new type by reference, arrays, with a format similar to Java or C#, but I run into the problem t...
MrKarrter
Votes: 0
Answers: 2
parsing nested function calls
Im trying to parse some C++ code using grammars from the github repository https://github.com/antlr/grammars-v4 .
The problem I have is for parsing nested function calls, for example,
int main()
{
...
Alex
Votes: 0
Answers: 1
ANTLR4 handling continuations for "any data"
The grammar I need to create is based on the following:
Command lines start with a slash
Command lines can be continued with a hyphen as the last character
(excluding whitespaces) on a line
For some...
Alex.W
Votes: 0
Answers: 1
ANTLR4 Best practice on token ambiguities: Lexer predicate, or Parser tree walker
I have a question about a certain ambiguity I am encountering in a grammar I am currently working on. Here is the problem, in brief. Consider these two inputs:
1010
0101
In isolation, in my grammar t...
natem
Votes: 0
Answers: 0