niwenParser

Main entry-point for the Niwen Parser DSL. A parser might typically look like this

val parser = niwenParser {
MyNodeType {
expect(tokenType)
expect(otherTokenType) storeIn "hello"
}

MyOtherNodeType root {
expect(someToken)
expect(MyNodeType) storeIn "theNode"
}
}
parser.parse(tokens)