Top "Abstract-syntax-tree" questions

Abstract syntax trees (ASTs) represent the recursive structure of a formal document (program source code).

Using python's eval() vs. ast.literal_eval()?

I have a situation with some code where eval() came up as a possible solution. Now I have never had …

python eval abstract-syntax-tree
Malformed String ValueError ast.literal_eval() with String representation of Tuple

I'm trying to read in a string representation of a Tuple from a file, and add the tuple to a …

python parsing python-2.x abstract-syntax-tree representation
How to construct an abstract syntax tree

I have a general idea of what an AST is, but I want to know how to construct one. If …

abstract-syntax-tree
Parse a .py file, read the AST, modify it, then write back the modified source code

I want to programmatically edit python source code. Basically I want to read a .py file, generate the AST, and …

python compiler-construction abstract-syntax-tree
What's the difference between parse trees and abstract syntax trees?

I found the two terms in a compiler design book, and I'd like to know what each stands for, and …

compiler-construction abstract-syntax-tree parse-tree
What's the difference between parse tree and AST?

Are they generated by different phases of a compiling process? Or are they just different names for the same thing?

compiler-construction terminology compiler-theory abstract-syntax-tree parse-tree
How to create AST with ANTLR4?

I've been searching A LOT about this and I couldn't find anything useful that REALLY helps me build an AST. …

java compiler-construction antlr abstract-syntax-tree antlr4
How to view Clang AST?

I am trying to get hold on Clang. So, I would like to view the AST generated by Clang after …

clang llvm abstract-syntax-tree
What is JavaScript AST, how to play with it?

Abstract Syntax Tree.. I always heard that compile to SpiderMonkey AST on Github. So, is that a actual standard of …

javascript abstract-syntax-tree
What is the difference between an Abstract Syntax Tree and a Concrete Syntax Tree?

I've been reading a bit about how interpreters/compilers work, and one area where I'm getting confused is the difference …

parsing terminology abstract-syntax-tree semantic-analysis concrete-syntax-tree