Sha256: 4c9878df575755fbc210150b40fbb90d5f1f52b7adc73de8c5c88e9b2792a5bf

Contents?: true

Size: 355 Bytes

Versions: 14

Compression:

Stored size: 355 Bytes

Contents

module Finitio
  module Syntax
    module Imports
      include Node

      def compile(system)
        captures[:import].each do |node|
          node.compile(system)
        end
        system
      end

      def to_ast
        [:imports] + captures[:import].map(&:to_ast)
      end

    end # module Imports
  end # module Syntax
end # module Finitio

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
finitio-0.12.0 lib/finitio/syntax/imports.rb
finitio-0.11.4 lib/finitio/syntax/imports.rb
finitio-0.11.3 lib/finitio/syntax/imports.rb
finitio-0.11.2 lib/finitio/syntax/imports.rb
finitio-0.11.1 lib/finitio/syntax/imports.rb
finitio-0.10.0 lib/finitio/syntax/imports.rb
finitio-0.9.1 lib/finitio/syntax/imports.rb
finitio-0.9.0 lib/finitio/syntax/imports.rb
finitio-0.8.0 lib/finitio/syntax/imports.rb
finitio-0.7.0 lib/finitio/syntax/imports.rb
finitio-0.7.0.pre.rc4 lib/finitio/syntax/imports.rb
finitio-0.7.0.pre.rc3 lib/finitio/syntax/imports.rb
finitio-0.7.0.pre.rc2 lib/finitio/syntax/imports.rb
finitio-0.7.0.pre.rc1 lib/finitio/syntax/imports.rb