class Ven::CLI
- Ven::CLI
- Reference
- Object
Included Modules
Defined in:
ven.crConstant Summary
-
BOOT =
Path[{{ (env("BOOT")) || (raise("unable to get 'BOOT'")) }}]
-
BOOT
is a compile-time environment variable containing the path to a boot module (the first to load & one which defines the internals.) Indeed, it is a directory that functions in the same way as origin modules do.
Constructors
Instance Method Summary
-
#error(kind : String, message : String, quit = false)
Prints a message of some kind and, if given true quit, quits with exit status 1.
-
#error(message : String)
Prints a message and quits with exit status 0.
-
#error(this : VenError, quit = true)
Chooses the appropriate kind and message for this, a Ven error, and
#error
s. -
#eval(filename : String, source : String)
Evaluates source under the filename filename.
-
#format_traces(traces : Traces, root_spaces = 2, code_spaces = 4)
Returns a string of properly formatted traces.
-
#open(path : String)
Does the necessary negotiations with the world and runs the script/module path.
-
#repl
Starts a new read-eval-print loop.
- #run
Constructor Detail
Instance Method Detail
Prints a message of some kind and, if given true quit, quits with exit status 1.
Chooses the appropriate kind and message for this,
a Ven error, and #error
s. If quit is true, exits
with status 1 afterwards.
Returns a string of properly formatted traces. root_spaces is the number of spaces before each trace; code_spaces is the number of spaces before each source code excerpt.
Does the necessary negotiations with the world and runs the script/module path.