Package-level declarations
Types
Link copied to clipboard
class BranchSeeker
A utility for reporting the execution tree of a parsing run, and outputting it in a human-readable format.
Link copied to clipboard
class DescribedType<T>(val type: ParserNodeDeclaration<T>, val expectations: List<Expectation<T, *>>)
A node type declaration (providing a way to make the actual type) with its descriptor (which declares what the type expects).
Link copied to clipboard
Class for representing the results of an expectation
Link copied to clipboard
Class for a full parser that is ready to parse a chain of tokens.
Link copied to clipboard
Exception type for anything thrown by Niwen Parser.
Link copied to clipboard
A node declaration. This simple interface provides a way to turn the description of a node into an actual node.
Link copied to clipboard
class ParsingContext(val tokens: List<Token>, typeMap: Map<ParserNodeDeclaration<*>, DescribedType<*>>, val branchSeeker: BranchSeeker? = null)
This object contains the information that is passed to expectations, and is global over a single parser run.
Link copied to clipboard
An implementation of ParserNodeDeclaration that uses reflection to initialize instances.
Link copied to clipboard
The description for the creation of a type