Package easyIO

Interface Recognizer

  • All Known Implementing Classes:
    PredictiveRecognizer

    public interface Recognizer
    A Recognizer recognizes certain input sequences of characters available on a BacktrackScanner, and invokes a continuation for each recognized sequence.
    • Method Detail

      • recognize

        void recognize​(BacktrackScanner inp,
                       Recognizer.Continuation cont)
                throws Recognizer.Success
        For each possible way of recognizing the input, advance 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.
        Throws:
        Recognizer.Success