Versions in this module Expand all Collapse all v0 v0.1.0 Sep 28, 2019 Changes in this version + var NodeIL_DValue_Kind_name = map[int32]string + var NodeIL_DValue_Kind_value = map[string]int32 + var NodeIL_Kind_name = map[int32]string + var NodeIL_Kind_value = map[string]int32 + var TokenIL_Kind_name = map[int32]string + var TokenIL_Kind_value = map[string]int32 + func LastReturn(ctx context.Context) interface + func NodeCompare(lhs, rhs *NodeIL) bool + func Run(i *Implementation, src string) error + type Implementation struct + func (i *Implementation) Func(name string, handler interface{}) + func (i *Implementation) Functions() []string + type MacC interface + Getenv func(string) string + func Mac(ctx context.Context) MacC + type Machine struct + func New(impl *Implementation) *Machine + func (m *Machine) Execute(p *ProgramIL) error + func (m *Machine) Getenv(name string) string + func (m *Machine) Setenv(name string, value string) + func (m *Machine) Shutdown() + func (m *Machine) State() MacC + type NodeIL struct + Chained *NodeIL + Children []*NodeIL + Id []byte + Kind NodeIL_Kind + SubType string + Value *NodeIL_DValue + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*NodeIL) Descriptor() ([]byte, []int) + func (*NodeIL) ProtoMessage() + func (m *NodeIL) GetChained() *NodeIL + func (m *NodeIL) GetChildren() []*NodeIL + func (m *NodeIL) GetId() []byte + func (m *NodeIL) GetKind() NodeIL_Kind + func (m *NodeIL) GetSubType() string + func (m *NodeIL) GetValue() *NodeIL_DValue + func (m *NodeIL) Reset() + func (m *NodeIL) String() string + func (m *NodeIL) XXX_DiscardUnknown() + func (m *NodeIL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *NodeIL) XXX_Merge(src proto.Message) + func (m *NodeIL) XXX_Size() int + func (m *NodeIL) XXX_Unmarshal(b []byte) error + type NodeIL_DValue struct + Bool bool + Flt float64 + Kind NodeIL_DValue_Kind + Str string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*NodeIL_DValue) Descriptor() ([]byte, []int) + func (*NodeIL_DValue) ProtoMessage() + func (m *NodeIL_DValue) GetBool() bool + func (m *NodeIL_DValue) GetFlt() float64 + func (m *NodeIL_DValue) GetKind() NodeIL_DValue_Kind + func (m *NodeIL_DValue) GetStr() string + func (m *NodeIL_DValue) Reset() + func (m *NodeIL_DValue) String() string + func (m *NodeIL_DValue) XXX_DiscardUnknown() + func (m *NodeIL_DValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *NodeIL_DValue) XXX_Merge(src proto.Message) + func (m *NodeIL_DValue) XXX_Size() int + func (m *NodeIL_DValue) XXX_Unmarshal(b []byte) error + type NodeIL_DValue_Kind int32 + const NodeIL_DValue_BOOL + const NodeIL_DValue_FLT + const NodeIL_DValue_STR + func (NodeIL_DValue_Kind) EnumDescriptor() ([]byte, []int) + func (x NodeIL_DValue_Kind) String() string + type NodeIL_Kind int32 + const NodeIL_ASSIGN + const NodeIL_FUNC + const NodeIL_GROUP + const NodeIL_NAT + const NodeIL_NONE + const NodeIL_ROOT + const NodeIL_VALUE + const NodeIL_VAR + func (NodeIL_Kind) EnumDescriptor() ([]byte, []int) + func (x NodeIL_Kind) String() string + type ProgramIL struct + Entry *NodeIL + FuncCalls map[string]uint64 + Id []byte + Source string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func CompileSource(src string) (*ProgramIL, error) + func (*ProgramIL) Descriptor() ([]byte, []int) + func (*ProgramIL) ProtoMessage() + func (m *ProgramIL) GetEntry() *NodeIL + func (m *ProgramIL) GetFuncCalls() map[string]uint64 + func (m *ProgramIL) GetId() []byte + func (m *ProgramIL) GetSource() string + func (m *ProgramIL) Reset() + func (m *ProgramIL) String() string + func (m *ProgramIL) XXX_DiscardUnknown() + func (m *ProgramIL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ProgramIL) XXX_Merge(src proto.Message) + func (m *ProgramIL) XXX_Size() int + func (m *ProgramIL) XXX_Unmarshal(b []byte) error + func (p *ProgramIL) IR() ([]byte, error) + func (p *ProgramIL) LoadIR(ir []byte) error + type RuntimeError struct + Code string + Loc uintptr + Message string + func (e RuntimeError) Error() string + type SourceError struct + Column uint32 + Line uint32 + Message string + func (e *SourceError) Error() string + type SyntaxError struct + Message string + Node *NodeIL + Token *TokenIL + func (e *SyntaxError) Error() string + type TokenIL struct + Column uint32 + Kind TokenIL_Kind + Line uint32 + Value string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*TokenIL) Descriptor() ([]byte, []int) + func (*TokenIL) ProtoMessage() + func (m *TokenIL) GetColumn() uint32 + func (m *TokenIL) GetKind() TokenIL_Kind + func (m *TokenIL) GetLine() uint32 + func (m *TokenIL) GetValue() string + func (m *TokenIL) Reset() + func (m *TokenIL) String() string + func (m *TokenIL) XXX_DiscardUnknown() + func (m *TokenIL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TokenIL) XXX_Merge(src proto.Message) + func (m *TokenIL) XXX_Size() int + func (m *TokenIL) XXX_Unmarshal(b []byte) error + type TokenIL_Kind int32 + const TokenIL_ASSIGN + const TokenIL_CLOSE + const TokenIL_DOT + const TokenIL_END + const TokenIL_NONE + const TokenIL_OPEN + const TokenIL_PIPE + const TokenIL_VALUE + const TokenIL_VAR + func (TokenIL_Kind) EnumDescriptor() ([]byte, []int) + func (x TokenIL_Kind) String() string