Class: Vertigo::FuncDecl

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(name = nil, formal_args = [], return_type = nil, decls = nil, body = nil) ⇒ FuncDecl

Returns a new instance of FuncDecl.



575
576
577
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 575

def initialize name=nil,formal_args=[],return_type=nil,decls=nil,body=nil
  @name,@formal_args,@return_type,@decls,@body=name,formal_args,return_type,decls,body
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



574
575
576
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 574

def body
  @body
end

#declsObject

Returns the value of attribute decls.



574
575
576
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 574

def decls
  @decls
end

#formal_argsObject

Returns the value of attribute formal_args.



574
575
576
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 574

def formal_args
  @formal_args
end

#nameObject

Returns the value of attribute name.



574
575
576
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 574

def name
  @name
end

#return_typeObject

Returns the value of attribute return_type.



574
575
576
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 574

def return_type
  @return_type
end