C# Class AGS.CScript.Compiler.CodeBlockCompiler

Show file Open project: adventuregamestudio/ags

Public Methods

Method Description
Process ( AGS.CScript.Compiler.ScriptReader script ) : void

Starts processing a code block from the input stream. It is assumed to start with a { or be a single expression.

Private Methods

Method Description
CodeBlockCompiler ( AGS.CScript.Compiler.CompilerState state ) : System
DeclareLocalVariable ( AGS.CScript.Compiler.Token variableType ) : void
FreeAllLocalVariablesButLeaveValid ( ) : void
FreeLocalVariables ( LocalScope scope, bool unDeclareVars ) : void

Frees the memory associated with the specified scope, and generates code to decrement the stack pointer accordingly.

GenerateCodeForAssignmentOperator ( AGS.CScript.Compiler.SplitExpression expression ) : void
GenerateCodeForExpression ( Expression expression ) : void
GenerateCodeForExpressionWithoutOperator ( Expression expression ) : void
GenerateCodeForStandardOperator ( AGS.CScript.Compiler.SplitExpression expression ) : void
ProcessCodeBlock ( ) : void

Starts processing a code block from the input stream. It is assumed to start with a { or be a single expression.

ProcessKeyword ( AGS.CScript.Compiler.KeywordToken keywordToken ) : void
ProcessNextCodeStatement ( bool allowVariableDeclarations ) : void
ReadExpression ( AGS.CScript.Compiler.ScriptReader source, bool readTerminatingSymbolFromStream ) : Expression
ReadExpression ( bool readTerminatingSymbolFromStream ) : Expression

Method Details

Process() public method

Starts processing a code block from the input stream. It is assumed to start with a { or be a single expression.
public Process ( AGS.CScript.Compiler.ScriptReader script ) : void
script AGS.CScript.Compiler.ScriptReader
return void