Package sanskrit

Class Ast

java.lang.Object
sanskrit.Ast

public final class Ast extends Object
The kinds of syntax tree nodes. Statements extend Ast.Stmt, expressions extend Ast.Expr; the other nodes (arguments, handlers, keywords...) extend Node directly. Operators and contexts are enums, whose constants carry the names CPython gives them (they are printed as is by AstDump).

A field holding a list of nodes is never null; an optional node is null. The values of a Ast.Constant are: null (None), a Boolean, a Long (int), a Double (float) or a String.