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.