Sha256: 80934e42e529b1357df6f30d019be6020cb07933adcd7fdd7c55ab92d921871f

Contents?: true

Size: 252 Bytes

Versions: 1

Compression:

Stored size: 252 Bytes

Contents

# # frozen_string_literal: true

require_relative 'word'

module Forthic
  class EndModuleWord < Word
    def initialize
      super("}")
    end

    # @param [Interpreter] interp
    def execute(interp)
      interp.module_stack_pop
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
forthic-0.1.0 lib/forthic/words/end_module_word.rb