TestBuilder Class Reference

Inheritance diagram for TestBuilder:

Inheritance graph
[legend]
Collaboration diagram for TestBuilder:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 32 of file test-parser.cc.


Public Member Functions

 TestBuilder ()
virtual bool hasError () const
virtual void errorDetected ()
 called if error is detected
virtual void glVar (EToken type, Token id)
 define global variable
virtual void fncDeclInit (EToken type, Token id)
 fnc decl detected
virtual void fncDeclArg (EToken type)
 fnc decl arg
virtual void fncDecl ()
 fnc decl complete
virtual void fncDefInit (EToken type, Token id)
 fnc def detected
virtual void fncDefArg (EToken type, Token id)
 fnc def arg
virtual void fncDefVar (EToken type, Token id)
 fnc local variable
virtual void fncDefBody ()
 fnc body
virtual void fncDef ()
 fnc def complete
virtual void assign (Token dest)
 assign command
virtual void ifEnter (Token)
 if statement, if part
virtual void ifElse ()
 if statement, else part
virtual void ifLeave ()
 if statement complete
virtual void whileInit (Token)
 while, B_EXPR follows
virtual void whileEnter ()
 while, CMD_LIST follows
virtual void whileLeave ()
 while statement complete
virtual void pushToken (Token token)
 push token
virtual void evalUnOp (Token token)
 eval unary operator
virtual void evalBinOp (Token token)
 eval binary operator
virtual void fncCall (Token id, int argsToPop, bool pushResult)
virtual void fncCallPrint (Token id, EToken valType)

Constructor & Destructor Documentation

TestBuilder (  )  [inline]

Definition at line 34 of file test-parser.cc.


Member Function Documentation

virtual bool hasError (  )  const [inline, virtual]

Return true if any error was detected.

Implements IErrorSensitive.

Definition at line 35 of file test-parser.cc.

virtual void errorDetected (  )  [inline, virtual]

called if error is detected

Implements IBuilder.

Definition at line 36 of file test-parser.cc.

References StreamDecorator::C_LIGHT_CYAN, and StreamDecorator::C_NO_COLOR.

virtual void glVar ( EToken  type,
Token  id 
) [inline, virtual]

define global variable

Implements IBuilder.

Definition at line 37 of file test-parser.cc.

References StreamDecorator::C_LIGHT_BLUE, and StreamDecorator::C_NO_COLOR.

virtual void fncDeclInit ( EToken  type,
Token  id 
) [inline, virtual]

fnc decl detected

Implements IBuilder.

Definition at line 38 of file test-parser.cc.

References StreamDecorator::C_LIGHT_RED, and StreamDecorator::C_NO_COLOR.

virtual void fncDeclArg ( EToken  type  )  [inline, virtual]

fnc decl arg

Implements IBuilder.

Definition at line 39 of file test-parser.cc.

References StreamDecorator::C_LIGHT_PURPLE, and StreamDecorator::C_NO_COLOR.

virtual void fncDecl (  )  [inline, virtual]

fnc decl complete

Implements IBuilder.

Definition at line 40 of file test-parser.cc.

References StreamDecorator::C_LIGHT_GREEN, and StreamDecorator::C_NO_COLOR.

virtual void fncDefInit ( EToken  type,
Token  id 
) [inline, virtual]

fnc def detected

Implements IBuilder.

Definition at line 41 of file test-parser.cc.

References StreamDecorator::C_LIGHT_RED, and StreamDecorator::C_NO_COLOR.

virtual void fncDefArg ( EToken  type,
Token  id 
) [inline, virtual]

fnc def arg

Implements IBuilder.

Definition at line 42 of file test-parser.cc.

References StreamDecorator::C_LIGHT_PURPLE, and StreamDecorator::C_NO_COLOR.

virtual void fncDefVar ( EToken  type,
Token  id 
) [inline, virtual]

fnc local variable

Implements IBuilder.

Definition at line 43 of file test-parser.cc.

References StreamDecorator::C_LIGHT_BLUE, and StreamDecorator::C_NO_COLOR.

