Help at the command line
rascal-0.41.2
Synopsis
Get help when using Rascal at the command line (CLI, REPL, Rascal Shell)
Description
While using the command line interface you can get help like so:
rascal>:help
Welcome to the Rascal command shell.
Shell commands (optionally terminated with `;`):
:help Prints this message
:quit or EOF Quits the shell
:set <option> <expression> Sets an option
e.g. profiling true/false
tracing true/false
errors true/false
debugging true/false
:edit <modulename> Opens an editor for that module
:test <optModuleName> Runs all unit tests currently loaded, or only of a specific module
:declarations Prints variables, functions, data and syntax definitions in scope
:undeclare <name> Remove variable, function, data or syntax from this scope
:unimport <name> Remove import from current scope
Example rascal statements and declarations:
1 + 1; Expressions simply print their output and (static) type
int a; Declarations allocate a name in the current scope
a = 1; Assignments store a value in a (optionally previously declared) variable
int a = 1; Declaration with initialization
import IO; Importing a module makes its public members available
println("Hello World") Function calling
Please read the manual for further information
ok
To quit the repl use :quit