parser

package
v0.0.0-...-6f0ee80 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2016 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 MakeParser(src, projectPath, scriptPath, fileName string, isRootFile bool, compilingMixer bool, activeLayers []string) *Parser

func (*Parser) Parse

func (p *Parser) Parse() *tp.ScriptObject

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL