Class: Aurum::Grammar::SyntaxRules::Symbol

Inherits:
Struct
  • Object
show all
Defined in:
lib/aurum/grammar/syntax_rules.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actionObject

Returns the value of attribute action.



58
59
60
# File 'lib/aurum/grammar/syntax_rules.rb', line 58

def action
  @action
end

#is_terminalObject

Returns the value of attribute is_terminal

Returns:

  • (Object)

    the current value of is_terminal



57
58
59
# File 'lib/aurum/grammar/syntax_rules.rb', line 57

def is_terminal
  @is_terminal
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



57
58
59
# File 'lib/aurum/grammar/syntax_rules.rb', line 57

def name
  @name
end

#precedenceObject

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

#inspectObject



59
60
61
# File 'lib/aurum/grammar/syntax_rules.rb', line 59

def inspect
  name.split('$literal_').last
end