Exception: ANTLR3::Error::BacktrackingFailed

Inherits:
StandardError
  • Object
show all
Defined in:
lib/antlr3/error.rb

Overview

error

BacktrackingFailed

used by

all recognizers

occurs when

recognizer is in backtracking mode (i.e. r.state.backtracking > 0) and the decision path the recognizer is currently attempting hit a point of failure

notes
  • functions more as an internal signal, simillar to exception classes such as StopIteration and SystemExit

  • used to inform the recognizer that it needs to rewind the input to the point at which it started the decision and then either try another possible decision path or declare failure

  • not a subclass of RecognitionError