Sha256: a6ebdadb445fb3b8ef50d694f4ad5479d8b3e1aa96a3f8520b680b1938a3b90b

Contents?: true

Size: 220 Bytes

Versions: 2

Compression:

Stored size: 220 Bytes

Contents

module Rly
  class YaccSymbol
    attr_accessor :type, :value, :lineno, :endlineno, :lexpos, :endlexpos

    def to_s
      @value.to_s
    end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rly-0.2.3 lib/rly/parse/yacc_symbol.rb
rly-0.2.2 lib/rly/parse/yacc_symbol.rb