Versions in this module Expand all Collapse all v1 v1.0.0 Sep 11, 2020 Changes in this version + const AbortParse + var ParseErrorLimit = 10 + type BranchParser func(*cst.Branch) + type Error struct + At cst.Fragment + Message string + Stack []byte + func Parse(filename, data string, skip Skip, parse RootParser) []Error + func (err Error) Error() string + func (err Error) Format(f fmt.State, c rune) + type ErrorList []Error + func (errs ErrorList) Error() string + func (l *ErrorList) Add(r *Reader, at cst.Fragment, message string, args ...interface{}) + type LeafParser func(*cst.Leaf) + type NumberKind uint8 + const Decimal + const Floating + const Hexadecimal + const NotNumeric + const Octal + const Scientific + type Parser struct + Errors ErrorList + func (p *Parser) Error(message string, args ...interface{}) + func (p *Parser) ErrorAt(loc cst.Fragment, message string, args ...interface{}) + func (p *Parser) Expected(value string) + func (p *Parser) Extend(n cst.Node, do BranchParser) + func (p *Parser) ParseBranch(b *cst.Branch, do BranchParser) + func (p *Parser) ParseLeaf(b *cst.Branch, do LeafParser) + type Reader struct + Source *cst.Source + func NewReader(filename string, data string) *Reader + func (r *Reader) Advance() + func (r *Reader) AdvanceN(n int) + func (r *Reader) AlphaNumeric() bool + func (r *Reader) Consume() cst.Token + func (r *Reader) EOL() bool + func (r *Reader) GuessNextToken() cst.Token + func (r *Reader) IsEOF() bool + func (r *Reader) IsEOL() bool + func (r *Reader) NotSpace() bool + func (r *Reader) Numeric() NumberKind + func (r *Reader) Peek() rune + func (r *Reader) PeekN(n int) rune + func (r *Reader) Rollback() + func (r *Reader) Rune(value rune) bool + func (r *Reader) SeekRune(value rune) bool + func (r *Reader) Space() bool + func (r *Reader) String(value string) bool + func (r *Reader) Token() cst.Token + type RootParser func(*Parser, *cst.Branch) + type Skip func(parser *Parser, mode SkipMode) cst.Separator + func NewSkip(line, blockstart, blockend string) Skip + type SkipMode int + const SkipPrefix + const SkipSuffix Incompatible versions in this module v2.0.0+incompatible Jul 8, 2021