Sha256: 00fec81f7b6780f4aeabf7f36d929217b5ef93dca0f9f0c95dee5cc1cc11f017
Contents?: true
Size: 618 Bytes
Versions: 1
Compression:
Stored size: 618 Bytes
Contents
# frozen_string_literal: true module Forthic module TokenType STRING = 1 COMMENT = 2 START_ARRAY = 3 END_ARRAY = 4 START_MODULE = 5 END_MODULE = 6 START_DEF = 7 END_DEF = 8 START_MEMO = 9 WORD = 10 EOS = 11 end end module Forthic class Token attr_reader :type, :value, :location # @param [TokenType] type # @param [String] value # @param [CodeLocation] location def initialize(type, value, location) @type = type @value = value @location = location end # @return [String] def string @value end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
forthic-0.1.0 | lib/forthic/token.rb |