Sha256: cf56f669891036033c337e31accee8ee53b4b29dbf35cf0326be0055ad7e6dc6
Contents?: true
Size: 312 Bytes
Versions: 3
Compression:
Stored size: 312 Bytes
Contents
module PLang module Parser class Token attr_accessor :value attr_accessor :type attr_accessor :line attr_accessor :i attr_accessor :src def initialize(type) @type = type end def to_s "\#{#{type.to_s}: #{value}}" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
p-lang-0.3.1 | lib/parser/token.rb |
p-lang-0.3.0 | lib/parser/token.rb |
p-lang-0.2.0 | lib/parser/token.rb |