class ANTLR3::Error::MismatchedTreeNode
- error
- used by
-
tree parsers
- occurs when
-
A tree parser expects to match a tree node containing a specific type of token, but the current tree node’s token type does not match. It’s essentially the same as
MismatchedToken
, but used specifically for tree nodes.
Attributes
expecting[RW]
input[RW]
Public Class Methods
new( expecting, input )
click to toggle source
Calls superclass method
ANTLR3::Error::RecognitionError::new
# File lib/antlr3/error.rb, line 500 def initialize( expecting, input ) @expecting = expecting super( input ) end
Public Instance Methods
message()
click to toggle source
# File lib/antlr3/error.rb, line 505 def message '%s: %p != %p' % [ self.class, unexpected_type, @expecting ] end