Versions in this module Expand all Collapse all v0 v0.0.2 May 26, 2019 Changes in this version + type MatchAction struct + func (a *MatchAction) Accept() bool + func (a *MatchAction) Skip() bool + func (a *MatchAction) Stay() bool type Matcher + func (m *Matcher) Parse(input string) (string, *Error, bool) + type ParseAPI struct + LastMatch string + func (p *ParseAPI) BufInterpreted() (string, bool) + func (p *ParseAPI) BufLiteral() string + func (p *ParseAPI) Emit(t ItemType, v string) + func (p *ParseAPI) EmitError(format string, args ...interface{}) + func (p *ParseAPI) EmitInterpreted(t ItemType) bool + func (p *ParseAPI) EmitLiteral(t ItemType) + func (p *ParseAPI) ExpectEndOfFile() + func (p *ParseAPI) Expects(description string) + func (p *ParseAPI) On(tokenHandler TokenHandler) *MatchAction + func (p *ParseAPI) RouteRepeat() + func (p *ParseAPI) RouteReturn() + func (p *ParseAPI) RouteTo(state StateHandler) *RouteFollowupAction + func (p *ParseAPI) UnexpectedInput() + type ParseRun struct + func (run *ParseRun) Next() (Item, *Error, bool) + type RouteFollowupAction struct + func (a *RouteFollowupAction) ThenReturnHere() + func (a *RouteFollowupAction) ThenTo(state StateHandler) + type TokenAPI struct + func (t *TokenAPI) Accept() + func (t *TokenAPI) ClearInput() + func (t *TokenAPI) ClearOutput() + func (t *TokenAPI) Fork() *TokenAPI + func (t *TokenAPI) Merge() bool + func (t *TokenAPI) NextRune() (rune, bool) + func (t *TokenAPI) Skip() + type TokenHandler func(t *TokenAPI) bool v0.0.1 May 25, 2019 Changes in this version + const EOF + const INVALID + var A = struct{ ... } + var C = struct{ ... } + var M = struct{ ... } + type Error struct + Column int + Line int + Message string + func (err *Error) Error() string + func (err *Error) ErrorFull() string + type Item struct + Type ItemType + Value string + type ItemType int + const ItemEOF + const ItemError + type MatchDialog struct + func (m *MatchDialog) Accept() + func (m *MatchDialog) ClearInput() + func (m *MatchDialog) ClearOutput() + func (m *MatchDialog) Fork() *MatchDialog + func (m *MatchDialog) Merge() bool + func (m *MatchDialog) NextRune() (rune, bool) + func (m *MatchDialog) Skip() + type Matcher func(m *MatchDialog) bool + func MatchAny(matchers ...Matcher) Matcher + func MatchAnyRune() Matcher + func MatchEndOfFile() Matcher + func MatchExcept(except Matcher, matcher Matcher) Matcher + func MatchMax(max int, matcher Matcher) Matcher + func MatchMin(min int, matcher Matcher) Matcher + func MatchMinMax(min int, max int, matcher Matcher) Matcher + func MatchNot(matcher Matcher) Matcher + func MatchOneOrMore(matcher Matcher) Matcher + func MatchOpt(matcher Matcher) Matcher + func MatchRep(times int, matcher Matcher) Matcher + func MatchRune(expected rune) Matcher + func MatchRuneRange(start rune, end rune) Matcher + func MatchRunes(expected ...rune) Matcher + func MatchSeparated(separator Matcher, separated Matcher) Matcher + func MatchSeq(matchers ...Matcher) Matcher + func MatchStr(expected string) Matcher + func MatchStrNoCase(expected string) Matcher + func MatchZeroOrMore(matcher Matcher) Matcher + func ModifyByCallback(matcher Matcher, modfunc func(string) string) Matcher + func ModifyDrop(matcher Matcher) Matcher + func ModifyReplace(matcher Matcher, s string) Matcher + func ModifyToLower(matcher Matcher) Matcher + func ModifyToUpper(matcher Matcher) Matcher + func ModifyTrim(matcher Matcher, cutset string) Matcher + func ModifyTrimLeft(matcher Matcher, cutset string) Matcher + func ModifyTrimRight(matcher Matcher, cutset string) Matcher + type MatcherWrapper struct + func NewMatcher(matcher Matcher, expects string) *MatcherWrapper + func (w *MatcherWrapper) Parse(input string) (string, *Error, bool) + type P struct + LastMatch string + func (p *P) Emit(t ItemType, v string) + func (p *P) EmitError(format string, args ...interface{}) + func (p *P) EmitInterpreted(t ItemType) bool + func (p *P) EmitLiteral(t ItemType) + func (p *P) ExpectEndOfFile() + func (p *P) Expects(description string) + func (p *P) On(matcher Matcher) *matchAction + func (p *P) RouteRepeat() *chainAction + func (p *P) RouteReturn() *chainAction + func (p *P) RouteTo(state StateHandler) *routeFollowupAction + func (p *P) UnexpectedInput() + type Parser struct + func NewParser(startState StateHandler) *Parser + func (p *Parser) Parse(input string) *Run + type Run struct + func (run *Run) Next() (Item, *Error, bool) + type StateHandler func(*P)