Documentation ¶
Overview ¶
Package aterm implements the subset of the ASCII ATerm format used by Nix. Specifically, this package parses strings, lists, and tuples.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendString ¶
AppendString appends the string to dst as an ATerm text format double-quoted string.
Types ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner reads ATerm text format tokens from a stream.
func NewScanner ¶
func NewScanner(r io.ByteReader) *Scanner
NewScanner returns a new scanner that reads from r.
func (*Scanner) ReadToken ¶
ReadToken reads the next token from the underlying reader. ReadToken returns io.EOF if and only if the scanner has read a single complete value.
func (*Scanner) UnreadToken ¶
UnreadToken causes the next call to Scanner.ReadToken to return the last token read. If the last operation was not a successful call to ReadToken, UnreadToken will return an error.