public interface Recognizer
Modifier and Type | Interface and Description |
---|---|
static interface |
Recognizer.Continuation
The remainder of a computation that can be performed after recognizing input.
|
static class |
Recognizer.Success
Represents successful matching of the input stream by a recognizer.
|
Modifier and Type | Method and Description |
---|---|
void |
recognize(BacktrackScanner inp,
Recognizer.Continuation cont)
For each possible way of recognizing the input, advance
inp
past the point where the input is recognized and invoke cont . |
void recognize(BacktrackScanner inp, Recognizer.Continuation cont) throws Recognizer.Success
inp
past the point where the input is recognized and invoke cont
.
If the continuation throws Success
, leave the input position
where it is and throw the same exception to the caller.Recognizer.Success