Documentation
¶
Index ¶
- Variables
- func EnvToMapAny(env map[string]*ir.Node) map[string]any
- func ExpandAny(v any, env Env) (any, error)
- func ExpandEnv(node *ir.Node, env Env) error
- func ExpandIR(node *ir.Node, env map[string]any) (*ir.Node, error)
- func ExpandLineComment(node *ir.Node, env Env) error
- func ExpandString(v string, env map[string]any) (string, error)
- func FromAny(v any) (*ir.Node, error)
- func GetRaw(v string) string
- func MapAnyToIR(ma map[string]any) (*ir.Node, error)
- func MarshalJSON(node *ir.Node) ([]byte, error)
- func Register(s Symbol) error
- func SplitChild(opDoc *ir.Node) (tag string, args []string, child *ir.Node, err error)
- func ToAny(node *ir.Node) any
- type Env
- type EvalFunc
- type Op
- type Symbol
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSymbolExists = errors.New("symbol exists")
Functions ¶
func GetRaw ¶
GetRaw extracts the name from a .[name] reference syntax. It returns the name without the ".[" prefix and "]" suffix. If the string is not in .[name] format, it returns an empty string. Example: GetRaw(".[number]") returns "number"
func SplitChild ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.