Sha256: 265e412f48f4fdb0434d8f3b0d96b2973a2bd68b3d0a633c33e729e6524c5a95
Contents?: true
Size: 720 Bytes
Versions: 6
Compression:
Stored size: 720 Bytes
Contents
require 'rley' module Zenlish module Lex # An occurrence of a grammar terminal symbol that occurs in the input text. class Literal < Rley::Lexical::Token attr_reader :zlexeme # initialize(theLexeme, aTerminal, aPosition) ⇒ Token # @param literalText [String] the portion of input text that represents # an occurence of the lexeme. # @param aLexeme [Lex::Lexeme] the lexeme matched by the literal text. # @param aPosition [Integer] the position of the literal in the input. def initialize(literalText, aLexeme, aPosition) super(literalText, aLexeme.wclass.name, aPosition) @zlexeme = aLexeme end end # class end # module end # module
Version data entries
6 entries across 6 versions & 1 rubygems