Sha256: 0eb7af6d2261bd65778b0e57f518e03b68ce4795fd9da5791e486dd80fc682b3

Contents?: true

Size: 354 Bytes

Versions: 19

Compression:

Stored size: 354 Bytes

Contents

module Finitio
  module Syntax
    module Definitions
      include Node

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

      def to_ast
        captures[:type_def].map(&:to_ast)
      end

    end # module Definitions
  end # module Syntax
end # module Finitio

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
finitio-0.12.0 lib/finitio/syntax/definitions.rb
finitio-0.11.4 lib/finitio/syntax/definitions.rb
finitio-0.11.3 lib/finitio/syntax/definitions.rb
finitio-0.11.2 lib/finitio/syntax/definitions.rb
finitio-0.11.1 lib/finitio/syntax/definitions.rb
finitio-0.10.0 lib/finitio/syntax/definitions.rb
finitio-0.9.1 lib/finitio/syntax/definitions.rb
finitio-0.9.0 lib/finitio/syntax/definitions.rb
finitio-0.8.0 lib/finitio/syntax/definitions.rb
finitio-0.7.0 lib/finitio/syntax/definitions.rb
finitio-0.7.0.pre.rc4 lib/finitio/syntax/definitions.rb
finitio-0.7.0.pre.rc3 lib/finitio/syntax/definitions.rb
finitio-0.7.0.pre.rc2 lib/finitio/syntax/definitions.rb
finitio-0.7.0.pre.rc1 lib/finitio/syntax/definitions.rb
finitio-0.6.1 lib/finitio/syntax/type/definitions.rb
finitio-0.6.0 lib/finitio/syntax/type/definitions.rb
finitio-0.5.2 lib/finitio/syntax/type/definitions.rb
finitio-0.5.1 lib/finitio/syntax/type/definitions.rb
finitio-0.5.0 lib/finitio/syntax/type/definitions.rb