python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Antlr lexer rule to tokenize float/double
I am trying to use this regex to tokenize a double in Antlr but apparently this regex is not getting understood by Antlr.
Number: (-?)(0|([1-9][0-9]*))(\\.[0-9]+)?;
Error:
syntax error: '-' came as a...
Node.JS
Votes: 0
Answers: 1
Why doesn't this ANTLR grammar derive the string `baba`?
Using ANTLR v4.9.3, I created the following grammar …
grammar G ;
start : s EOF ;
s : 'ba' a b ;
a : 'b' ;
b : 'a' ;
Given the above grammar, I thought that the following derivation is possible …
...
user3134725
Votes: 0
Answers: 1
ANTLR4: Re-visiting parse rules after the whole ast is visited
I am currently implementing generic functions for my own language, but I got stuck and currently have the following problem:
Generic functions can get called from another source file (another parser i...

ChilliBits
Votes: 0
Answers: 2
Post process antlr maven goal
I'm running antlr with maven. Antlr generates .java file from .g file and I need to post process generated java file (do some changes in it). How can I do it?
<plugin>
<groupId>...
Andrei Filipchyk
Votes: 0
Answers: 1