IBuilder Class Reference

#include <parser.h>

Inheritance diagram for IBuilder:

Inheritance graph
[legend]
Collaboration diagram for IBuilder:

Collaboration graph
[legend]

List of all members.


Detailed Description

builder interface set of callback methods called by parser

Definition at line 34 of file parser.h.


Public Member Functions

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

Constructor & Destructor Documentation

virtual ~IBuilder (  )  [inline, virtual]

Definition at line 36 of file parser.h.


Member Function Documentation

virtual void errorDetected (  )  [pure virtual]

called if error is detected

Implemented in Builder, and TestBuilder.

Referenced by BisonListener::fncCallPrintArg().

Here is the caller graph for this function:

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

define global variable

Implemented in Builder, and TestBuilder.

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

fnc decl detected

Implemented in Builder, and TestBuilder.

virtual void fncDeclArg ( EToken  type  )  [pure virtual]

fnc decl arg

Implemented in Builder, and TestBuilder.

virtual void fncDecl (  )  [pure virtual]

fnc decl complete

Implemented in Builder, and TestBuilder.

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

fnc def detected

Implemented in Builder, and TestBuilder.

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

fnc def arg

Implemented in Builder, and TestBuilder.

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

fnc local variable

Implemented in Builder, and TestBuilder.

virtual void fncDefBody (  )  [pure virtual]

fnc body

Implemented in Builder, and TestBuilder.

virtual void fncDef (  )  [pure virtual]

fnc def complete

Implemented in Builder, and TestBuilder.

virtual void assign ( Token  token  )  [pure virtual]

assign command

Implemented in Builder, and TestBuilder.

virtual void ifEnter ( Token  token  )  [pure virtual]

if statement, if part

Implemented in Builder, and TestBuilder.

virtual void ifElse (  )  [pure virtual]

if statement, else part

Implemented in Builder, and TestBuilder.

virtual void ifLeave (  )  [pure virtual]

if statement complete

Implemented in Builder, and TestBuilder.

virtual void whileInit ( Token  token  )  [pure virtual]

while, B_EXPR follows

Implemented in Builder, and TestBuilder.

virtual void whileEnter (  )  [pure virtual]

while, CMD_LIST follows

Implemented in Builder, and TestBuilder.

virtual void whileLeave (  )  [pure virtual]

while statement complete

Implemented in Builder, and TestBuilder.

virtual void pushToken ( Token  token  )  [pure virtual]

push token

Implemented in Builder, and TestBuilder.

virtual void evalUnOp ( Token  token  )  [pure virtual]

eval unary operator

Implemented in Builder, and TestBuilder.

virtual void evalBinOp ( Token  token  )  [pure virtual]

eval binary operator

Implemented in Builder, and TestBuilder.

virtual void fncCall ( Token  id,
int  argsToPop,
bool  pushResult 
) [pure 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

Implemented in Builder, and TestBuilder.

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

print function call

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

Implemented in Builder, and TestBuilder.

virtual bool hasError (  )  const [pure virtual, inherited]

Return true if any error was detected.

Implemented in Builder, FlexScanner, KwScanner, TestBuilder, and VmRunner.

Referenced by KwScanner::hasError(), main(), and run().

Here is the caller graph for this function:


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