Exception: ANTLR3::Error::RewriteCardinalityError
- Inherits:
-
StandardError
- Object
- StandardError
- ANTLR3::Error::RewriteCardinalityError
- Defined in:
- lib/antlr3/error.rb
Overview
- error
-
RewriteCardinalityError
- used by
-
tree-rewriting parsers and tree parsers
- occurs when
-
There is an inconsistency between the number of appearances of some symbol on the left side of a rewrite rule and the number of the same symbol seen on the right side of a rewrite rule
Direct Known Subclasses
Instance Attribute Summary collapse
-
#element_description ⇒ Object
Returns the value of attribute element_description.
Instance Method Summary collapse
-
#initialize(element_description) ⇒ RewriteCardinalityError
constructor
A new instance of RewriteCardinalityError.
- #message ⇒ Object
Constructor Details
#initialize(element_description) ⇒ RewriteCardinalityError
Returns a new instance of RewriteCardinalityError.
524 525 526 527 |
# File 'lib/antlr3/error.rb', line 524 def initialize( element_description ) @element_description = element_description super( ) end |
Instance Attribute Details
#element_description ⇒ Object
Returns the value of attribute element_description.
523 524 525 |
# File 'lib/antlr3/error.rb', line 523 def element_description @element_description end |
Instance Method Details
#message ⇒ Object
529 530 531 |
# File 'lib/antlr3/error.rb', line 529 def "%s: %s" % [ self.class, @element_description ] end |