Class: Citrus::Script

Inherits:
Node
  • Object
show all
Defined in:
lib/citrus/nodes.rb

Instance Method Summary collapse

Instance Method Details

#compile(compiler) ⇒ Object



14
15
16
17
18
# File 'lib/citrus/nodes.rb', line 14

def compile(compiler)
  compiler.preamble
  expressions.each { |e| e.codegen(compiler.generator) }
  compiler.finish
end