Documentation
¶
Index ¶
- type EvaluateResult
- type Evaluater
- func (e *Evaluater) Assign(variable symbol.VariableSymbol, value any)
- func (e *Evaluater) Evaluate() any
- func (e *Evaluater) EvaluateExpression(node bind.BoundExpression) any
- func (e *Evaluater) EvaluateExpressionStatement(node *bind.BoundExpressStatements)
- func (e *Evaluater) EvaluateStatement(body *bind.BoundBlockStatements) any
- func (e *Evaluater) EvaluateVariableDeclaration(node *bind.BoundVariableDeclaration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EvaluateResult ¶
type EvaluateResult struct { Diagnostic *diagnostic.DiagnosticBag Value any }
type Evaluater ¶
type Evaluater struct {
// contains filtered or unexported fields
}
func NewEvaluater ¶
func NewEvaluater(program *program.BoundProgram, vm map[symbol.VariableSymbol]any) *Evaluater
func (*Evaluater) EvaluateExpression ¶
func (e *Evaluater) EvaluateExpression(node bind.BoundExpression) any
func (*Evaluater) EvaluateExpressionStatement ¶
func (e *Evaluater) EvaluateExpressionStatement(node *bind.BoundExpressStatements)
func (*Evaluater) EvaluateStatement ¶
func (e *Evaluater) EvaluateStatement(body *bind.BoundBlockStatements) any
func (*Evaluater) EvaluateVariableDeclaration ¶
func (e *Evaluater) EvaluateVariableDeclaration(node *bind.BoundVariableDeclaration)
Click to show internal directories.
Click to hide internal directories.