InputFromString

class InputFromString(numTerminalRules: Int, sentence: String)

Types

Companion
Link copied to clipboard
common
object Companion
Match
Link copied to clipboard
common
data class Match(matchedText: String, eolPositions: List<Int>)

Functions

eolPositions
Link copied to clipboard
common
fun eolPositions(text: String): List<Int>
findOrTryCreateLeaf
Link copied to clipboard
common
fun findOrTryCreateLeaf(terminalRuntimeRule: RuntimeRule, inputPosition: Int): SPPTLeaf?
get
Link copied to clipboard
common
operator fun get(startPosition: Int, nextInputPosition: Int): String
locationFor
Link copied to clipboard
common
fun locationFor(startPosition: Int, length: Int): InputLocation
startPosition - 0 index position in input text nextInputPosition - 0 index position of next 'token', so we can calculate length
nextLocation
Link copied to clipboard
common
fun nextLocation(lastLocation: InputLocation, newLength: Int): InputLocation
reset
Link copied to clipboard
common
fun reset()

Properties

text
Link copied to clipboard
common
var text: String