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)
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 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
code generation for a compiler based on ANTLR
I am working on a compiler for a language and I have got some problems with operator precedence.
The language is pretty simple, nothing complicated. It has functions, statements, expressions, etc. It'...
Rudolf Ziegaus
Votes: 0
Answers: 0