Versions in this module Expand all Collapse all v0 v0.10.0 Jun 5, 2023 Changes in this version + var StateMap = map[ParsingState]Handler + func Parse(reader io.Reader) (*al.AcrossLite, error) + type Handler func(*al.AcrossLite, string) (ParsingState, error) + type ParsingState byte + const DONE + const INIT + const LOOKING_FOR_AUTHOR + const LOOKING_FOR_COPYRIGHT + const LOOKING_FOR_GRID + const LOOKING_FOR_SIZE + const LOOKING_FOR_TITLE + const READING_ACROSS + const READING_AUTHOR + const READING_COPYRIGHT + const READING_DOWN + const READING_GRID + const READING_NOTEPAD + const READING_SIZE + const READING_TITLE + const UNKNOWN + func HandleDone(pal *al.AcrossLite, line string) (ParsingState, error) + func HandleInit(pal *al.AcrossLite, line string) (ParsingState, error) + func HandleLookingForAuthor(pal *al.AcrossLite, line string) (ParsingState, error) + func HandleLookingForCopyright(pal *al.AcrossLite, line string) (ParsingState, error) + func HandleLookingForGrid(pal *al.AcrossLite, line string) (ParsingState, error) + func HandleLookingForSize(pal *al.AcrossLite, line string) (ParsingState, error) + func HandleLookingForTitle(pal *al.AcrossLite, line string) (ParsingState, error) + func HandleReadingAcross(pal *al.AcrossLite, line string) (ParsingState, error) + func HandleReadingAuthor(pal *al.AcrossLite, line string) (ParsingState, error) + func HandleReadingCopyright(pal *al.AcrossLite, line string) (ParsingState, error) + func HandleReadingDown(pal *al.AcrossLite, line string) (ParsingState, error) + func HandleReadingGrid(pal *al.AcrossLite, line string) (ParsingState, error) + func HandleReadingNotepad(pal *al.AcrossLite, line string) (ParsingState, error) + func HandleReadingSize(pal *al.AcrossLite, line string) (ParsingState, error) + func HandleReadingTitle(pal *al.AcrossLite, line string) (ParsingState, error)