Gorilla.Script.Entities
Unit Gorilla.Script.Entities.pasClasses
- EGorillaScriptParserException = class ( Exception )
- EGorillaScriptCompilerException = class ( Exception )
- TGorillaScriptEntity = class ( TObject )
- TGorillaScriptListEntity = class ( TGorillaScriptEntity )
- TGorillaScriptNameEntity = class ( TGorillaScriptEntity )
- TGorillaScriptType = class ( TGorillaScriptNameEntity )
- TGorillaScriptTypeArgs = class ( TGorillaScriptEntity )
- TGorillaScriptNamespace = class ( TGorillaScriptType )
- TGorillaScriptCustomUnitEntity = class ( TGorillaScriptNamespace )
- TGorillaScriptNativeUnit = class ( TGorillaScriptCustomUnitEntity )
- TGorillaScriptUnit = class ( TGorillaScriptCustomUnitEntity )
- TGorillaScriptProgram = class ( TGorillaScriptUnit )
- TGorillaScriptValue = class ( TGorillaScriptEntity )
- TGorillaScriptValuable = class ( TGorillaScriptNameEntity )
- TGorillaScriptVariable = class ( TGorillaScriptValuable )
- TGorillaScriptCompoundEntity = class ( TGorillaScriptEntity )
- TGorillaScriptMethod = class ( TGorillaScriptValuable )
- TGorillaScriptEnum = class ( TGorillaScriptType )
- TGorillaScriptNativeEnum = class ( TGorillaScriptEnum )
- TGorillaScriptSet = class ( TGorillaScriptType )
- TGorillaScriptNativeSet = class ( TGorillaScriptSet )
- TGorillaScriptSetConstructor = class ( TGorillaScriptCompoundEntity )
- TGorillaScriptCallable = class ( TGorillaScriptType )
- TGorillaScriptImplementable = class ( TGorillaScriptCallable )
- TGorillaScriptStruct = class ( TGorillaScriptCallable )
- TGorillaScriptNativeStruct = class ( TGorillaScriptStruct )
- TGorillaScriptInterface = class ( TGorillaScriptImplementable )
- TGorillaScriptNativeInterface = class ( TGorillaScriptInterface )
- TGorillaScriptCustomClass = class ( TGorillaScriptImplementable )
- TGorillaScriptNativeClass = class ( TGorillaScriptCustomClass )
- TGorillaScriptClass = class ( TGorillaScriptCustomClass )
- TGorillaScriptRefType = class ( TGorillaScriptType )
- TGorillaScriptReference = class ( TGorillaScriptValuable )
- TGorillaScriptStatement = class ( TGorillaScriptEntity )
- TGorillaScriptExpression = class ( TGorillaScriptStatement )
- TGorillaScriptExceptStatement = class ( TGorillaScriptStatement )
- TGorillaScriptFinallyStatement = class ( TGorillaScriptStatement )
- TGorillaScriptTryStatement = class ( TGorillaScriptStatement )
- TGorillaScriptConditionStatement = class ( TGorillaScriptStatement )
- TGorillaScriptIfStatement = class ( TGorillaScriptConditionStatement )
- TGorillaScriptElseStatement = class ( TGorillaScriptConditionStatement )
- TGorillaScriptCaseStatement = class ( TGorillaScriptConditionStatement )
- TGorillaScriptCaseSelector = class ( TGorillaScriptCompoundEntity )
- TGorillaScriptCaseLabelList = class ( TGorillaScriptCompoundEntity )
- TGorillaScriptCaseRange = class ( TGorillaScriptEntity )
- TGorillaScriptLoopStatement = class ( TGorillaScriptStatement )
- TGorillaScriptForLoop = class ( TGorillaScriptLoopStatement )
- TGorillaScriptWhileLoop = class ( TGorillaScriptLoopStatement )
- TGorillaScriptRepeatLoop = class ( TGorillaScriptLoopStatement )
- TGorillaScriptLoopTokenEntity = class ( TGorillaScriptEntity )
- TGorillaScriptLoopContinue = class ( TGorillaScriptLoopTokenEntity )
- TGorillaScriptLoopBreak = class ( TGorillaScriptLoopTokenEntity )
- TGorillaScriptHalt = class ( TGorillaScriptEntity )
- TGorillaScriptExit = class ( TGorillaScriptEntity )
- TGorillaScriptOperation = class ( TGorillaScriptEntity )
Records
- record TGorillaScriptVariableFlagsHelper
- record TGorillaScriptMethodFlagHelper
- record TGorillaScriptMethodDirectiveHelper
- record TGorillaScriptVisibilityHelper
- record TGorillaScriptOperatorHelper
Enumerations
- enum TGorillaScriptEntityXmlFlag = ( XmlEntities, XmlTypes, XmlValues ) ;
- enum TGorillaScriptReferenceKind = ( DefaultRef, ReadRef, WriteRef ) ;
- enum TGorillaScriptLoopDirection = ( IterateUpward, IterateDownward ) ;
- enum TGorillaScriptForLoopKind = ( DefaultForLoop, ForeachForLoop ) ;
- enum TGorillaScriptOperator = ( opUnknown, opAdd, opSub, opMul, opDiv, opMod, opPow, opDot, opStatic, opLT, opLEQ, opGT, opGEQ, opEQ, opNEQ, opNot, opAnd, opOr, opXor, opBitAnd, opBitOr, opBitXor, opAssign, opInc, opDec, opShl, opShr, opInstanceOf, opInherited, opAtIndex, opAddressOf, opIn, opAs ) ;
Constants
- const GORILLA_SCRIPT_THIS : string = "self";
- const GORILLA_SCRIPT_RESULT : string = "result";
TGorillaScriptOperator
Predefined operators, like addition, subtraction, multiplication, dot-op,...
TGorillaScriptVariableFlagsHelper
Methods
- public function FlagToString ( AValue : TGorillaScriptVariableFlag ) : string ; static overload;
- public function FlagsToString ( AValue : TGorillaScriptVariableFlags ) : string ; static overload;
- public function FlagFromString ( AValue : string ) : TGorillaScriptVariableFlag ; static;
- public function FlagsFromString ( AValue : string ) : TGorillaScriptVariableFlags ; static;
TGorillaScriptMethodFlagHelper
Methods
- public function FlagToString ( AValue : TGorillaScriptMethodFlag ) : string ; static;
- public function FlagsToString ( AValue : TGorillaScriptMethodFlags ) : string ; static;
- public function FlagFromString ( AValue : string ) : TGorillaScriptMethodFlag ; static;
- public function FlagsFromString ( AValue : string ) : TGorillaScriptMethodFlags ; static;
TGorillaScriptMethodDirectiveHelper
Methods
- public function FlagToString ( AValue : TGorillaScriptMethodDirective ) : string ; static;
- public function FlagsToString ( AValue : TGorillaScriptMethodDirectives ) : string ; static;
- public function FlagFromString ( AValue : string ) : TGorillaScriptMethodDirective ; static;
- public function FlagsFromString ( AValue : string ) : TGorillaScriptMethodDirectives ; static;
TGorillaScriptEntity
Basis entity for all entities inside of Gorilla3D scripting.
Ancestors
Members
Fields
- protected FCodePos :
TPoint
- protected FState :
TComponentState
- protected FGUID :
TGUID
- protected FCompilerState :
TGUID
- protected FParser :
TObject
- protected FOwner :
TGorillaScriptEntity
- protected FParent :
TGorillaScriptEntity
- protected FEntities :
TGorillaScriptEntities
Methods
- public constructor Create ( const AParser : TObject; const AOwner : TGorillaScriptEntity ) ;
- public destructor Destroy ( ) ;
- protected function GetSourceFile ( ) : string ;
- protected function GetEntityID ( ) : string ; virtual;
- protected function GetGUIDString ( ) : string ; virtual;
- protected procedure EntitiesAvailable ( ) ; virtual;
- protected function GetEntityCount ( ) : Integer ; virtual;
- protected function AlreadyCompiled ( ACompiler : TGorillaScriptCompiler ) : Boolean ; virtual;
- protected procedure DoCompileEntities ( const ACompiler : TGorillaScriptCompiler; const AByteCode : TBytesStream ) ; virtual;
- protected procedure DoCompile ( const ACompiler : TGorillaScriptCompiler; const AByteCode : TBytesStream ) ; virtual;
- public procedure AfterConstruction ( ) ; override;
- public function GetXmlTagName ( ) : string ; class virtual;
- public function GetUnit
(
)
: TGorillaScriptCustomUnitEntity
;
virtual;
Trys to find the parent unit entity.
- public function SaveToXml
(
AParent :
TMz_XmlElement; const
AFlags :
TGorillaScriptEntityXmlFlags
=
[XmlEntities..XmlValues]
)
: TMz_XmlElement
;
virtual;
Creates a xml node inside of a supplied parent xml node.
- public function ToEBNF
(
)
: string
;
virtual;
Test function to verify tree syntax in shortage.
- public procedure AddEntity
(
const
AEntity :
TGorillaScriptEntity
)
;
virtual;
Adding a simple entity to this entity.
- public procedure RemoveEntity
(
const
AEntity :
TGorillaScriptEntity
)
;
virtual;
Removes an existing entity from this entity.
- public procedure DeleteEntity
(
const
AIndex :
Integer
)
;
virtual;
Deletes an entity from this entity by an absolute index.
- public procedure ClearEntities
(
)
;
virtual;
Destroys all attached entities.
- public function HasEntity
(
const
AEntity :
TGorillaScriptEntity; const
ADeep :
Boolean
)
: Boolean
;
Checks if an entity already exists in entities list.
- public procedure AddTypeEntity
(
const
AEntity :
TGorillaScriptType
)
;
virtual;
Declare a type entity inside of this entity.
- public procedure AddValueEntity
(
const
AEntity :
TGorillaScriptValuable
)
;
virtual;
Declare a variable or constant inside of this entity.
- public function GetEntityName ( ) : string ; virtual;
- public function GetParentType ( ) : TGorillaScriptType ;
- public function GetParentCallableType ( ) : TGorillaScriptCallable ;
- public function GetType ( const AName : string ) : TGorillaScriptType ; virtual;
- public function GetValue
(
const
AName :
string; const
AUpwards :
Boolean
=
True
)
: TGorillaScriptValuable
;
virtual;
Tries to find a valuable inside of an entity or goes upwards in AST.
- public function GetItemValue
(
const
AName :
string; const
AUpwards :
Boolean
=
True
)
: TGorillaScriptValuable
;
virtual;
Tries to find a valuable inside of the item type of a basis type. By default this uses GetValue. This method is used for Arrays and Strings when a property/field/method is called after access by index, f.e.: "LMyArray[123].ToString();"
- public procedure Compile ( const ACompiler : TGorillaScriptCompiler; const AByteCode : TBytesStream ) ; virtual;
- public function ToJSON ( ) : string ;
Properties
- public SourceFile : string
- public CodePos : TPoint
Returns the source code position as TPoint structure, where X is the column and Y is the line.
read FCodePos - public EntityID : string
Returns an entity identifier depending on the entity class type. In most cases this is the name property.
read GetEntityID - public GUID : TGUID
- public GUIDString : string
- public Parser : TObject
- public Owner : TGorillaScriptEntity
- public Parent : TGorillaScriptEntity
- public Entities : TObjectList<Gorilla.Script.Entities.TGorillaScriptEntity>
- public EntityCount : Integer
TGorillaScriptNameEntity
Definining an entity with a name, used by types, namespaces, classes, ...
Ancestors
Members
TGorillaScriptType
Basis entity for all types inside of Gorilla3D scripting.
Ancestors
Members
Fields
Methods
- public constructor Create ( const AParser : TObject; const AOwner : TGorillaScriptEntity ) ;
- protected function GetSymbolKind ( ) : TGSSymbolKind ; abstract virtual;
- protected function GetByteCode ( ) : TGorillaScriptByteCode ; virtual;
- protected procedure SetByteCode ( const AValue : TGorillaScriptByteCode ) ; virtual;
- public function GetXmlTagName ( ) : string ; class override;
Properties
TGorillaScriptTypeArgs
Ancestors
TGorillaScriptNamespace
Representing an entity for any namespace declaration.
Remarks
Namespaces can contain more namespaces or classesAncestors
Members
Fields
Properties
TGorillaScriptCustomUnitEntity
Representing an entity for any file used by the script.
Remarks
Those entities are created when another file is included. The custom unit entity is a base class for script units and embedded system units.Ancestors
Members
Fields
Methods
- public constructor Create ( const AParser : TObject; const AOwner : TGorillaScriptEntity ) ;
- public destructor Destroy ( ) ;
- protected function GetSymbolKind ( ) : TGSSymbolKind ; override;
- protected procedure DoCompile ( const ACompiler : TGorillaScriptCompiler; const AByteCode : TBytesStream ) ; override;
- protected procedure DoCompileEntities ( const ACompiler : TGorillaScriptCompiler; const AByteCode : TBytesStream ) ; override;
- public function GetXmlTagName ( ) : string ; class override;
- public function SaveToXml ( AParent : TMz_XmlElement; const AFlags : TGorillaScriptEntityXmlFlags = [XmlEntities..XmlValues] ) : TMz_XmlElement ; override;
- public function GetLocalType ( const AName : string ) : TGorillaScriptType ; virtual;
- public function GetType ( const AName : string ) : TGorillaScriptType ; override;
- public function GetValue ( const AName : string; const AUpwards : Boolean = True ) : TGorillaScriptValuable ; override;
- public procedure LinkUnit ( const AUnit : TGorillaScriptCustomUnitEntity; const AThrowExceptionOnRedeclare : Boolean = True ) ; virtual;
Properties
TGorillaScriptNativeUnit
Representing Units embedded by the scripting engine itself.
Remarks
Those units are delphi units with embedded components and classes, f.e.: "System.SysUtils".Ancestors
Members
TGorillaScriptUnit
Representing self-written scripting units of the user.
Ancestors
TGorillaScriptProgram
TGorillaScriptValue
Representing a value of a variable or constant.
Ancestors
Members
Fields
Methods
- public destructor Destroy ( ) ;
- protected procedure SetValue ( const AValue : TValue ) ;
- protected procedure DoCompile ( const ACompiler : TGorillaScriptCompiler; const AByteCode : TBytesStream ) ; override;
- public function GetXmlTagName ( ) : string ; class override;
- public function SaveToXml ( AParent : TMz_XmlElement; const AFlags : TGorillaScriptEntityXmlFlags = [XmlEntities..XmlValues] ) : TMz_XmlElement ; override;
- public function ToEBNF ( ) : string ; override;
Properties
TGorillaScriptValuable
Basis entity for all entities containing a specific value, f.e.: constants and variables.
Ancestors
Members
Fields
Methods
- public destructor Destroy ( ) ;
- protected function GetTypeField ( ) : TGorillaScriptType ;
- protected procedure SetTypeField ( AValue : TGorillaScriptType ) ;
- public function GetValue ( const AName : string; const AUpwards : Boolean = True ) : TGorillaScriptValuable ; override;
- public function SaveToXml ( AParent : TMz_XmlElement; const AFlags : TGorillaScriptEntityXmlFlags = [XmlEntities..XmlValues] ) : TMz_XmlElement ; override;
Properties
TGorillaScriptVariable
Representing a specific variable inside of a specific Gorilla3D script.
Ancestors
Members
Fields
Methods
- public constructor Create ( const AParser : TObject; const AOwner : TGorillaScriptEntity ) ;
- public destructor Destroy ( ) ;
- protected procedure DoCompile ( const ACompiler : TGorillaScriptCompiler; const AByteCode : TBytesStream ) ; override;
- protected procedure PreCompilePresetValue ( ) ; virtual;
- public function GetXmlTagName ( ) : string ; class override;
- public function SaveToXml ( AParent : TMz_XmlElement; const AFlags : TGorillaScriptEntityXmlFlags = [XmlEntities..XmlValues] ) : TMz_XmlElement ; override;
- public function GetReadAccessor ( ) : TGorillaScriptReference ;
- public function GetWriteAccessor ( ) : TGorillaScriptReference ;
Properties
TGorillaScriptCompoundEntity
Ancestors
Members
Methods
- protected procedure DoCompile ( const ACompiler : TGorillaScriptCompiler; const AByteCode : TBytesStream ) ; override;
- public function GetXmlTagName ( ) : string ; class override;
- public function GetType ( const AName : string ) : TGorillaScriptType ; override;
- public function SaveToXml ( AParent : TMz_XmlElement; const AFlags : TGorillaScriptEntityXmlFlags = [XmlEntities..XmlValues] ) : TMz_XmlElement ; override;
TGorillaScriptMethod
Representing a method entity of a specific class entity.
Ancestors
Members
Fields
- protected FFlags :
TGorillaScriptMethodFlags
- protected FDirectives :
TGorillaScriptMethodDirectives
- protected FVisibility :
TMemberVisibility
- protected FAddress :
Pointer
- protected FParams :
TGorillaScriptListEntity
- protected FResultValue :
TGorillaScriptValuable
- protected FLocals :
TGorillaScriptListEntity
- protected FCode :
TGorillaScriptCompoundEntity
- protected FCompiled :
PGSFunc
Methods
- public constructor Create ( const AParser : TObject; const AOwner : TGorillaScriptEntity; const AHasResult : Boolean ) ;
- public destructor Destroy ( ) ;
- protected function GetReturnType ( ) : TGorillaScriptType ;
- protected procedure SetReturnType ( const AValue : TGorillaScriptType ) ;
- protected procedure DoCompile ( const ACompiler : TGorillaScriptCompiler; const AByteCode : TBytesStream ) ; override;
- public procedure AddLocalResult ( ) ;
- public procedure AddParamSelfClass ( ) ;
- public procedure AddParamSelfInstance ( ) ;
- public function GetXmlTagName ( ) : string ; class override;
- public function HasResult ( ) : Boolean ;
- public function GetValue ( const AName : string; const AUpwards : Boolean = True ) : TGorillaScriptValuable ; override;
- public function SaveToXml ( AParent : TMz_XmlElement; const AFlags : TGorillaScriptEntityXmlFlags = [XmlEntities..XmlValues] ) : TMz_XmlElement ; override;
- public procedure Compile ( const ACompiler : TGorillaScriptCompiler; const AByteCode : TBytesStream ) ; override;
Properties
- public Address : Pointer
- public Flags : TGorillaScriptMethodFlags
- public Directives : TGorillaScriptMethodDirectives
Flags describing the compiler state of a specific method. If a method is overwritten, virtual or overloaded.
read FDirectives
write FDirectives - public Visibility : TMemberVisibility
Flag that defines the visibility of a specific method inside of a container like a class or namespace.
read FVisibility
write FVisibility - public Params : TGorillaScriptListEntity
- public ReturnType : TGorillaScriptType
If a method returns a value, this describes the type of data returned.
read GetReturnType
write SetReturnType - public ResultValue : TGorillaScriptValuable
- public Locals : TGorillaScriptListEntity
- public Code : TGorillaScriptCompoundEntity
TGorillaScriptEnum
Ancestors
Members
Fields
Methods
- public constructor Create ( const AParser : TObject; const AOwner : TGorillaScriptEntity ) ;
- protected function GetSymbolKind ( ) : TGSSymbolKind ; override;
- protected procedure DoCompile ( const ACompiler : TGorillaScriptCompiler; const AByteCode : TBytesStream ) ; override;
- public function GetXmlTagName ( ) : string ; class override;
TGorillaScriptNativeEnum
Ancestors
Members
TGorillaScriptSet
Ancestors
Members
Fields
Methods
- public constructor Create ( const AParser : TObject; const AOwner : TGorillaScriptEntity ) ;
- public destructor Destroy ( ) ;
- protected function GetSymbolKind ( ) : TGSSymbolKind ; override;
- protected procedure DoCompile ( const ACompiler : TGorillaScriptCompiler; const AByteCode : TBytesStream ) ; override;
- public function GetXmlTagName ( ) : string ; class override;
Properties
TGorillaScriptNativeSet
Ancestors
Members
Fields
Properties
TGorillaScriptCallable
Basis entity for callable structures like struct, class and interface.
Ancestors
Members
Fields
Methods
- public constructor Create ( const AParser : TObject; const AOwner : TGorillaScriptEntity ) ;
- public destructor Destroy ( ) ;
- protected procedure CompileMembers ( const ACompiler : TGorillaScriptCompiler; const AByteCode : TBytesStream ) ; virtual;
- public procedure AddMember
(
const
AEntity :
TGorillaScriptNameEntity
)
;
virtual;
Adds an existing entity as member of this class
- public function GetMember
(
const
AName :
string
)
: TGorillaScriptNameEntity
;
virtual;
Tries to find a specific member of this class by name.
Properties
TGorillaScriptImplementable
The implementable entity node allows a type to implement interfaces. This feature is used by classes and interfaces itself.
Ancestors
Members
Fields
Methods
- public constructor Create ( const AParser : TObject; const AOwner : TGorillaScriptEntity ) ;
- public destructor Destroy ( ) ;
- public procedure ImplementInterface
(
const
AIntf :
TGorillaScriptInterface
)
;
virtual;
Adds an existing entity as member of this class
- public function GetInterface
(
const
AName :
string
)
: TGorillaScriptInterface
;
virtual;
Tries to find a specific member of this class by name.
Properties
TGorillaScriptStruct
Ancestors
Members
Fields
Methods
- public constructor Create ( const AParser : TObject; const AOwner : TGorillaScriptEntity ) ;
- public destructor Destroy ( ) ;
- protected function GetSymbolKind ( ) : TGSSymbolKind ; override;
- protected procedure DoCompile ( const ACompiler : TGorillaScriptCompiler; const AByteCode : TBytesStream ) ; override;
- public function GetXmlTagName ( ) : string ; class override;
- public function GetValue ( const AName : string; const AUpwards : Boolean = True ) : TGorillaScriptValuable ; override;
- public function SaveToXml ( AParent : TMz_XmlElement; const AFlags : TGorillaScriptEntityXmlFlags = [XmlEntities..XmlValues] ) : TMz_XmlElement ; override;
TGorillaScriptNativeStruct
TGorillaScriptInterface
Ancestors
Members
Fields
Methods
- public constructor Create ( const AParser : TObject; const AOwner : TGorillaScriptEntity ) ;
- public destructor Destroy ( ) ;
- protected function GetSymbolKind ( ) : TGSSymbolKind ; override;
- protected procedure DoCompile ( const ACompiler : TGorillaScriptCompiler; const AByteCode : TBytesStream ) ; override;
- public function GetXmlTagName ( ) : string ; class override;
- public function GetValue ( const AName : string; const AUpwards : Boolean = True ) : TGorillaScriptValuable ; override;
- public function SaveToXml ( AParent : TMz_XmlElement; const AFlags : TGorillaScriptEntityXmlFlags = [XmlEntities..XmlValues] ) : TMz_XmlElement ; override;
Properties
TGorillaScriptNativeInterface
TGorillaScriptCustomClass
Basis entity for any script class (native / public) inside of specific Gorilla3D script.
Ancestors
Members
Fields
Methods
- public constructor Create ( const AParser : TObject; const AOwner : TGorillaScriptEntity ) ;
- public destructor Destroy ( ) ;
- protected function GetSymbolKind ( ) : TGSSymbolKind ; override;
- protected procedure DoCompile ( const ACompiler : TGorillaScriptCompiler; const AByteCode : TBytesStream ) ; override;
- public function GetXmlTagName ( ) : string ; class override;
- public function GetValue ( const AName : string; const AUpwards : Boolean = True ) : TGorillaScriptValuable ; override;
- public function SaveToXml ( AParent : TMz_XmlElement; const AFlags : TGorillaScriptEntityXmlFlags = [XmlEntities..XmlValues] ) : TMz_XmlElement ; override;
Properties
TGorillaScriptNativeClass
Representing all public internal classes provided by delphi or gorilla3d.
Ancestors
Members
Fields
Methods
- public constructor Create ( const AParser : TObject; const AOwner : TGorillaScriptEntity; const AType : PTypeInfo; const AByteCode : TGorillaScriptByteCode ) ;
- public destructor Destroy ( ) ;
- public function SaveToXml ( AParent : TMz_XmlElement; const AFlags : TGorillaScriptEntityXmlFlags = [XmlEntities..XmlValues] ) : TMz_XmlElement ; override;
Properties
TGorillaScriptClass
Representing the default class entity when a class is defined in Gorilla3D script.
Ancestors
TGorillaScriptRefType
A reference type entity is used for holding a reference to a specific but do not evaluate it at parsing time.
Remarks
This is not used for references inside of the code. Here we use the TGorillaScriptReference entity.Ancestors
Members
Fields
Methods
- public destructor Destroy ( ) ;
- protected function Evaluate
(
)
: TGorillaScriptType
;
Evaluates a specific type by name at compile time.
- protected function GetSymbolKind ( ) : TGSSymbolKind ; override;
- protected function GetByteCode ( ) : TGorillaScriptByteCode ; override;
- protected procedure SetByteCode ( const AValue : TGorillaScriptByteCode ) ; override;
- public function GetXmlTagName ( ) : string ; class override;
- public function GetEntityName ( ) : string ; override;
- public function GetUnit ( ) : TGorillaScriptCustomUnitEntity ; override;
- public function GetType ( const AName : string ) : TGorillaScriptType ; override;
- public function GetValue ( const AName : string; const AUpwards : Boolean = True ) : TGorillaScriptValuable ; override;
Properties
TGorillaScriptReference
A reference to a specific valuable entity. This is used for referenced usage in code.
Ancestors
Members
Fields
Methods
- protected procedure DoCompile ( const ACompiler : TGorillaScriptCompiler; const AByteCode : TBytesStream ) ; override;
- public function GetXmlTagName ( ) : string ; class override;
- public function SaveToXml ( AParent : TMz_XmlElement; const AFlags : TGorillaScriptEntityXmlFlags = [XmlEntities..XmlValues] ) : TMz_XmlElement ; override;
- public function ToEBNF ( ) : string ; override;
- public procedure CompileReference ( const AOwner : TGorillaScriptEntity; const ASource : TGorillaScriptEntity; const AParser : TObject; const ACompiler : TGorillaScriptCompiler; const AByteCode : TBytesStream ) ; class;
- public function GetEntityName ( ) : string ; override;
- public function GetValue ( const AName : string; const AUpwards : Boolean = True ) : TGorillaScriptValuable ; override;
Properties
TGorillaScriptStatement
Ancestors
Members
Methods
- protected procedure DoCompile ( const ACompiler : TGorillaScriptCompiler; const AByteCode : TBytesStream ) ; override;
- public function GetXmlTagName ( ) : string ; class override;
- public function ToEBNF ( ) : string ; override;
- public procedure Compile ( const ACompiler : TGorillaScriptCompiler; const AByteCode : TBytesStream ) ; override;
TGorillaScriptTryStatement
Ancestors
Members
Fields
- protected FExcept :
TGorillaScriptExceptStatement
- protected FFinally :
TGorillaScriptFinallyStatement
Methods
- protected procedure DoCompile ( const ACompiler : TGorillaScriptCompiler; const AByteCode : TBytesStream ) ; override;
- public function GetXmlTagName ( ) : string ; class override;
Properties
TGorillaScriptConditionStatement
Basis entity for if-then-else and case-of statements
Ancestors
TGorillaScriptIfStatement
Representing the if-then-else statement
Ancestors
Members
Fields
Methods
- public constructor Create ( const AParser : TObject; const AOwner : TGorillaScriptEntity ) ;
- public destructor Destroy ( ) ;
- protected procedure DoCompile ( const ACompiler : TGorillaScriptCompiler; const AByteCode : TBytesStream ) ; override;
- public function GetXmlTagName ( ) : string ; class override;
TGorillaScriptElseStatement
Ancestors
Members
TGorillaScriptCaseStatement
Representing the case-of statement
Ancestors
Members
Fields
Methods
- public constructor Create ( const AParser : TObject; const AOwner : TGorillaScriptEntity ) ;
- public destructor Destroy ( ) ;
- protected procedure DoCompile ( const ACompiler : TGorillaScriptCompiler; const AByteCode : TBytesStream ) ; override;
- public function GetXmlTagName ( ) : string ; class override;
TGorillaScriptCaseRange
Ancestors
TGorillaScriptLoopStatement
Basis entity for loop statements like for, foreach, while and repeat
Ancestors
Members
TGorillaScriptForLoop
Representing the basic for loop statement entity.
Ancestors
Members
TGorillaScriptWhileLoop
Representing the while-do loop statement entity.
Ancestors
Members
TGorillaScriptRepeatLoop
Representing the repeat-until loop statement entity.
Ancestors
Members
TGorillaScriptLoopContinue
Representing the keyword "Continue" to skip loop code execution.
Ancestors
Members
TGorillaScriptLoopBreak
Representing the keyword "Break" to stop loop execution and to jump to delimitation section.
Ancestors
Members
TGorillaScriptHalt
Representing the keyword "Halt" to stop code execution.
Ancestors
Members
TGorillaScriptExit
Representing the keyword "Exit" to stop method execution.
Ancestors
Members
TGorillaScriptOperation
Representing an operation, f.e. addition, subtraction, ...
Ancestors
Members
Fields
Methods
- protected procedure DoCompile ( const ACompiler : TGorillaScriptCompiler; const AByteCode : TBytesStream ) ; override;
- public function GetXmlTagName ( ) : string ; class override;
- public function GetEntityName ( ) : string ; override;
- public function GetType ( const AName : string ) : TGorillaScriptType ; override;
- public function GetValue ( const AName : string; const AUpwards : Boolean = True ) : TGorillaScriptValuable ; override;
- public function SaveToXml ( AParent : TMz_XmlElement; const AFlags : TGorillaScriptEntityXmlFlags = [XmlEntities..XmlValues] ) : TMz_XmlElement ; override;
- public function ToEBNF ( ) : string ; override;