Sha256: c8243a1d1ed1ed1c89b63d2fc0fbd6a30474aee059022a1469ea61f70fafca3c

Contents?: true

Size: 528 Bytes

Versions: 1

Compression:

Stored size: 528 Bytes

Contents

require 'gobstones/lang/definitions/definition'
require 'gobstones/lang/definitions/var_tuple'
require 'gobstones/lang/definitions/no_return_statement'
require 'gobstones/lang/definitions/return_from_main'

module Gobstones

  module Lang

    class Main < Definition

      def initialize(body, return_statement)
        super('Main', VarTuple.new([]), body, return_statement)
      end

      def evaluate(context)
        # evaluate body
        body.evaluate context
        # evaluate return
      end

    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gobstones-0.0.1.1 lib/gobstones/lang/definitions/main.rb