Kaya 0.5.2 reference for Parse::ParseState

List of functions and data types in Parse

Parse::ParseState

Constructors

Usage

This data type represents the current state of the parsing. line and pos represent the current position of the parser with respect to the original String (both starting at 1), and input contains the unparsed section of the String.

The constructors are public for ease of inspection and to allow users to write their own parser functions, but should never be altered directly outside a parse function.

When writing your own parser, use Strings::behead and Strings::ltruncate to efficiently remove parsed characters from the string.

Related

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya