|
ScriptStack 1.0.4
|
The parser builds an ScriptStack.Runtime.Executable out of the Token stream returned from the ScriptStack.Compiler.Lexer while checking for correct syntax. More...
Public Member Functions | |
| string | ToLiteral (string input) |
| Parser (Script script, List< Token > tokenStream) | |
| Executable | Parse () |
| Parse the token stream into an executable. | |
The parser builds an ScriptStack.Runtime.Executable out of the Token stream returned from the ScriptStack.Compiler.Lexer while checking for correct syntax.
The parser takes the output from the Lexer in the form of a Token stream and matches it against syntax rules to detect any errors. The output is an abstract syntax tree in form of Instruction's which can be executed by the ScriptStack.Runtime.Interpreter. More details are coming soon.
Not all methods are well documented yet but please be patient - i am working on it.
Definition at line 3073 of file Parser.cs.
| Executable ScriptStack.Compiler.Parser.Parse | ( | ) |
Parse the token stream into an executable.
Definition at line 3092 of file Parser.cs.
Referenced by ScriptStack.Runtime.Script.Script(), and ScriptStack.Runtime.Script.Script().
| string ScriptStack.Compiler.Parser.ToLiteral | ( | string | input | ) |
Definition at line 1217 of file Parser.cs.