ASTNode Class Reference

Root abstract class for Abstract syntax tree nodes. More...

#import <ast.h>

Inheritance diagram for ASTNode:

Asm DeclarationSpec Declarator DeclInit Enum Enumerator Expr File Ident KeyDeclarator KeywordArgument Stmt StructDeclarator StructOrUnion Type VisSpec List of all members.

Public Member Functions

(char *) - op
 oken string
(BOOL) - isOp:
 checks if token string matches s
(Token *) - token
 gives token
(void) - token:
 sets token
(void) - setToken:
 sets token
(id) - init:
 initializes with token t
(void) - setTipe:
 sets type to t
(Tipe *) - tipe
 gives tipe
(void) - tipe:
 sets tipe
(char *) - op
 token string
(BOOL) - isOp:
 checks if token string matches s
(int) - line
 gives line node appeared on

Protected Attributes

Token * token
 Token for this node, produced by scanner.
Tipe * tipe
 type of this node, set during typechecking
BOOL checked

Detailed Description

Root abstract class for Abstract syntax tree nodes.


Member Function Documentation

- (id) init: (id)  t  

initializes with token t

Parameters:
t Token used to derive this node

Reimplemented in Initializer, and File.


The documentation for this class was generated from the following files:
Generated on Mon Dec 24 06:11:58 2007 for gfront by  doxygen 1.5.2