Class: Vertigo::CharLit

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

Returns a new instance of CharLit.



547
548
549
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 547

def initialize tok=nil
  @tok=tok
end

Instance Attribute Details

#tokObject

Returns the value of attribute tok.



546
547
548
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 546

def tok
  @tok
end