C# 클래스 WhiteCore.ScriptEngine.DotNetEngine.CompilerTools.LSL2CSCodeTransformer

파일 보기 프로젝트 열기: WhiteCoreSim/WhiteCore-Dev 1 사용 예제들

공개 메소드들

메소드 설명
AddLSLEvent ( EventInfo ev ) : void
FixEventName ( string script, ScriptEngineParser.StateEvent &evt ) : void
GetAllLSLEvents ( ) : List
GetNewLSLEvents ( ) : List
LSL2CSCodeTransformer ( SYMBOL astRoot, string originalScript ) : System.Collections.Generic

Pass the new CodeTransformer an abstract syntax tree.

Transform ( ) : SYMBOL

Transform the code in the AST we have.

Transform ( string>.Dictionary GlobalMethods, ObjectList>.Dictionary MethodArguements ) : SYMBOL

비공개 메소드들

메소드 설명
AddImplicitInitialization ( SYMBOL s, int didx ) : void

Replaces an instance of the node at s.kids[didx] with an assignment node. The assignment node has the Declaration node on the left hand side and a default initializer on the right hand side.

GetLocalVariableDictionaryKey ( ) : string
GetZeroConstant ( Parser p, string constantType ) : SYMBOL

Generates the node structure required to generate a default initialization.

TransformNode ( SYMBOL s, string>.Dictionary GlobalMethods, ObjectList>.Dictionary MethodArguements ) : void

Recursively called to transform each type of node. Will transform this node, then all it's children.

TransformNode ( SYMBOL s, string>.Dictionary GlobalMethods, ObjectList>.Dictionary MethodArguements, List scopesParent, int scopeCurrent ) : void

Recursively called to transform each type of node. Will transform this node, then all it's children.

메소드 상세

AddLSLEvent() 공개 정적인 메소드

public static AddLSLEvent ( EventInfo ev ) : void
ev EventInfo
리턴 void

FixEventName() 공개 정적인 메소드

public static FixEventName ( string script, ScriptEngineParser.StateEvent &evt ) : void
script string
evt ScriptEngineParser.StateEvent
리턴 void

GetAllLSLEvents() 공개 정적인 메소드

public static GetAllLSLEvents ( ) : List
리턴 List

GetNewLSLEvents() 공개 정적인 메소드

public static GetNewLSLEvents ( ) : List
리턴 List

LSL2CSCodeTransformer() 공개 메소드

Pass the new CodeTransformer an abstract syntax tree.
public LSL2CSCodeTransformer ( SYMBOL astRoot, string originalScript ) : System.Collections.Generic
astRoot Tools.SYMBOL The root node of the AST.
originalScript string The original script that we are converting
리턴 System.Collections.Generic

Transform() 공개 메소드

Transform the code in the AST we have.
public Transform ( ) : SYMBOL
리턴 Tools.SYMBOL

Transform() 공개 메소드

public Transform ( string>.Dictionary GlobalMethods, ObjectList>.Dictionary MethodArguements ) : SYMBOL
GlobalMethods string>.Dictionary
MethodArguements ObjectList>.Dictionary
리턴 Tools.SYMBOL