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)
How many BNF-like grammar specifications does Python have?
There are at least 3 grammar-like specifications within the Python 3.9.1 reference documents 'library-3.9.1.pdf' and 'reference-3.9.1.pdf' (aka https://docs.python.org/3.9/library/ast.html and https:/...
berniethejet
Votes: 0
Answers: 1
LALR Grammar desambiguation for function calls statements (as in Python grammar)
I'm trying to write a simple LALR parser for a custom DSL. My grammar looks like this :
main : stmts
stmts : expr stmts
|
expr : arithmetics
| function_call
| VARNAME
| INT
ari...

ibi0tux
Votes: 0
Answers: 0
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