Class: Rly::YaccSymbol
- Inherits:
-
Object
- Object
- Rly::YaccSymbol
- Defined in:
- lib/rly/parse/yacc_symbol.rb
Instance Attribute Summary collapse
-
#endlexpos ⇒ Object
Returns the value of attribute endlexpos.
-
#endlineno ⇒ Object
Returns the value of attribute endlineno.
-
#lexpos ⇒ Object
Returns the value of attribute lexpos.
-
#lineno ⇒ Object
Returns the value of attribute lineno.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#endlexpos ⇒ Object
Returns the value of attribute endlexpos.
3 4 5 |
# File 'lib/rly/parse/yacc_symbol.rb', line 3 def endlexpos @endlexpos end |
#endlineno ⇒ Object
Returns the value of attribute endlineno.
3 4 5 |
# File 'lib/rly/parse/yacc_symbol.rb', line 3 def endlineno @endlineno end |
#lexpos ⇒ Object
Returns the value of attribute lexpos.
3 4 5 |
# File 'lib/rly/parse/yacc_symbol.rb', line 3 def lexpos @lexpos end |
#lineno ⇒ Object
Returns the value of attribute lineno.
3 4 5 |
# File 'lib/rly/parse/yacc_symbol.rb', line 3 def lineno @lineno end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/rly/parse/yacc_symbol.rb', line 3 def type @type end |
#value ⇒ Object
Returns the value of attribute value.
3 4 5 |
# File 'lib/rly/parse/yacc_symbol.rb', line 3 def value @value end |
Instance Method Details
#inspect ⇒ Object
9 10 11 |
# File 'lib/rly/parse/yacc_symbol.rb', line 9 def inspect "#<YaccSymbol #{@type} '#{to_s}'>" end |
#to_s ⇒ Object
5 6 7 |
# File 'lib/rly/parse/yacc_symbol.rb', line 5 def to_s @value.to_s end |