Versions in this module Expand all Collapse all v0 v0.0.1 Mar 30, 2022 Changes in this version + const CORO_MOD + const CORO_SM_MOD + const CORO_SYNC_MOD + const GEN_MOD + const INDEX_RELOAD + const INDEX_SET_RELOAD + const LIBUV + const RUNTIME + const SLICE + var ScopeMap = map[string]*Scope + func AddSTDFunc(m *ir.Module, s *Scope) + type ArrayInitNode struct + Type TypeNode + Vals []Node + type ArrayTypeNode struct + ElmType TypeNode + Len int + PtrLevel int + func (n *ArrayTypeNode) Clone() TypeNode + func (n *ArrayTypeNode) GetPtrLevel() int + func (v *ArrayTypeNode) SetPtrLevel(i int) + func (v *ArrayTypeNode) String(s *Scope) string + type AwaitNode struct + Exp ExpNode + type BasicTypeNode struct + CustomTp []string + Generics []TypeNode + Pkg string + PtrLevel int + ResType int + func (n *BasicTypeNode) Clone() TypeNode + func (n *BasicTypeNode) GetPtrLevel() int + func (v *BasicTypeNode) SetPtrLevel(i int) + func (v *BasicTypeNode) String(s *Scope) string + type BinNode struct + Left ExpNode + Op int + Right ExpNode + type BoolConstNode struct + Val bool + type BoolExpNode struct + Left ExpNode + Op int + Right ExpNode + type BreakNode struct + type CallFuncNode struct + FnNode Node + Generics []TypeNode + Next Node + Params []Node + type CompareNode struct + Left ExpNode + Op int + Right ExpNode + type ContinueNode struct + type DefAndAssignNode struct + ID string + Val func(s *Scope) value.Value + ValNode Node + type DefineNode struct + ID string + TP TypeNode + Val value.Value + type EmptyNode struct + type ExpNode interface + type Field struct + Name string + TP TypeNode + type ForNode struct + Assign Node + Bool Node + DefineAssign Node + Statements Node + type FuncNode struct + Async bool + Generics []string + ID string + Params *ParamsNode + RetType TypeNode + Statements Node + func (n *FuncNode) AddtoScope(s *Scope) + type FuncTypeNode struct + Args *ParamsNode + Ret TypeNode + func (n *FuncTypeNode) Clone() TypeNode + func (n *FuncTypeNode) GetPtrLevel() int + func (v *FuncTypeNode) SetPtrLevel(i int) + func (v *FuncTypeNode) String(*Scope) string + type IfElseNode struct + BoolExp Node + ElSt Node + Statements Node + type IfNode struct + BoolExp Node + Statements Node + type ImportNode struct + Imports map[string]string + type InlineFuncNode struct + Async bool + Body Node + Fntype TypeNode + type InterfaceDefNode struct + Funcs map[string]*FuncNode + OrderedIDS []string + func (n *InterfaceDefNode) Clone() TypeNode + func (n *InterfaceDefNode) GetPtrLevel() int + func (v *InterfaceDefNode) SetPtrLevel(i int) + func (v *InterfaceDefNode) String(*Scope) string + type NilNode struct + type Node interface + func NewTypeDef(id string, tp TypeNode, generics []string, m *ir.Module, s *Scope) Node + type NotNode struct + Bool ExpNode + type NumNode struct + Val value.Value + type PackageNode struct + Name string + type ParamNode struct + ID string + TP TypeNode + Val value.Value + func (n *ParamNode) V() value.Value + type ParamsNode struct + Ext bool + Params []*ParamNode + type ProgramNode struct + Children []Node + GlobalScope *Scope + Imports *ImportNode + PKG *PackageNode + func Merge(ns ...*ProgramNode) *ProgramNode + func (n *ProgramNode) CalcGlobals(m *ir.Module) + func (n *ProgramNode) Emit(m *ir.Module) + type RetNode struct + Exp Node + type SLNode struct + Children []Node + type Scope struct + Pkgname string + func MergeGlobalScopes(ss ...*Scope) *Scope + func NewGlobalScope(m *ir.Module) *Scope + type StringNode struct + Str string + type StructDefNode struct + Orderedfields []*Field + func (n *StructDefNode) Clone() TypeNode + func (n *StructDefNode) GetPtrLevel() int + func (v *StructDefNode) SetPtrLevel(i int) + func (v *StructDefNode) String(*Scope) string + type StructInitNode struct + Fields map[string]Node + TP TypeNode + type TakePtrNode struct + Node ExpNode + type TakeValNode struct + Level int + Node ExpNode + type TypeNode interface + Clone func() TypeNode + GetPtrLevel func() int + SetPtrLevel func(int) + String func(*Scope) string + type UnaryNode struct + Child ExpNode + Op int + type VarBlockNode struct + Idxs []Node + Next *VarBlockNode + Token string + type YieldNode struct + Exp Node