mame/quine-relay · error · RuntimeError

EOF

Error message

EOF

What it means

Error "EOF" thrown in mame/quine-relay.

Source

Thrown at vendor/unlambda.rb:25

    when ?r then tokens << [:o, ?\n]
    when ?` then tokens << :a
    else tokens << $~[:insn].to_sym
    end
  end
end
tokens.reverse!

stack = [nil, :S]
acc = nil
while stack
  stack, cmd = stack
  acc = if cmd == :S
    stack = [stack, acc] if acc
    insn, arg = tokens.pop
    case insn
    when :o then [:o, arg]
    when :a then stack = [[stack, :S], :S]; nil
    when nil then raise "EOF"
    else [insn]
    end
  else
    [:a, cmd, acc]
  end
end

stack = [nil, :E, acc]
acc = nil
while stack
  stack, cmd, cls = stack
  acc = if cmd == :E
    if acc && acc[0] == :d
      [:d1, cls]
    else
      stack = [stack, :A, acc] if acc
      cls[0] == :a ? (stack = [[stack, :E, cls[2]], :E, cls[1]]; nil) : cls
    end

View on GitHub (pinned to c2aa5098d3)

When it happens

Trigger: Thrown at vendor/unlambda.rb:25 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/07187fa303c63947. Report an issue: GitHub.