lib/rly/parse/yacc_symbol.rb in rly-0.2.0 vs lib/rly/parse/yacc_symbol.rb in rly-0.2.1

- old
+ new

@@ -1,6 +1,13 @@ module Rly class YaccSymbol attr_accessor :type, :value, :lineno, :endlineno, :lexpos, :endlexpos + def to_s + @value.to_s + end + + def inspect + "#<YaccSymbol #{@type} '#{@value}'>" + end end end