Module: Gisele::Language::Syntax::TaskDef

Includes:
Node
Defined in:
lib/gisele/language/syntax/task_def.rb

Instance Method Summary collapse

Methods included from Node

#to_ast, #value

Instance Method Details

#_to_astObject



7
8
9
10
11
12
13
# File 'lib/gisele/language/syntax/task_def.rb', line 7

def _to_ast
  name  = captures[:task_name].first.strip
  defs  = captures[:some_def].map{|x| x.to_ast}
  ref   = captures[:explicit_statement].map{|x| x.to_ast}.first
  ref   = [:nop_st] unless ref
  [:task_def, name] + defs + [ref]
end