python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k 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
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
The exponential operator in Matlab grammar using ANTLR4 does not work correctly
I have been using matlab grammar from this source. I came across an error to the following input
a = 2^2*3
b = 3*2^2
Result in both cases should be 12, but it is not, because the exponential operator...
modryslon
Votes: 0
Answers: 1
Antlr: Re-use array access on righ/left-hand side without introducing forbidden left-recursion
Most programming languages allow array or struct access both on the left-hand sight -as target for storage- and the right-hand side -as source for a load- of an assignment. I would like to handle that...
Wave and Matter
Votes: 0
Answers: 0