package
3.3.0+incompatible
Repository: https://github.com/google/agi.git
Documentation: pkg.go.dev

# Packages

# Functions

NewReader creates a new reader which reads from the supplied string.
NewSkip builds a Skip function for the common case of a parser that has one type of line comment, one type of block comment, and want to treat all unicode space characters as skippable.
Parse is the main entry point to the parse library.

# Constants

AbortParse is paniced when a parse cannot continue.
A decimal number.
A floating point number: "123.456".
A hexadecimal number, starting with "0x".
No number was found.
An octal number, starting with "0".
A floating point number in scientific notation: "123.456e±789".
SkipPrefix is the skip mode that skips tokens that are associated with the following lexically relevant token.
SkipSuffix is the skip mode that skips tokens that are associated with the preceding lexically relevant token.

# Variables

ParseErrorLimit is the maximum number of errors before a parse is aborted.

# Structs

Error represents the information that us useful in debugging a parse failure.
Parser contains all the context needed while parsing.
Reader is the interface to an object that converts a rune array into tokens.

# Type aliases

BranchParser is a function that is passed to ParseBranch.
ErrorList is a convenience type for managing lists of errors.
LeafParser is a function that is passed to ParseLeaf.
NumberKind is a type used by Reader.Numeric for identifying various kinds of numbers.
RootParser is a function that is passed to Parse.
Skip is the function used to skip separating tokens.