This is part of a series of posts documenting Sprache. This post covers the
Positionedmethod, 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
IPositionAwareinterface. The below example implements a very simple expression parser which also returns permission information.