StringParseable

data class StringParseable(string: String, index: Int) : Parseable

Wraps a string with a pointer to the head of the remaining unparsed input to prevent repeatedly creating substrings

Constructors

Link copied to clipboard
fun StringParseable(string: String, index: Int = 0)

Functions

Link copied to clipboard
open override fun advance(steps: Int): Parseable

Consumes input by a number of characters

Link copied to clipboard
open override fun head(): Char
Link copied to clipboard
open fun isEmpty(): Boolean
Link copied to clipboard
open override fun remaining(): Int
Link copied to clipboard
open override fun unparsed(): String