Versions in this module Expand all Collapse all v0 v0.1.0 Aug 3, 2026 Changes in this version + const MaxDepth + const MaxLineWidth + var ErrNilComment = errors.New("cannot print a nil comment") + var ErrNilFile = errors.New("cannot print a nil file") + func Print(w io.Writer, f *File) error + func Tokenize(r io.Reader) iter.Seq2[Token, error] + type Bool struct + Pos Pos + Value bool + type Comment struct + Pos Pos + Text string + type File struct + Comments []*Comment + Nodes []Node + func Parse(r io.Reader) (*File, error) + type Float struct + Pos Pos + Value float64 + type Int struct + Pos Pos + Value int64 + type InvalidEscapeError struct + Pos Pos + R rune + func (e InvalidEscapeError) Error() string + type InvalidNumberError struct + Pos Pos + Value string + func (e InvalidNumberError) Error() string + type InvalidSymbolError struct + Pos Pos + Value string + func (e InvalidSymbolError) Error() string + type List struct + Comments []*Comment + Elements []Node + Pos Pos + Tail Node + type MaxDepthExceededError struct + Depth int + Pos Pos + func (e MaxDepthExceededError) Error() string + type Nil struct + Pos Pos + type Node interface + type NonFiniteFloatError struct + Value float64 + func (e NonFiniteFloatError) Error() string + type NumberRangeError struct + Pos Pos + Value string + func (e NumberRangeError) Error() string + type Pos struct + Column int + Line int + type Quote struct + Datum Node + Kind QuoteKind + Pos Pos + type QuoteKind int + const QuoteKindQuasiquote + const QuoteKindQuote + const QuoteKindUnquote + const QuoteKindUnquoteSplicing + func (k QuoteKind) String() string + type String struct + Pos Pos + Value string + type Symbol struct + Pos Pos + Value string + type TailWithoutElementsError struct + Pos Pos + func (e TailWithoutElementsError) Error() string + type Token struct + Pos Pos + Type TokenType + Value []byte + func (t Token) String() string + type TokenType int + const TokenBool + const TokenComment + const TokenDot + const TokenLParen + const TokenNumber + const TokenQuote + const TokenRParen + const TokenString + const TokenSymbol + func (tt TokenType) String() string + type UnexpectedCharacterError struct + Pos Pos + R rune + func (e UnexpectedCharacterError) Error() string + type UnexpectedEndOfTokensError struct + Expected []TokenType + Pos Pos + func (e UnexpectedEndOfTokensError) Error() string + type UnexpectedTokenError struct + Actual Token + Expected []TokenType + func (e UnexpectedTokenError) Error() string + type UnsupportedNodeError struct + Node Node + func (e UnsupportedNodeError) Error() string + type UnterminatedCommentError struct + Pos Pos + func (e UnterminatedCommentError) Error() string + type UnterminatedStringError struct + Pos Pos + func (e UnterminatedStringError) Error() string