Sprache Part 9: Positioned

This is part of a series of posts documenting Sprache. This post covers the Positioned method, intended to allow parsers to return information about the position of parsed elements in the input. To use this, the types returned by the parser must implement the IPositionAware interface. The below example implements a very simple expression parser which also returns permission information.

Sprache Part 6: DelimitedBy

This is part of a series of posts documenting Sprache. The DelimitedBy methods are helpers for parsing delimited sequences of elements, (like arrays [1,2,3]) with a cleaner syntax.

Sprache Part 5: Select, Return, and Regex

This is part of a series of posts documenting Sprache. This post covers Select and Return, which are used for transforming the result of parsing, e.g. into an abstract syntax tree, as well as Regex and RegexMatch, which as you might expect allow you to augment Sprache parsers with regular expressions.