Versions in this module Expand all Collapse all v0 v0.0.3 Mar 28, 2026 Changes in this version type Feature + const HyphenIdentToken v0.0.2 Mar 24, 2026 Changes in this version type Feature + const DoubleQuoteToken + const SingleQuoteToken type Scanner + func (s *Scanner) Err() error type TokenKind + const DoubleQuote + const SingleQuote v0.0.1 Nov 25, 2025 Changes in this version + func NewParseError(t *Token) error + func NewPosError(err error, pos Pos) error + type Error uint + const ErrBadParameter + const ErrDuplicateEntry + const ErrInternalAppError + const ErrNotFound + const ErrNotImplemented + const ErrNotModified + const ErrSuccess + const ErrUnexpectedResponse + func (e Error) Error() string + func (e Error) With(args ...any) error + func (e Error) Withf(format string, args ...any) error + type Feature uint + const BlockComment + const HashComment + const LineComment + const NewlineToken + const NumberFloatToken + const UnderscoreToken + type Pos struct + Col uint + Line uint + Path *string + func (p *Pos) String() string + type PosError struct + Err error + Pos Pos + func (e *PosError) Error() string + type Scanner struct + func NewScanner(r io.Reader, pos Pos, features ...Feature) *Scanner + func (s *Scanner) NewError(err error) error + func (s *Scanner) Next() *Token + func (s *Scanner) Peak() *Token + func (s *Scanner) Tokens() ([]*Token, error) + type Token struct + Kind TokenKind + Pos Pos + Val string + func NewToken(kind TokenKind, val string, pos Pos) *Token + func (t *Token) String() string + type TokenKind uint + const Ampersand + const Any + const At + const Backslash + const Backtick + const Caret + const CloseBrace + const CloseParen + const CloseSquare + const Colon + const Comma + const Comment + const Divide + const Dollar + const EOF + const Equal + const Expr + const False + const Greater + const Hash + const Ident + const Less + const Lowest + const Minus + const Multiply + const Newline + const Not + const Null + const NumberBinary + const NumberFloat + const NumberHex + const NumberInteger + const NumberOctal + const OpenBrace + const OpenParen + const OpenSquare + const Percent + const Pipe + const Plus + const Punkt + const Question + const SemiColon + const Space + const String + const Tilde + const True + const Underscore + func (k TokenKind) String() string