Versions in this module Expand all Collapse all v0 v0.2.0 Feb 25, 2020 Changes in this version + var TrashResult = &Result + func ASCIIWhitespace(s *State) + func DisableLogging() + func DumpDebugStats() + func EnableLogging(w io.Writer) + func NoWhitespace(s *State) + func Run(parser Parserish, input string, ws ...VoidParser) (result interface{}, err error) + func UnicodeWhitespace(s *State) + type Error struct + func (e *Error) Error() string + func (e *Error) LocateError(s string) string + func (e *Error) Pos() int + type Parser func(*State, *Result) + func Any(parsers ...Parserish) Parser + func Bind(parser Parserish, val interface{}) Parser + func Chars(matcher string, repetition ...int) Parser + func Cut() Parser + func Exact(match string) Parser + func Many(parser Parserish, separator ...Parserish) Parser + func Map(parser Parserish, f func(n *Result)) Parser + func Maybe(parser Parserish) Parser + func Merge(parser Parserish) Parser + func NewParser(description string, p Parser) Parser + func NoAutoWS(parser Parserish) Parser + func NotChars(matcher string, repetition ...int) Parser + func NumberLit() Parser + func Parsify(p Parserish) Parser + func ParsifyAll(parsers ...Parserish) []Parser + func Regex(pattern string) Parser + func Seq(parsers ...Parserish) Parser + func Some(parser Parserish, separator ...Parserish) Parser + func StringLit(allowedQuotes string) Parser + func Until(terminators ...string) Parser + func (p Parser) Map(f func(n *Result)) Parser + type Parserish interface + type Result struct + Child []Result + End int + Input string + Result interface{} + Start int + Token string + func (r Result) String() string + type State struct + Cut int + Error Error + Input string + Pos int + WS VoidParser + func NewState(input string) *State + func (s *State) Advance(i int) + func (s *State) ErrorHere(expected string) + func (s *State) Errored() bool + func (s *State) Get() string + func (s *State) Preview(x int) string + func (s *State) Recover() + type UnparsedInputError struct + Remaining string + func (e UnparsedInputError) Error() string + type VoidParser func(*State)