C# Class JackCompiler.CCodeGenerator

Inheritance: CodeGenerator
Afficher le fichier Open project: selagroup/diagnostics-courses Class Usage Examples

Méthodes publiques

Méthode Description
Add ( ) : void
And ( ) : void
Assignment ( Token varName, bool withArrayIndex ) : void
BeginClass ( string className ) : void
BeginIf ( ) : void
BeginWhile ( ) : void
CCodeGenerator ( ) : System
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

Private Methods

Méthode Description
EmitLocalsAndParameters ( Subroutine subroutine ) : void
EmitStructDeclarationIfNotEmitted ( ) : void
ExtractParameters ( Subroutine subroutine ) : void
FormatStaticName ( string staticName ) : string
FormatSubroutineName ( string subroutineName, string className = null ) : string
GetClassSizeInWords ( ) : int
ReInitialize ( ) : void

Method Details

Add() public méthode

public Add ( ) : void
Résultat void

And() public méthode

public And ( ) : void
Résultat void

Assignment() public méthode

public Assignment ( Token varName, bool withArrayIndex ) : void
varName Token
withArrayIndex bool
Résultat void

BeginClass() public méthode

public BeginClass ( string className ) : void
className string
Résultat void

BeginIf() public méthode

public BeginIf ( ) : void
Résultat void

BeginWhile() public méthode

public BeginWhile ( ) : void
Résultat void

CCodeGenerator() public méthode

public CCodeGenerator ( ) : System
Résultat System

Call() public méthode

public Call ( string className, string subroutineName ) : void
className string
subroutineName string
Résultat void

ConstructorDeclaration() public méthode

public ConstructorDeclaration ( Subroutine subroutine ) : void
subroutine Subroutine
Résultat void

DiscardReturnValueFromLastCall() public méthode

public DiscardReturnValueFromLastCall ( ) : void
Résultat void

Div() public méthode

public Div ( ) : void
Résultat void

EmitBootstrapper() public méthode

public EmitBootstrapper ( ) : void
Résultat void

EmitEnvironment() public méthode

public EmitEnvironment ( ) : void
Résultat void

EndClass() public méthode

public EndClass ( ) : void
Résultat void

EndIf() public méthode

public EndIf ( ) : void
Résultat void

EndSubroutine() public méthode

public EndSubroutine ( ) : void
Résultat void

EndWhile() public méthode

public EndWhile ( ) : void
Résultat void

Equal() public méthode

public Equal ( ) : void
Résultat void

False() public méthode

public False ( ) : void
Résultat void

FieldDeclaration() public méthode

public FieldDeclaration ( Symbol variable ) : void
variable Symbol
Résultat void

FunctionDeclaration() public méthode

public FunctionDeclaration ( Subroutine subroutine ) : void
subroutine Subroutine
Résultat void

Greater() public méthode

public Greater ( ) : void
Résultat void

GreaterOrEqual() public méthode

public GreaterOrEqual ( ) : void
Résultat void

IntConst() public méthode

public IntConst ( int value ) : void
value int
Résultat void

Less() public méthode

public Less ( ) : void
Résultat void

LessOrEqual() public méthode

public LessOrEqual ( ) : void
Résultat void

MethodDeclaration() public méthode

public MethodDeclaration ( Subroutine subroutine ) : void
subroutine Subroutine
Résultat void

Mod() public méthode

public Mod ( ) : void
Résultat void

Mul() public méthode

public Mul ( ) : void
Résultat void

Negate() public méthode

public Negate ( ) : void
Résultat void

Not() public méthode

public Not ( ) : void
Résultat void

NotEqual() public méthode

public NotEqual ( ) : void
Résultat void

Null() public méthode

public Null ( ) : void
Résultat void

Or() public méthode

public Or ( ) : void
Résultat void

PossibleElse() public méthode

public PossibleElse ( ) : void
Résultat void

Return() public méthode

public Return ( ) : void
Résultat void

StaticDeclaration() public méthode

public StaticDeclaration ( Symbol variable ) : void
variable Symbol
Résultat void

StrConst() public méthode

public StrConst ( string value ) : void
value string
Résultat void

Sub() public méthode

public Sub ( ) : void
Résultat void

This() public méthode

public This ( ) : void
Résultat void

True() public méthode

public True ( ) : void
Résultat void

VariableRead() public méthode

public VariableRead ( Token varName, bool withArrayIndex ) : void
varName Token
withArrayIndex bool
Résultat void

WhileCondition() public méthode

public WhileCondition ( ) : void
Résultat void