Class: Lrama::Reference
- Inherits:
-
Struct
- Object
- Struct
- Lrama::Reference
- Defined in:
- lib/lrama/grammar.rb
Overview
type: :dollar or :at ex_tag: “$<tag>1” (Optional)
Instance Attribute Summary collapse
-
#ex_tag ⇒ Object
Returns the value of attribute ex_tag.
-
#first_column ⇒ Object
Returns the value of attribute first_column.
-
#last_column ⇒ Object
Returns the value of attribute last_column.
-
#number ⇒ Object
Returns the value of attribute number.
-
#position_in_rhs ⇒ Object
Returns the value of attribute position_in_rhs.
-
#referring_symbol ⇒ Object
Returns the value of attribute referring_symbol.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#ex_tag ⇒ Object
Returns the value of attribute ex_tag
250 251 252 |
# File 'lib/lrama/grammar.rb', line 250 def ex_tag @ex_tag end |
#first_column ⇒ Object
Returns the value of attribute first_column
250 251 252 |
# File 'lib/lrama/grammar.rb', line 250 def first_column @first_column end |
#last_column ⇒ Object
Returns the value of attribute last_column
250 251 252 |
# File 'lib/lrama/grammar.rb', line 250 def last_column @last_column end |
#number ⇒ Object
Returns the value of attribute number
250 251 252 |
# File 'lib/lrama/grammar.rb', line 250 def number @number end |
#position_in_rhs ⇒ Object
Returns the value of attribute position_in_rhs
250 251 252 |
# File 'lib/lrama/grammar.rb', line 250 def position_in_rhs @position_in_rhs end |
#referring_symbol ⇒ Object
Returns the value of attribute referring_symbol
250 251 252 |
# File 'lib/lrama/grammar.rb', line 250 def referring_symbol @referring_symbol end |
#type ⇒ Object
Returns the value of attribute type
250 251 252 |
# File 'lib/lrama/grammar.rb', line 250 def type @type end |
Instance Method Details
#tag ⇒ Object
251 252 253 254 255 256 257 |
# File 'lib/lrama/grammar.rb', line 251 def tag if ex_tag ex_tag else referring_symbol.tag end end |