Public Member Functions | Protected Member Functions | Protected Attributes | Package Functions | Package Attributes

tinybasic.Context Class Reference

List of all members.

Public Member Functions

 Context ()
DTCodeType getSubroutine (String v)
DTCodeType getFunction (String v)
DTDataType getVariable (String var)
int getVariableDimension (String var)
int getVariableType (String var)
boolean isArrayVariable (String s)
Scope getPrev ()
void pushScope (Scope scope)
Scope popScope ()
Scope getCurrentScope ()
Scope getGlobalScope ()
void setProgramScope (Scope scope)
void setDimension (String s, DTDataType i1)
void initialize ()
void setDimension (String s, DTDataType i1, DTDataType i2)
void setDimension (String s, DTDataType i1, DTDataType i2, DTDataType i3)
DTDataType getDTDataType (String s, DTDataType i1)
DTDataType getDTDataType (String s, DTDataType i1, DTDataType i2)
DTDataType getDTDataType (String s, DTDataType i1, DTDataType i2, DTDataType i3)
DTDataType ensureVariable (String s, int t)

Protected Member Functions

Scope getProgramScope ()

Protected Attributes

Scope theGlobalScope = null
Scope theProgramScope = null
Stack theScopeStack

Package Functions

void insertSubroutine (String v, DTCodeType t)
void insertFunction (String v, DTCodeType t)
void insertGlobalVariable (String v, DTDataType t)
void insertVariable (String v, DTDataType t)

Package Attributes

Hashtable subroutineTable
Hashtable functionTable

Constructor & Destructor Documentation

tinybasic.Context.Context (  ) 

Member Function Documentation

DTDataType tinybasic.Context.ensureVariable ( String  s,
int  t 
)
Scope tinybasic.Context.getCurrentScope (  ) 
DTDataType tinybasic.Context.getDTDataType ( String  s,
DTDataType  i1 
)
DTDataType tinybasic.Context.getDTDataType ( String  s,
DTDataType  i1,
DTDataType  i2 
)
DTDataType tinybasic.Context.getDTDataType ( String  s,
DTDataType  i1,
DTDataType  i2,
DTDataType  i3 
)
DTCodeType tinybasic.Context.getFunction ( String  v  ) 
Scope tinybasic.Context.getGlobalScope (  ) 
Scope tinybasic.Context.getPrev (  ) 
Scope tinybasic.Context.getProgramScope (  )  [protected]
DTCodeType tinybasic.Context.getSubroutine ( String  v  ) 
DTDataType tinybasic.Context.getVariable ( String  var  ) 
int tinybasic.Context.getVariableDimension ( String  var  ) 
int tinybasic.Context.getVariableType ( String  var  ) 
void tinybasic.Context.initialize (  ) 
void tinybasic.Context.insertFunction ( String  v,
DTCodeType  t 
) [package]
void tinybasic.Context.insertGlobalVariable ( String  v,
DTDataType  t 
) [package]
void tinybasic.Context.insertSubroutine ( String  v,
DTCodeType  t 
) [package]
void tinybasic.Context.insertVariable ( String  v,
DTDataType  t 
) [package]
boolean tinybasic.Context.isArrayVariable ( String  s  ) 
Scope tinybasic.Context.popScope (  ) 
void tinybasic.Context.pushScope ( Scope  scope  ) 
void tinybasic.Context.setDimension ( String  s,
DTDataType  i1,
DTDataType  i2,
DTDataType  i3 
)
void tinybasic.Context.setDimension ( String  s,
DTDataType  i1 
)
void tinybasic.Context.setDimension ( String  s,
DTDataType  i1,
DTDataType  i2 
)
void tinybasic.Context.setProgramScope ( Scope  scope  ) 

Member Data Documentation

Hashtable tinybasic.Context.functionTable [package]
Hashtable tinybasic.Context.subroutineTable [package]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties