mame/quine-relay · error · Grass::RuntimeError

not a char

Error message

not a char

What it means

Error "not a char" thrown in mame/quine-relay.

Source

Thrown at vendor/grass.rb:52

# 2007-09-20
#   - First version.
#

require 'pp'

class Grass

  RELEASE_DATE = '2007-10-02'

  class Error < StandardError ; end
  class RuntimeError < Error ; end
  class IllegalState < Error ; end

  Machine = Struct.new(:code, :env, :dump)

  class Value
    def char_code
      raise RuntimeError, "not a char"
    end

    def app(m, arg)
      raise RuntimeError, "app undefined"
    end
  end

  class Insn
  end

  class App < Insn
    def initialize(m, n)
      @m, @n = m, n
    end

    def eval(m)
      f, v = m.env[-@m], m.env[-@n]
      raise "out of bound" unless f and v

View on GitHub (pinned to c2aa5098d3)

When it happens

Trigger: Thrown at vendor/grass.rb:52 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of mame/quine-relay@c2aa5098d3 (2026-08-21). Data as JSON: /api/errors/5aaf854ff7b35710. Report an issue: GitHub.