Documentation
¶
Index ¶
- Variables
- func Parse(src, projectPath, scriptPath, fileName string, compilingMixer bool, ...) []*tp.ScriptObject
- func ParseFile(projectPath, scriptPath, fileName string, compilingMixer bool, ...) *tp.ScriptObject
- func ParseFileSet(projectPath, scriptPath, fileName string, compilingMixer bool, ...) []*tp.ScriptObject
- func ParseRootScript(src, projectPath, scriptPath, fileName string, compilingMixer bool, ...) *tp.ScriptObject
- func ParseScript(src, projectPath, scriptPath, fileName string, compilingMixer bool, ...) *tp.ScriptObject
- type Parser
Constants ¶
This section is empty.
Variables ¶
View Source
var IncludeSelectorInfo = false
View Source
var TritiumParserShowRewriterFileName = false
Functions ¶
func Parse ¶
func Parse(src, projectPath, scriptPath, fileName string, compilingMixer bool, activeLayers []string) []*tp.ScriptObject
func ParseFile ¶
func ParseFile(projectPath, scriptPath, fileName string, compilingMixer bool, activeLayers []string) *tp.ScriptObject
func ParseFileSet ¶
func ParseFileSet(projectPath, scriptPath, fileName string, compilingMixer bool, activeLayers []string) []*tp.ScriptObject
func ParseRootScript ¶
func ParseRootScript(src, projectPath, scriptPath, fileName string, compilingMixer bool, activeLayers []string) *tp.ScriptObject
func ParseScript ¶
func ParseScript(src, projectPath, scriptPath, fileName string, compilingMixer bool, activeLayers []string) *tp.ScriptObject
Types ¶
type Parser ¶
type Parser struct {
*Tokenizer
ProjectPath string // the project path (probably absolute)
ScriptPath string // the folder containing the script file being parsed (relative to the project path)
FileName string // the base-name of the script file being parsed
FullPath string
Lookahead *Token
RootFile bool
Namespaces []string
Defspace string
CompilingMixer bool // Am I compiling a mixer?
ActiveLayers map[string]bool
// contains filtered or unexported fields
}
func MakeParser ¶
func (*Parser) Parse ¶
func (p *Parser) Parse() *tp.ScriptObject
Click to show internal directories.
Click to hide internal directories.