Class: Aurum::Grammar::SyntaxRules::Symbol
- Inherits:
-
Struct
- Object
- Struct
- Aurum::Grammar::SyntaxRules::Symbol
- Defined in:
- lib/aurum/grammar/syntax_rules.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#is_terminal ⇒ Object
Returns the value of attribute is_terminal.
-
#name ⇒ Object
Returns the value of attribute name.
-
#precedence ⇒ Object
Returns the value of attribute precedence.
Instance Method Summary collapse
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
58 59 60 |
# File 'lib/aurum/grammar/syntax_rules.rb', line 58 def action @action end |
#is_terminal ⇒ Object
Returns the value of attribute is_terminal
57 58 59 |
# File 'lib/aurum/grammar/syntax_rules.rb', line 57 def is_terminal @is_terminal end |
#name ⇒ Object
Returns the value of attribute name
57 58 59 |
# File 'lib/aurum/grammar/syntax_rules.rb', line 57 def name @name end |
#precedence ⇒ Object
Returns the value of attribute precedence.
58 59 60 |
# File 'lib/aurum/grammar/syntax_rules.rb', line 58 def precedence @precedence end |
Instance Method Details
#inspect ⇒ Object
59 60 61 |
# File 'lib/aurum/grammar/syntax_rules.rb', line 59 def inspect name.split('$literal_').last end |