class Zenlish::Lex::Literal
An occurrence of a grammar terminal symbol that occurs in the input text.
Attributes
zlexeme[R]
Public Class Methods
new(literalText, aLexeme, aPosition)
click to toggle source
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.
Calls superclass method
# File lib/zenlish/lex/literal.rb, line 16 def initialize(literalText, aLexeme, aPosition) super(literalText, aLexeme.wclass.name, aPosition) @zlexeme = aLexeme end