Documentation
¶
Index ¶
- func ApplyConfig(options map[string]interface{}, instance *BirEngine)
- type BirEngine
- func (engine *BirEngine) AddImports(stack map[string]interface{})
- func (engine *BirEngine) Feed(input string) string
- func (engine BirEngine) FindOwner(id string, expression ast.BlockCallExpression) *BirEngine
- func (engine BirEngine) FindUpperBlockScope() (*scope.Scope, int, *ast.BlockDeclarationStatement)
- func (engine BirEngine) GetAnonymousIndex(position ast.Position) string
- func (engine BirEngine) GetCurrentCallStack() Callstack
- func (engine BirEngine) GetCurrentScope() scope.Scope
- func (engine BirEngine) HandleAnonymousError(err error)
- func (engine BirEngine) HandleError(err error, position ast.Position)
- func (engine *BirEngine) Init()
- func (engine *BirEngine) PopCallstack() []Callstack
- func (engine BirEngine) PushArguments(expression ast.BlockCallExpression, block ast.BlockDeclarationStatement, ...) []scope.Value
- func (engine *BirEngine) PushCallstack(callstack Callstack) []Callstack
- func (engine BirEngine) PushVerbs(expression ast.BlockCallExpression, block ast.BlockDeclarationStatement, ...) []scope.Value
- func (engine *BirEngine) ResolveArithmeticExpression(raw map[string]interface{}) ast.IntPrimitiveExpression
- func (engine *BirEngine) ResolveAssignStatement(statement ast.AssignStatement)
- func (engine *BirEngine) ResolveBlockCall(raw map[string]interface{}, incoming string) ast.IntPrimitiveExpression
- func (engine *BirEngine) ResolveBlockDeclaration(statement ast.BlockDeclarationStatement)
- func (engine *BirEngine) ResolveCallstack(callstack Callstack) ast.IntPrimitiveExpression
- func (engine *BirEngine) ResolveConditionExpression(raw map[string]interface{}) ast.IntPrimitiveExpression
- func (engine *BirEngine) ResolveExpression(raw map[string]interface{}) ast.IntPrimitiveExpression
- func (engine *BirEngine) ResolveForStatement(statement ast.ForStatement)
- func (engine *BirEngine) ResolveIfStatement(statement ast.IfStatement) ast.IntPrimitiveExpression
- func (engine *BirEngine) ResolveNamespaceDeclaration(statement ast.NamespaceDeclarationStatement)
- func (engine *BirEngine) ResolveNamespaceIndexerExpression(raw map[string]interface{}) ast.IntPrimitiveExpression
- func (engine *BirEngine) ResolveQuantityModifierStatement(statement ast.QuantityModifierStatement)
- func (engine *BirEngine) ResolveReferenceExpression(raw map[string]interface{}) ast.IntPrimitiveExpression
- func (engine *BirEngine) ResolveScopeMutaterExpression(raw map[string]interface{}) ast.IntPrimitiveExpression
- func (engine *BirEngine) ResolveSwitchStatement(statement ast.SwitchStatement) ast.IntPrimitiveExpression
- func (engine *BirEngine) ResolveVariableDeclaration(statement ast.VariableDeclarationStatement)
- func (engine *BirEngine) ResolveWhileStatement(statement ast.WhileStatement)
- func (engine *BirEngine) ReverseCallstack() []Callstack
- func (engine *BirEngine) Run()
- type Callstack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyConfig ¶
TODO: Complete applying config
Types ¶
type BirEngine ¶
type BirEngine struct {
ID string `json:"id"`
Anonymous bool `json:"anonymous"`
NamespaceAllowed bool `json:"namespace_allowed"`
ScopeMutaterAllowed bool `json:"scope_mutater_allowed"`
Path string `json:"path"`
URI string `json:"uri"`
Filename string `json:"filename"`
Directory string `json:"directory"`
Content string `json:"content"`
VerbosityLevel int `json:"verbosity_level"`
Parsed map[string]interface{} `json:"parsed"`
MaximumCallstackSize int `json:"maximum_callstack_size"`
Callstack []Callstack `json:"callstack"`
Scopestack scope.Scopestack `json:"scopestack"`
StdPath string `json:"std_path"`
Uses []BirEngine `json:"uses"`
Thrower thrower.Thrower `json:"thrower"`
ColoredOutput bool `json:"colored_output"`
Implementors []implementor.Implementor `json:"implementors"`
Config map[string]interface{} `json:"config"`
}
func (*BirEngine) AddImports ¶
func (BirEngine) FindOwner ¶
func (engine BirEngine) FindOwner(id string, expression ast.BlockCallExpression) *BirEngine
func (BirEngine) FindUpperBlockScope ¶
func (BirEngine) GetAnonymousIndex ¶
func (BirEngine) GetCurrentCallStack ¶
func (BirEngine) GetCurrentScope ¶
func (BirEngine) HandleAnonymousError ¶
func (BirEngine) HandleError ¶
func (*BirEngine) PopCallstack ¶
func (BirEngine) PushArguments ¶
func (engine BirEngine) PushArguments(expression ast.BlockCallExpression, block ast.BlockDeclarationStatement, incoming string) []scope.Value
func (*BirEngine) PushCallstack ¶
func (BirEngine) PushVerbs ¶
func (engine BirEngine) PushVerbs(expression ast.BlockCallExpression, block ast.BlockDeclarationStatement, incoming string) []scope.Value
func (*BirEngine) ResolveArithmeticExpression ¶
func (engine *BirEngine) ResolveArithmeticExpression(raw map[string]interface{}) ast.IntPrimitiveExpression
func (*BirEngine) ResolveAssignStatement ¶
func (engine *BirEngine) ResolveAssignStatement(statement ast.AssignStatement)
func (*BirEngine) ResolveBlockCall ¶
func (engine *BirEngine) ResolveBlockCall(raw map[string]interface{}, incoming string) ast.IntPrimitiveExpression
func (*BirEngine) ResolveBlockDeclaration ¶
func (engine *BirEngine) ResolveBlockDeclaration(statement ast.BlockDeclarationStatement)
func (*BirEngine) ResolveCallstack ¶
func (engine *BirEngine) ResolveCallstack(callstack Callstack) ast.IntPrimitiveExpression
func (*BirEngine) ResolveConditionExpression ¶
func (engine *BirEngine) ResolveConditionExpression(raw map[string]interface{}) ast.IntPrimitiveExpression
func (*BirEngine) ResolveExpression ¶
func (engine *BirEngine) ResolveExpression(raw map[string]interface{}) ast.IntPrimitiveExpression
func (*BirEngine) ResolveForStatement ¶
func (engine *BirEngine) ResolveForStatement(statement ast.ForStatement)
func (*BirEngine) ResolveIfStatement ¶
func (engine *BirEngine) ResolveIfStatement(statement ast.IfStatement) ast.IntPrimitiveExpression
func (*BirEngine) ResolveNamespaceDeclaration ¶
func (engine *BirEngine) ResolveNamespaceDeclaration(statement ast.NamespaceDeclarationStatement)
func (*BirEngine) ResolveNamespaceIndexerExpression ¶
func (engine *BirEngine) ResolveNamespaceIndexerExpression(raw map[string]interface{}) ast.IntPrimitiveExpression
func (*BirEngine) ResolveQuantityModifierStatement ¶
func (engine *BirEngine) ResolveQuantityModifierStatement(statement ast.QuantityModifierStatement)
func (*BirEngine) ResolveReferenceExpression ¶
func (engine *BirEngine) ResolveReferenceExpression(raw map[string]interface{}) ast.IntPrimitiveExpression
func (*BirEngine) ResolveScopeMutaterExpression ¶
func (engine *BirEngine) ResolveScopeMutaterExpression(raw map[string]interface{}) ast.IntPrimitiveExpression
func (*BirEngine) ResolveSwitchStatement ¶
func (engine *BirEngine) ResolveSwitchStatement(statement ast.SwitchStatement) ast.IntPrimitiveExpression
func (*BirEngine) ResolveVariableDeclaration ¶
func (engine *BirEngine) ResolveVariableDeclaration(statement ast.VariableDeclarationStatement)
func (*BirEngine) ResolveWhileStatement ¶
func (engine *BirEngine) ResolveWhileStatement(statement ast.WhileStatement)
func (*BirEngine) ReverseCallstack ¶
Click to show internal directories.
Click to hide internal directories.