Module: ANTLR3::Error

Defined Under Namespace

Classes: BacktrackingFailed, EarlyExit, FailedPredicate, MismatchedNotSet, MismatchedRange, MismatchedSet, MismatchedToken, MismatchedTreeNode, MissingToken, NoViableAlternative, RecognitionError, RewriteCardinalityError, RewriteEarlyExit, RewriteEmptyStream, TreeInconsistency, UnwantedToken

Instance Method Summary collapse

Instance Method Details

#EarlyExit(decision, input = @input) ⇒ Object



628
629
630
# File 'lib/antlr3/error.rb', line 628

def EarlyExit( decision, input = @input )
  EarlyExit.new( decision, input )
end

#FailedPredicate(rule, predicate, input = @input) ⇒ Object



632
633
634
# File 'lib/antlr3/error.rb', line 632

def FailedPredicate( rule, predicate, input = @input )
  FailedPredicate.new( input, rule, predicate )
end

#MismatchedNotSet(expecting, input = @input) ⇒ Object



620
621
622
# File 'lib/antlr3/error.rb', line 620

def MismatchedNotSet( expecting, input = @input )
  MismatchedNotSet.new( expecting, input )
end

#MismatchedRange(min, max, input = @input) ⇒ Object



612
613
614
# File 'lib/antlr3/error.rb', line 612

def MismatchedRange( min, max, input = @input )
  MismatchedRange.new( min, max, input )
end

#MismatchedSet(expecting, input = @input) ⇒ Object



616
617
618
# File 'lib/antlr3/error.rb', line 616

def MismatchedSet( expecting, input = @input )
  MismatchedSet.new( expecting, input )
end

#MismatchedToken(expecting, input = @input) ⇒ Object



600
601
602
# File 'lib/antlr3/error.rb', line 600

def MismatchedToken( expecting, input = @input )
  MismatchedToken.new( expecting, input )
end

#MismatchedTreeNode(expecting, input = @input) ⇒ Object



636
637
638
# File 'lib/antlr3/error.rb', line 636

def MismatchedTreeNode( expecting, input = @input )
  MismatchedTreeNode.new( expecting, input )
end

#MissingToken(expecting, inserted, input = @input) ⇒ Object



608
609
610
# File 'lib/antlr3/error.rb', line 608

def MissingToken( expecting, inserted, input = @input )
  MissingToken.new( expecting, input, inserted )
end

#NoViableAlternative(description, decision, state, input = @input) ⇒ Object



624
625
626
# File 'lib/antlr3/error.rb', line 624

def NoViableAlternative( description, decision, state, input = @input )
  NoViableAlternative.new( description, decision, state, input )
end

#RewriteCardinalityError(element_description) ⇒ Object



640
641
642
# File 'lib/antlr3/error.rb', line 640

def RewriteCardinalityError( element_description )
  RewriteCardinalityError.new( element_description )
end

#RewriteEarlyExit(element_description = nil) ⇒ Object



644
645
646
# File 'lib/antlr3/error.rb', line 644

def RewriteEarlyExit( element_description = nil )
  RewriteEarlyExit.new( element_description )
end

#RewriteEmptyStream(element_description) ⇒ Object



648
649
650
# File 'lib/antlr3/error.rb', line 648

def RewriteEmptyStream( element_description )
  RewriteEmptyStream.new( element_description )
end

#UnwantedToken(expecting, input = @input) ⇒ Object



604
605
606
# File 'lib/antlr3/error.rb', line 604

def UnwantedToken( expecting, input = @input )
  UnwantedToken.new( expecting, input )
end