Documentation ¶
Overview ¶
Package scope contains the block scope implementation for the event condition language ECAL.
Index ¶
- Constants
- func EvalToString(v interface{}) string
- func NameFromASTNode(node *parser.ASTNode) string
- func NewScope(name string) parser.Scope
- func NewScopeWithParent(name string, parent parser.Scope) parser.Scope
- func SetParentOfScope(scope parser.Scope, parent parser.Scope)
- func ToObject(vs parser.Scope) map[interface{}]interface{}
- func ToScope(name string, o map[interface{}]interface{}) parser.Scope
Constants ¶
View Source
const ( GlobalScope = "GlobalScope" FuncPrefix = "func:" )
Default scope names
Variables ¶
This section is empty.
Functions ¶
func EvalToString ¶
func EvalToString(v interface{}) string
EvalToString should be used if a value should be converted into a string.
func NameFromASTNode ¶
NameFromASTNode returns a scope name from a given ASTNode.
func NewScopeWithParent ¶
NewScopeWithParent creates a new variable scope with a parent. This can be used to create scope structures without children links.
func SetParentOfScope ¶
SetParentOfScope sets the parent of a given scope. This assumes that the given scope is a varsScope.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.