Class: Zenlish::Lex::Literal
- Inherits:
-
Rley::Lexical::Token
- Object
- Rley::Lexical::Token
- Zenlish::Lex::Literal
- Defined in:
- lib/zenlish/lex/literal.rb
Overview
An occurrence of a grammar terminal symbol that occurs in the input text.
Instance Attribute Summary collapse
-
#zlexeme ⇒ Object
readonly
Returns the value of attribute zlexeme.
Instance Method Summary collapse
-
#initialize(literalText, aLexeme, aPosition) ⇒ Literal
constructor
initialize(theLexeme, aTerminal, aPosition) ⇒ Token.
Constructor Details
#initialize(literalText, aLexeme, aPosition) ⇒ Literal
initialize(theLexeme, aTerminal, aPosition) ⇒ Token
14 15 16 17 |
# File 'lib/zenlish/lex/literal.rb', line 14 def initialize(literalText, aLexeme, aPosition) super(literalText, aLexeme.wclass.name, aPosition) @zlexeme = aLexeme end |
Instance Attribute Details
#zlexeme ⇒ Object (readonly)
Returns the value of attribute zlexeme.
7 8 9 |
# File 'lib/zenlish/lex/literal.rb', line 7 def zlexeme @zlexeme end |