Class: Vertigo::ProcedureDecl

Inherits:
AstNode
  • Object
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 = [], decls = [], body = nil) ⇒ ProcedureDecl

Returns a new instance of ProcedureDecl.



99
100
101
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 99

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

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



98
99
100
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 98

def body
  @body
end

#declsObject

Returns the value of attribute decls.



98
99
100
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 98

def decls
  @decls
end

#formal_argsObject

Returns the value of attribute formal_args.



98
99
100
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 98

def formal_args
  @formal_args
end

#nameObject

Returns the value of attribute name.



98
99
100
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 98

def name
  @name
end