package
0.0.0-20210228224550-dbeee19e8fb6
Repository: https://github.com/rumlang/rum.git
Documentation: pkg.go.dev

# Functions

NewAny create new instance of Any.
NewSource creates a new source object from the provided utf8 string.
Parse will take the provided source, parse it, and ensure that only one root node is returned.
TopDownParse run the topdown parser on the tokens provided by the lexer.

# Constants

ErrInvalidLedToken an unknown/invalid token was found in an expression.
ErrInvalidNudToken an unknown/invalid token was found at the beginning of an expression.
ErrMissingClosingParenthesis a closing parenthesis was expected, found something else instead.

# Structs

Any implements Value interface, provided an encapsulation for any valid Go type.
Error provides more details about a given parser error with references to the source.
MultiError holds details about parsing errors obtained when calling Parse.
Source holds a rune representation of source code.
SourceRef contains information to trace code back to its implementation.
TopDown implements a generic TopDown parser.

# Interfaces

Context is provided to the token function when the topdown parser is proceeding through the data.
Lexer is the interface that the parser expects to get input tokens.
Token must be implemented by the data returned by the lexer provided to the parser.
Value encapsulate all data that the language manipulate.

# Type aliases

ErrorCode type to parser errors.
Identifier represents a parsed identifier - as opposed to a regular string constant.