LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ast Namespace Reference

Ast management. More...

Namespaces

namespace  tasks
 Task for ast.

Classes

class  AnyDecs
 Abstract a "list of D-declarations" node. More...
class  ArrayTy
 ArrayTy. More...
class  Ast
 Ast. More...
class  CastExp
 Cast the type of an expression to a given type. More...
class  CastVar
 Cast the type of an l-value to a given type. More...
class  ClassTy
 ClassTy. More...
class  Dec
 Dec. More...
class  DecsList
 DecsList. More...
class  Decs
 Declare Decs. More...
class  GenDefaultVisitor
 Just visit the whole Ast tree (except object-related nodes). More...
class  Exp
 Exp. More...
class  FieldInit
 FieldInit. More...
class  Field
 Field. More...
class  ForExp
 ForExp. More...
class  FunctionDec
 FunctionDec. More...
class  IntExp
 IntExp. More...
class  MethodDec
 Method declaration. More...
class  NameTy
 NameTy. More...
class  NilExp
 NilExp. More...
class  GenNonObjectVisitor
class  GenObjectVisitor
class  OpExp
 OpExp. More...
class  PrettyPrinter
 Visit an Ast and print the content of each node. More...
class  SimpleVar
 SimpleVar. More...
class  SubscriptVar
 SubscriptVar. More...
class  Ty
 Ty. More...
class  TypeDec
 TypeDec. More...
class  VarDec
 VarDec. More...
class  GenVisitor
 Root class of all Ast visitors. More...
class  WhileExp
 WhileExp. More...

Typedefs

typedef GenDefaultVisitor
< misc::constify_traits
DefaultConstVisitor
 Shorthand for a const visitor.
typedef GenDefaultVisitor
< misc::id_traits
DefaultVisitor
 Shorthand for a non const visitor.
typedef AnyDecs< FunctionDecFunctionDecs
 Define shorthand type for Function declarations.
typedef GenVisitor
< misc::constify_traits
ConstVisitor
 Shorthand for a const visitor.
typedef GenVisitor
< misc::id_traits
Visitor
 Shorthand for a non const visitor.
typedef std::list< Exp * > exps_type
typedef std::list< FieldInit * > fieldinits_type
typedef std::list< Field * > fields_type
typedef AnyDecs< MethodDecMethodDecs
 Define shorthand type for Method declarations.
typedef AnyDecs< TypeDecTypeDecs
 Define shorthand type for Type declarations.
typedef AnyDecs< VarDecVarDecs
 Define shorthand type for Variable declarations.
typedef parse::location Location
typedef GenNonObjectVisitor
< misc::constify_traits
NonObjectConstVisitor
 Shorthand for a const visitor.
typedef GenNonObjectVisitor
< misc::id_traits
NonObjectVisitor
 Shorthand for a non const visitor.
typedef GenObjectVisitor
< misc::constify_traits
ObjectConstVisitor
 Shorthand for a const visitor.
typedef GenObjectVisitor
< misc::id_traits
ObjectVisitor
 Shorthand for a non const visitor.
typedef AnyDecs< RuleDec > RuleDecs
 Define shorthand type for Rule declarations.

Functions

std::ostream & operator<< (std::ostream &ostr, const Ast &tree)
 Output a on ostr.

Variables

const misc::xalloc< bool > escapes_display
 xalloc slot to enable escapes display in Ast display.
const misc::xalloc< bool > bindings_display
 xalloc slot to enable bindings display in Ast display.

Detailed Description

Ast management.

Typedef Documentation

Shorthand for a const visitor.

Shorthand for a const visitor.

Shorthand for a non const visitor.

typedef std::list<Exp*> ast::exps_type
typedef std::list<FieldInit*> ast::fieldinits_type
typedef std::list<Field*> ast::fields_type

Define shorthand type for Function declarations.

typedef parse::location ast::Location

Define shorthand type for Method declarations.

Shorthand for a const visitor.

Shorthand for a non const visitor.

Shorthand for a const visitor.

Shorthand for a non const visitor.

typedef AnyDecs<RuleDec> ast::RuleDecs

Define shorthand type for Rule declarations.

Define shorthand type for Type declarations.

Define shorthand type for Variable declarations.

Shorthand for a non const visitor.

Function Documentation

std::ostream & ast::operator<< ( std::ostream &  ostr,
const Ast &  tree 
)

Output a on ostr.

Variable Documentation

const misc::xalloc< bool > ast::bindings_display

xalloc slot to enable bindings display in Ast display.

Referenced by ast::PrettyPrinter::operator()().

const misc::xalloc< bool > ast::escapes_display

xalloc slot to enable escapes display in Ast display.