Class: Vertigo::BoolLit

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) ⇒ BoolLit

Returns a new instance of BoolLit.



554
555
556
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 554

def initialize tok=nil
  @tok=tok
end

Instance Attribute Details

#tokObject

Returns the value of attribute tok.



553
554
555
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 553

def tok
  @tok
end