Pudu programming language
Menu
API reference

Std.Text.Parse.Input

1 declaration

type

Input

This declaration introduces a public type.

What it does

What a parser has not read yet, and how far it has come.

The text that remains is carried rather than an index into the whole input.

Character access walks from the start of a text, so an index into the whole

input costs what has already been passed, and a scan of a file costs the

square of its length. Reading the front of what remains costs nothing, and

advancing costs only what it moves over, so a scan is linear.

position is how many characters have been consumed. It is what a problem

points at, and what tells orElse whether a branch committed.

Read the signature

  • This declaration has no value signature because it introduces a type or trait.

Back to Std.Text.ParseSearch related declarations