Sha256: cd3b536464b629405a44d07088aed320286bf8146c49a7070fc45aae6b65f30f

Contents?: true

Size: 390 Bytes

Versions: 25

Compression:

Stored size: 390 Bytes

Contents

require 'rley'

module Zenlish
  module Lex
    # TODO: document
    class Literal < Rley::Lexical::Token
      attr_reader :zlexeme

      # initialize(theLexeme, aTerminal, aPosition) ⇒ Token
      def initialize(literalText, aLexeme, aPosition)
        super(literalText, aLexeme.wclass.name, aPosition)
        @zlexeme = aLexeme
      end
    end # class
  end # module
end # module

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
zenlish-0.1.04 lib/zenlish/lex/literal.rb
zenlish-0.1.03 lib/zenlish/lex/literal.rb
zenlish-0.1.02 lib/zenlish/lex/literal.rb
zenlish-0.1.01 lib/zenlish/lex/literal.rb
zenlish-0.1.0 lib/zenlish/lex/literal.rb