Class: Rly::YaccSymbol

Inherits:
Object
  • Object
show all
Defined in:
lib/rly/parse/yacc_symbol.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#endlexposObject

Returns the value of attribute endlexpos.



3
4
5
# File 'lib/rly/parse/yacc_symbol.rb', line 3

def endlexpos
  @endlexpos
end

#endlinenoObject

Returns the value of attribute endlineno.



3
4
5
# File 'lib/rly/parse/yacc_symbol.rb', line 3

def endlineno
  @endlineno
end

#lexposObject

Returns the value of attribute lexpos.



3
4
5
# File 'lib/rly/parse/yacc_symbol.rb', line 3

def lexpos
  @lexpos
end

#linenoObject

Returns the value of attribute lineno.



3
4
5
# File 'lib/rly/parse/yacc_symbol.rb', line 3

def lineno
  @lineno
end

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/rly/parse/yacc_symbol.rb', line 3

def type
  @type
end

#valueObject

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

#inspectObject



9
10
11
# File 'lib/rly/parse/yacc_symbol.rb', line 9

def inspect
  "#<YaccSymbol #{@type} '#{to_s}'>"
end

#to_sObject



5
6
7
# File 'lib/rly/parse/yacc_symbol.rb', line 5

def to_s
  @value.to_s
end