Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallStack ¶
type CallStack struct {
Frames []callStackFrame
}
func NewCallStack ¶
func NewCallStack() *CallStack
type LocalVariableStack ¶
type LocalVariableStack struct {
// contains filtered or unexported fields
}
func NewLocalVariableStack ¶
func NewLocalVariableStack() *LocalVariableStack
func (*LocalVariableStack) Retrieve ¶
func (stack *LocalVariableStack) Retrieve(key string) (builtins.Value, error)
func (*LocalVariableStack) Shift ¶
func (stack *LocalVariableStack) Shift()
func (*LocalVariableStack) Store ¶
func (stack *LocalVariableStack) Store(key string, value builtins.Value)
func (*LocalVariableStack) Unshift ¶
func (stack *LocalVariableStack) Unshift()
func (*LocalVariableStack) UnshiftCopyingCurrentFrame ¶
func (stack *LocalVariableStack) UnshiftCopyingCurrentFrame()
type ParseError ¶
type ParseError struct {
Filename string
}
func NewParseError ¶
func NewParseError(filename string) *ParseError
func (*ParseError) Error ¶
func (err *ParseError) Error() string
type VM ¶
type VM interface { Run(string) (Value, error) Exit() Get(string) (Value, error) MustGet(string) Value GetClass(string) (Class, error) MustGetClass(string) Class GetModule(string) (Module, error) MustGetModule(string) Module Set(string, Value) Symbols() map[string]Value Globals() map[string]Value Classes() map[string]Class Modules() map[string]Module Provider ArgEvaluator ClassProvider SingletonProvider StackProvider }
Source Files ¶
- alias.go
- array.go
- assignment.go
- bare_reference.go
- begin.go
- call_expression.go
- callstack.go
- class.go
- constant.go
- declare_class.go
- declare_method.go
- declare_module.go
- defined.go
- double_quote_string.go
- eigenclass.go
- hash.go
- if_block.go
- instance_variable.go
- local_variable_stack.go
- negation.go
- regexp.go
- super.go
- switch.go
- symbol.go
- ternary.go
- vm.go
- weak_boolean_and.go
- weak_boolean_or.go
Click to show internal directories.
Click to hide internal directories.