Documentation ¶
Index ¶
- func Camel(text string) string
- func CheckWriteFile(filename string, text []byte)
- func Main()
- func MakeExit(path []*State) []string
- func PrintCpp(file io.Writer, root *State, source []string)
- func PrintCs(file io.Writer, root *State, source []string)
- func PrintEvent(event *Event, indent string) (lines []string)
- func PrintGo(file io.Writer, root *State, source []string)
- func PrintLmsCs(file io.Writer, root *State, source []string)
- func PrintRoot(state *State, indent string) (lines []string)
- func PrintState(state *State, indent string) (lines []string)
- func ReadRoot(filename string) string
- func SplitName(text string) (string, []string)
- func StringSet(list []string) []string
- type Event
- type Parser
- type State
- func (state *State) AddEvent(event *Event) bool
- func (state *State) AddState(other *State)
- func (root *State) AllActions() []string
- func (root *State) AllConditions() []string
- func (state *State) AllDescendants(states ...*State) []*State
- func (root *State) AllEvents() []string
- func (state *State) Children() []*State
- func (state *State) Diff(other *State) ([]*State, []*State)
- func (state *State) Entry() []string
- func (state *State) Events() []*Event
- func (state *State) EventsGrouped() map[string][]*Event
- func (state *State) Exit() []string
- func (state *State) FollowStart() *State
- func (state *State) IsDescendantOf(other *State) bool
- func (state *State) IsLeaf() bool
- func (state *State) IsNested() bool
- func (state *State) Name() string
- func (state *State) Parent() *State
- func (state *State) Path() []*State
- func (state *State) PushEvents()
- func (state *State) Start() *State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckWriteFile ¶
func PrintEvent ¶
func PrintState ¶
Types ¶
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
func (*Event) IsInternal ¶
type Parser ¶
type Parser struct { OnErrorUnexpected func() OnEventAct func() OnEventBegin func() OnEventCond func() OnEventDst func() OnEventEnd func() OnEventName func() OnRootBegin func() OnRootName func() OnStateBegin func() OnStateEnd func() OnStateEntry func() OnStateExit func() OnStateName func() OnStateStart func() CondAct func() bool CondBra func() bool CondComma func() bool CondDot func() bool CondDst func() bool CondEntry func() bool CondEvent func() bool CondExit func() bool CondIdent func() bool CondIf func() bool CondKet func() bool CondSemi func() bool CondStart func() bool CondState func() bool // contains filtered or unexported fields }
type State ¶
type State struct {
// contains filtered or unexported fields
}
func MakeTransition ¶
func (*State) AllActions ¶
func (*State) AllConditions ¶
func (*State) AllDescendants ¶
func (*State) EventsGrouped ¶
func (*State) FollowStart ¶
func (*State) IsDescendantOf ¶
func (*State) PushEvents ¶
func (state *State) PushEvents()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.