Sha256: 37f0ab37f8292e4d6c80dd657abc84d6cb5e613857c219771e4b2c49e40399bb
Contents?: true
Size: 573 Bytes
Versions: 1
Compression:
Stored size: 573 Bytes
Contents
# frozen_string_literal: true module Forthic class Word attr_accessor :name, :string, :location # @param [String] name def initialize(name) @name = name @string = name @location = nil end # @param [CodeLocation] location def set_location(location) @location = location end # @return [CodeLocation, nil] def get_location @location end # @param [Interpreter] _interp # @param [Hash] _options def execute(_interp, _options = {}) raise "Must override Word.execute" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
forthic-0.1.0 | lib/forthic/words/word.rb |