virtual void fncDefBody (  )  [inline, virtual]

fnc body

Implements IBuilder.

Definition at line 44 of file test-parser.cc.

References StreamDecorator::C_LIGHT_CYAN, and StreamDecorator::C_NO_COLOR.

virtual void fncDef (  )  [inline, virtual]

fnc def complete

Implements IBuilder.

Definition at line 45 of file test-parser.cc.

References StreamDecorator::C_LIGHT_GREEN, and StreamDecorator::C_NO_COLOR.

virtual void assign ( Token  token  )  [inline, virtual]

assign command

Implements IBuilder.

Definition at line 46 of file test-parser.cc.

References StreamDecorator::C_NO_COLOR, and StreamDecorator::C_YELLOW.

virtual void ifEnter ( Token  token  )  [inline, virtual]

if statement, if part

Implements IBuilder.

Definition at line 47 of file test-parser.cc.

References StreamDecorator::C_LIGHT_RED, and StreamDecorator::C_NO_COLOR.

virtual void ifElse (  )  [inline, virtual]

if statement, else part

Implements IBuilder.

Definition at line 48 of file test-parser.cc.

References StreamDecorator::C_LIGHT_RED, and StreamDecorator::C_NO_COLOR.

virtual void ifLeave (  )  [inline, virtual]

if statement complete

Implements IBuilder.

Definition at line 49 of file test-parser.cc.

References StreamDecorator::C_LIGHT_RED, and StreamDecorator::C_NO_COLOR.

virtual void whileInit ( Token  token  )  [inline, virtual]

while, B_EXPR follows

Implements IBuilder.

Definition at line 50 of file test-parser.cc.

References StreamDecorator::C_LIGHT_CYAN, and StreamDecorator::C_NO_COLOR.

virtual void whileEnter (  )  [inline, virtual]

while, CMD_LIST follows

Implements IBuilder.

Definition at line 51 of file test-parser.cc.

References StreamDecorator::C_LIGHT_CYAN, and StreamDecorator::C_NO_COLOR.

virtual void whileLeave (  )  [inline, virtual]

while statement complete

Implements IBuilder.

Definition at line 52 of file test-parser.cc.

References StreamDecorator::C_LIGHT_CYAN, and StreamDecorator::C_NO_COLOR.

virtual void pushToken ( Token  token  )  [inline, virtual]

push token

Implements IBuilder.

Definition at line 53 of file test-parser.cc.

References StreamDecorator::C_NO_COLOR, and StreamDecorator::C_YELLOW.

virtual void evalUnOp ( Token  token  )  [inline, virtual]

eval unary operator

Implements IBuilder.

Definition at line 54 of file test-parser.cc.

References StreamDecorator::C_LIGHT_CYAN, and StreamDecorator::C_NO_COLOR.

virtual void evalBinOp ( Token  token  )  [inline, virtual]

eval binary operator

Implements IBuilder.

Definition at line 55 of file test-parser.cc.

References StreamDecorator::C_LIGHT_PURPLE, and StreamDecorator::C_NO_COLOR.

virtual void fncCall ( Token  id,
int  argsToPop,
bool  pushResult 
) [inline, virtual]

function call

Parameters:
id token initiating function call
argsToPop count of arguments to pop from stack and give them to function
pushResult true if function return value is going to be used

Implements IBuilder.

Definition at line 56 of file test-parser.cc.

References StreamDecorator::C_LIGHT_BLUE, StreamDecorator::C_LIGHT_PURPLE, StreamDecorator::C_NO_COLOR, and StreamDecorator::C_YELLOW.

virtual void fncCallPrint ( Token  id,
EToken  valType 
) [inline, virtual]

print function call

Parameters:
id token initiating function call
valType type of expression expected by print function

Implements IBuilder.

Definition at line 63 of file test-parser.cc.

References StreamDecorator::C_LIGHT_RED, and StreamDecorator::C_NO_COLOR.


The documentation for this class was generated from the following file:
Generated on Sat Jul 4 18:33:18 2009 for vyp08 (compiler and interpreter of VYP08 language) by  doxygen 1.5.4