Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Debug = false
Functions ¶
This section is empty.
Types ¶
type DeferredState ¶
type DeferredState struct {
// contains filtered or unexported fields
}
func (*DeferredState) Label ¶
func (s *DeferredState) Label(label string) State
func (*DeferredState) Post ¶
func (s *DeferredState) Post(ph PostHandler) State
func (*DeferredState) PostHandle ¶
func (s *DeferredState) PostHandle(t Tree) PostResult
func (*DeferredState) Set ¶
func (s *DeferredState) Set(newState State)
func (*DeferredState) String ¶
func (s *DeferredState) String() string
type Input ¶
type Input interface {
Peek() (interface{}, error)
Cursor() int64
LinedCursor() string
Consume(n int64)
Revert(n int64)
AtEOI() bool
Debug(State)
}
func StringInput ¶
type PostHandler ¶
type PostHandler func(Tree) PostResult
type PostResult ¶
type PostResult struct {
Content interface{}
Err error
}
type State ¶
type State interface {
Handle(Input) (Tree, error)
Label(string) State
Post(PostHandler) State
PostHandle(Tree) PostResult
Stringer
}
Click to show internal directories.
Click to hide internal directories.