Documentation
¶
Overview ¶
Command rbgo is the CLI front-end for the embedded-ruby interpreter.
A closed-world binary (produced by `rbgo build --closed`) instead uses the generated main in closed_main.go, which runs a single embedded program with no front-end linked — so this CLI is excluded from that build.
rbgo [options] [--] <file.rb> [arguments...] interpret, ARGV = the arguments
rbgo [options] -e "<code>" [arguments...] run a one-liner
rbgo run ... the same, spelled explicitly
rbgo build [-o out] <file.rb> AOT-compile the program's
lowerable methods to native Go
and link a specialised binary
(see internal/aot and
docs/aot-compiler.md)
The options and the script/ARGV boundary follow ruby.c; options.go holds the rule and the citations.
`repl` arrives in a later phase (plan-rbgo.md §17).
Click to show internal directories.
Click to hide internal directories.