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)
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
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
Python string eval failing on empty items in list
import ast
s = "[0,1,,,2]"
d = ast.literal_eval(s)
I have a string with blank items in a list that I need convert to a list. Is there any library that can handle lists like this? The ac...
asdad23
Votes: 0
Answers: 1
How are these parse tree generated?
I need assistance regarding generating the parse tree and the syntax tree. My version of the solutions are the images below but I don't know if they are correct or way off.
Given the Grammar: S-->a...
zed unseened
Votes: 0
Answers: 1