C# Class JackCompiler.TextCodeGenerator

Inheritance: CodeGenerator
Show file Open project: selagroup/diagnostics-courses

Public Methods

Method Description
Add ( ) : void
And ( ) : void
Assignment ( Token varName, bool withArrayIndex ) : void
BeginClass ( string className ) : void
BeginIf ( ) : void
BeginWhile ( ) : void
Call ( string className, string subroutineName ) : void
ConstructorDeclaration ( Subroutine subroutine ) : void
DiscardReturnValueFromLastCall ( ) : void
Div ( ) : void
EmitBootstrapper ( ) : void
EmitEnvironment ( ) : void
EndClass ( ) : void
EndIf ( ) : void
EndSubroutine ( ) : void
EndWhile ( ) : void
Equal ( ) : void
False ( ) : void
FieldDeclaration ( Symbol variable ) : void
FunctionDeclaration ( Subroutine subroutine ) : void
Greater ( ) : void
GreaterOrEqual ( ) : void
IntConst ( int value ) : void
Less ( ) : void
LessOrEqual ( ) : void
MethodDeclaration ( Subroutine subroutine ) : void
Mod ( ) : void
Mul ( ) : void
Negate ( ) : void
Not ( ) : void
NotEqual ( ) : void
Null ( ) : void
Or ( ) : void
PossibleElse ( ) : void
Return ( ) : void
StaticDeclaration ( Symbol variable ) : void
StrConst ( string value ) : void
Sub ( ) : void
This ( ) : void
True ( ) : void
VariableRead ( Token varName, bool withArrayIndex ) : void
WhileCondition ( ) : void

Method Details

Add() public method

public Add ( ) : void
return void

And() public method

public And ( ) : void
return void

Assignment() public method

public Assignment ( Token varName, bool withArrayIndex ) : void
varName Token
withArrayIndex bool
return void

BeginClass() public method

public BeginClass ( string className ) : void
className string
return void

BeginIf() public method

public BeginIf ( ) : void
return void

BeginWhile() public method

public BeginWhile ( ) : void
return void

Call() public method

public Call ( string className, string subroutineName ) : void
className string
subroutineName string
return void

ConstructorDeclaration() public method

public ConstructorDeclaration ( Subroutine subroutine ) : void
subroutine Subroutine
return void

DiscardReturnValueFromLastCall() public method

public DiscardReturnValueFromLastCall ( ) : void
return void

Div() public method

public Div ( ) : void
return void

EmitBootstrapper() public method

public EmitBootstrapper ( ) : void
return void

EmitEnvironment() public method

public EmitEnvironment ( ) : void
return void

EndClass() public method

public EndClass ( ) : void
return void

EndIf() public method

public EndIf ( ) : void
return void

EndSubroutine() public method

public EndSubroutine ( ) : void
return void

EndWhile() public method

public EndWhile ( ) : void
return void

Equal() public method

public Equal ( ) : void
return void

False() public method

public False ( ) : void
return void

FieldDeclaration() public method

public FieldDeclaration ( Symbol variable ) : void
variable Symbol
return void

FunctionDeclaration() public method

public FunctionDeclaration ( Subroutine subroutine ) : void
subroutine Subroutine
return void

Greater() public method

public Greater ( ) : void
return void

GreaterOrEqual() public method

public GreaterOrEqual ( ) : void
return void

IntConst() public method

public IntConst ( int value ) : void
value int
return void

Less() public method

public Less ( ) : void
return void

LessOrEqual() public method

public LessOrEqual ( ) : void
return void

MethodDeclaration() public method

public MethodDeclaration ( Subroutine subroutine ) : void
subroutine Subroutine
return void

Mod() public method

public Mod ( ) : void
return void

Mul() public method

public Mul ( ) : void
return void

Negate() public method

public Negate ( ) : void
return void

Not() public method

public Not ( ) : void
return void

NotEqual() public method

public NotEqual ( ) : void
return void

Null() public method

public Null ( ) : void
return void

Or() public method

public Or ( ) : void
return void

PossibleElse() public method

public PossibleElse ( ) : void
return void

Return() public method

public Return ( ) : void
return void

StaticDeclaration() public method

public StaticDeclaration ( Symbol variable ) : void
variable Symbol
return void

StrConst() public method

public StrConst ( string value ) : void
value string
return void

Sub() public method

public Sub ( ) : void
return void

This() public method

public This ( ) : void
return void

True() public method

public True ( ) : void
return void

VariableRead() public method

public VariableRead ( Token varName, bool withArrayIndex ) : void
varName Token
withArrayIndex bool
return void

WhileCondition() public method

public WhileCondition ( ) : void
return void