Class: Vertigo::IntLit

Inherits:
AstNode show all
Defined in:
lib/vertigo/ast_vertigo_rkgen.rb

Instance Attribute Summary collapse

Attributes inherited from AstNode

#label, #pos

Instance Method Summary collapse

Methods inherited from AstNode

#accept, #str

Constructor Details

#initialize(tok = nil) ⇒ IntLit

Returns a new instance of IntLit.



540
541
542
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 540

def initialize tok=nil
  @tok=tok
end

Instance Attribute Details

#tokObject

Returns the value of attribute tok.



539
540
541
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 539

def tok
  @tok
end