Class: LexicalToken

Inherits:
Token
  • Object
show all
Defined in:
lib/token.rb

Instance Attribute Summary collapse

Attributes inherited from Token

#col, #line, #type

Instance Method Summary collapse

Constructor Details

#initialize(type, lex, lineNum, colNum) ⇒ LexicalToken

Returns a new instance of LexicalToken.



14
15
16
17
18
# File 'lib/token.rb', line 14

def initialize(type,lex,lineNum,colNum)
  super(type,lineNum,colNum)
  
  @lex = lex
end

Instance Attribute Details

#lexObject (readonly)

Returns the value of attribute lex.



12
13
14
# File 'lib/token.rb', line 12

def lex
  @lex
end