Sha256: 9b877eab1a703119c70dcf5c5688fdd3dbe40973741aeb0733756282d0d3ce52

Contents?: true

Size: 392 Bytes

Versions: 1

Compression:

Stored size: 392 Bytes

Contents

module Qrb
  module Syntax
    module System

      def compile(system)
        definitions.compile(system)
        if type
          system.main = type.compile(system)
        end
        system
      end

      def to_ast
        ast = [ :system ] + definitions.to_ast
        ast << type.to_ast if type
        ast
      end

    end # module System
  end # module Syntax
end # module Qrb

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
qrb-0.3.0 lib/qrb/syntax/system.rb