Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrMixinNotFound = errors.New("mixin by name not found")
)
Functions ¶
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context maintains the state of the compiler and handles the output of the parser.
type Scope ¶
type Scope interface { // OpenScope() Typ // CloseScope() Typ // Lookup(string) interface{} // Insert(string, interface{}) // Number of Rules in this scope RuleAdd(*ast.RuleSpec) RuleLen() int RegisterMixin(string, int, *MixFn) Mixin(string, int) (*MixFn, error) }
stores types and values with scoping. To remove a scope use CloseScope(), to open a new Scope use OpenScope().
func CloseScope ¶
Click to show internal directories.
Click to hide internal directories.