|
ScriptStack 1.0.5
|
Internal representation of a text file (source code) which can be passed to the Interpreter to execute it. More...
Public Member Functions | |
| Script (Manager manager, string scriptName) | |
| Script (Manager manager, string scriptName, bool binary) | |
| void | CompileBinary (string fileName) |
| void | CompileJSON (string fileName) |
| bool | EntryPoint () |
Properties | |
| Manager | Manager [get] |
| string | Name [get] |
| ReadOnlyCollection< String > | SourceLines [get] |
| string | Source [get] |
| Executable | Executable [get] |
| Memory | ScriptMemory [get] |
| ScriptStack.Collections.ReadOnlyDictionary< String, Function > | Functions [get] |
| Function | MainFunction [get] |
Private Member Functions | |
| void | Scan (string scriptName) |
Static Private Member Functions | |
| static object | ConvertLexeme (SerializableToken st) |
| static object | ConvertLexeme (TokenType type, string lexemeStr) |
Private Attributes | |
| Manager | manager |
| String | scriptName |
| List< String > | sourceCode |
| Executable | executable |
Internal representation of a text file (source code) which can be passed to the Interpreter to execute it.
| ScriptStack.Runtime.Script.Script | ( | Manager | manager, |
| string | scriptName ) |
Definition at line 219 of file Script.cs.
References ScriptStack.Manager.Debug, executable, ScriptStack.Compiler.Lexer.GetTokens(), Manager, manager, ScriptStack.Manager.Optimize, ScriptStack.Compiler.Parser.Parse(), Scan(), scriptName, and sourceCode.
| ScriptStack.Runtime.Script.Script | ( | Manager | manager, |
| string | scriptName, | ||
| bool | binary ) |
Definition at line 262 of file Script.cs.
References ConvertLexeme(), ScriptStack.Manager.Debug, executable, Manager, manager, ScriptStack.Manager.Optimize, ScriptStack.Compiler.Parser.Parse(), and scriptName.
| void ScriptStack.Runtime.Script.CompileBinary | ( | string | fileName | ) |
Definition at line 340 of file Script.cs.
References ScriptStack.Compiler.Lexer.GetTokens(), Scan(), scriptName, and sourceCode.
| void ScriptStack.Runtime.Script.CompileJSON | ( | string | fileName | ) |
Definition at line 375 of file Script.cs.
References ScriptStack.Compiler.Lexer.GetTokens(), Scan(), scriptName, and sourceCode.
|
staticprivate |
Definition at line 102 of file Script.cs.
References ScriptStack.Compiler.SerializableToken.Lexeme, and ScriptStack.Compiler.SerializableToken.Type.
Referenced by Script().
|
staticprivate |
Definition at line 165 of file Script.cs.
| bool ScriptStack.Runtime.Script.EntryPoint | ( | ) |
Definition at line 413 of file Script.cs.
References executable.
|
private |
Definition at line 31 of file Script.cs.
References ScriptStack.Compiler.Lexer.GetTokens(), manager, ScriptStack.Compiler.Scanner.Scan(), scriptName, and sourceCode.
Referenced by CompileBinary(), CompileJSON(), and Script().
|
private |
Definition at line 25 of file Script.cs.
Referenced by EntryPoint(), Script(), and Script().
|
private |
|
private |
Definition at line 23 of file Script.cs.
Referenced by CompileBinary(), CompileJSON(), Scan(), Script(), and Script().
|
private |
Definition at line 24 of file Script.cs.
Referenced by CompileBinary(), CompileJSON(), Scan(), and Script().
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |