mame/quine-relay · error
usage: #$0 in.ook out.bf
Error message
usage: #$0 in.ook out.bf
What it means
Error "usage: #$0 in.ook out.bf" thrown in mame/quine-relay.
Source
Thrown at vendor/ook-to-bf.rb:15
RE = /\G(?:\s*Ook(?<c1>.)\s*Ook(?<c2>.)|(?<eof>)\s*\z|(?<error>))/
T = {
".?" => ">",
"?." => "<",
".." => "+",
"!!" => "-",
".!" => ",",
"!." => ".",
"!?" => "[",
"?!" => "]",
}
if $*.size != 2
$stderr.puts "usage: #$0 in.ook out.bf"
exit 1
end
c = ""
File.read($*[0]).scan(RE) do
if $~[:c1]
c << T[$~[:c1] + $~[:c2]]
elsif $~[:error]
raise "Ook? Ook? Ook?"
end
end
File.write($*[1], c)
View on GitHub (pinned to c2aa5098d3)
When it happens
Trigger: Thrown at vendor/ook-to-bf.rb:15 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/8d6e19f8396752c6.
Report an issue: GitHub.