one Or More
Repeat parsing expression 1 or more times.
Samples
import io.kpeg.pe.Symbol.Rule
fun main() {
//sampleStart
// - FAIL
// a - OK
// aaa - OK
// aaaaaa - OK
char('a') // EvalPE<Char>
.oneOrMore() // EvalPE<List<Char>>
//sampleEnd
}
Sources
JVM source
Link copied to clipboard