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 run <file.rb> compile in memory and interpret
rbgo run -e "<code>" run a one-liner
rbgo <file.rb> shorthand for `rbgo run`
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)
`repl` arrives in a later phase (plan-rbgo.md §17).
Click to show internal directories.
Click to hide internal directories.