C# Class AGS.CScript.Compiler.CodeBlockCompiler

Afficher le fichier Open project: adventuregamestudio/ags

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat void