Top "Abstract-syntax-tree" questions

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

Constructing an Abstract Syntax Tree with a list of Tokens

I want to construct an AST from a list of tokens. I'm making a scripting language and I've already done …

java interpreter abstract-syntax-tree
How to output the AST built using ANTLR?

I'm making a static analyzer for C. I have done the lexer and parser using ANTLR in which generates Java …

c antlr static-analysis abstract-syntax-tree
Synthesized vs Inherited Attributes

How can I find if an attribute is synthesized or inherited from the productions of a grammar? I guess for …

parsing compiler-construction abstract-syntax-tree context-free-grammar semantic-analysis
Simple example of how to use ast.NodeVisitor?

Does anyone have a simple example using ast.NodeVisitor to walk the abstract syntax tree in Python 2.6? The difference between …

python python-2.6 abstract-syntax-tree
AST from C code

I want to perform some transformations on C source code. I need a tool on linux that generates a complete …

c abstract-syntax-tree
What does Lambda Expression Compile() method do?

I am trying to understand AST in C#. I wonder, what exactly Compile() method from this example does. // Some code …

c# lambda compilation abstract-syntax-tree
How to write the Visitor Pattern for Abstract Syntax Tree in Python?

My collegue suggested me to write a visitor pattern to navigate the AST. Can anyone tell me more how would …

python parsing compiler-construction abstract-syntax-tree visitor
Developing Abstract Syntax Tree

I've scoured the internet looking for some newbie information on developing a C# Abstract Syntax Trees but I can only …

c# abstract-syntax-tree
ANTLR 4 and AST visitors

I'm trying to use ASTs with ANTLR4, with this files: Builder.java import org.antlr.v4.runtime.ANTLRInputStream; import org.…

java antlr visitor abstract-syntax-tree antlr4