NiwenParser

constructor(types: List<DescribedType<*>>, rootType: ParserNodeDeclaration<T>)

Parameters

T

The type of the root node, the node at the root of the resulting model.

types

List of described types that will be used for the parsing process. Each entry describes a type of node that can be encountered in the AST.

rootType

The expected type of the root node.