Versions in this module Expand all Collapse all v3 v3.0.6 Dec 6, 2022 v3.0.5 Dec 6, 2022 Changes in this version + var ErrEmptyStack = errors.New("stack: empty") + func CalleeParameterString(params []*Parameter) string + func CallerParameterString(params []*Parameter) string + type CallStatement struct + Name string + Params []*Parameter + func (s *CallStatement) AddParams(params ...*Parameter) + func (s *CallStatement) SimpleName() string + func (s *CallStatement) String() string + type CloseStatement struct + Chan string + func (s *CloseStatement) String() string + type Function struct + HasComm bool + Name string + Params []*Parameter + Stmts []Statement + func NewFunction(name string) *Function + func (f *Function) AddParams(params ...*Parameter) + func (f *Function) AddStmts(stmts ...Statement) + func (f *Function) GetParamByCalleeValue(v NamedVar) (*Parameter, error) + func (f *Function) IsEmpty() bool + func (f *Function) PutAway() + func (f *Function) Restore() ([]Statement, error) + func (f *Function) SimpleName() string + func (f *Function) String() string + type IfForStatement struct + Else []Statement + ForCond string + Then []Statement + func (s *IfForStatement) String() string + type IfStatement struct + Else []Statement + Then []Statement + func (s *IfStatement) String() string + type MemRead struct + Name string + func (s *MemRead) String() string + type MemWrite struct + Name string + func (s *MemWrite) String() string + type NamedVar interface + Name func() string + String func() string + type NewChanStatement struct + Chan string + Name NamedVar + Size int64 + func (s *NewChanStatement) String() string + type NewMem struct + Name NamedVar + func (s *NewMem) String() string + type NewSyncMutex struct + Name NamedVar + func (m *NewSyncMutex) String() string + type NewSyncRWMutex struct + Name NamedVar + func (m *NewSyncRWMutex) String() string + type Parameter struct + Callee NamedVar + Caller NamedVar + func (p *Parameter) String() string + type Program struct + Funcs []*Function + func NewProgram() *Program + func (p *Program) AddFunction(f *Function) + func (p *Program) Function(name string) (*Function, bool) + func (p *Program) String() string + type RecvStatement struct + Chan string + Pos token.Position + func (s *RecvStatement) String() string + type SelectStatement struct + Cases [][]Statement + func (s *SelectStatement) String() string + type SendStatement struct + Chan string + Pos token.Position + func (s *SendStatement) String() string + type SpawnStatement struct + Name string + Params []*Parameter + func (s *SpawnStatement) AddParams(params ...*Parameter) + func (s *SpawnStatement) SimpleName() string + func (s *SpawnStatement) String() string + type Statement interface + String func() string + type StmtsStack struct + func NewStmtsStack() *StmtsStack + func (s *StmtsStack) IsEmpty() bool + func (s *StmtsStack) Pop() ([]Statement, error) + func (s *StmtsStack) Push(stmt []Statement) + func (s *StmtsStack) Size() int + type SyncMutexLock struct + Name string + func (m *SyncMutexLock) String() string + type SyncMutexUnlock struct + Name string + func (m *SyncMutexUnlock) String() string + type SyncRWMutexRLock struct + Name string + func (m *SyncRWMutexRLock) String() string + type SyncRWMutexRUnlock struct + Name string + func (m *SyncRWMutexRUnlock) String() string + type TauStatement struct + func (s *TauStatement) String() string Other modules containing this package github.com/JorgeGCoelho/migo