Class: Lrama::Grammar::Reference
- Inherits:
-
Struct
- Object
- Struct
- Lrama::Grammar::Reference
- Defined in:
- lib/lrama/grammar/reference.rb
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.
-
#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.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#ex_tag ⇒ Object
Returns the value of attribute ex_tag
6 7 8 |
# File 'lib/lrama/grammar/reference.rb', line 6 def ex_tag @ex_tag end |
#first_column ⇒ Object
Returns the value of attribute first_column
6 7 8 |
# File 'lib/lrama/grammar/reference.rb', line 6 def first_column @first_column end |
#last_column ⇒ Object
Returns the value of attribute last_column
6 7 8 |
# File 'lib/lrama/grammar/reference.rb', line 6 def last_column @last_column end |
#position_in_rhs ⇒ Object
Returns the value of attribute position_in_rhs
6 7 8 |
# File 'lib/lrama/grammar/reference.rb', line 6 def position_in_rhs @position_in_rhs end |
#referring_symbol ⇒ Object
Returns the value of attribute referring_symbol
6 7 8 |
# File 'lib/lrama/grammar/reference.rb', line 6 def referring_symbol @referring_symbol end |
#type ⇒ Object
Returns the value of attribute type
6 7 8 |
# File 'lib/lrama/grammar/reference.rb', line 6 def type @type end |
#value ⇒ Object
Returns the value of attribute value
6 7 8 |
# File 'lib/lrama/grammar/reference.rb', line 6 def value @value end |
Instance Method Details
#tag ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/lrama/grammar/reference.rb', line 7 def tag if ex_tag ex_tag else # FIXME: Remove this class check if referring_symbol.is_a?(Symbol) referring_symbol.tag else # Lrama::Lexer::Token (User_code) case nil end end end |