Sha256: faa67b3cfb98e81065dd4e6639cfd52f06cbcf3aa5469e8dcac0113f2c200b2b
Contents?: true
Size: 906 Bytes
Versions: 18
Compression:
Stored size: 906 Bytes
Contents
# @Opulent module Opulent # @Compiler class Compiler # Generate the code for a while control structure # # @param node [Array] Node code generation data # @param indent [Fixnum] Size of the indentation to be added # @param context [Context] Processing environment data # def yield_node(node, indent, context) if @block_stack[-1].has_key? node[@value] @block_stack[-1][node[@value]].each do |child| root child, indent, context.parent end end end # Generate the code for a while control structure # # @param node [Array] Node code generation data # @param indent [Fixnum] Size of the indentation to be added # @param context [Context] Processing environment data # def block_node(node, indent, context) node[@children].each do |child| root child, indent, context end end end end
Version data entries
18 entries across 18 versions & 1 rubygems