Class: Vertigo::Ident

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

Instance Attribute Summary collapse

Attributes inherited from AstNode

#label, #pos

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AstNode

#accept, #str

Constructor Details

#initialize(tok = nil) ⇒ Ident

Returns a new instance of Ident.



533
534
535
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 533

def initialize tok=nil
  @tok=tok
end

Instance Attribute Details

#tokObject

Returns the value of attribute tok.



532
533
534
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 532

def tok
  @tok
end

Class Method Details

.create(str) ⇒ Object



27
28
29
# File 'lib/vertigo/ast.rb', line 27

def self.create str
  Ident.new(Vertigo::Token.create(:ident,str))
end