Navigation
Synopsis Help facilities.
Description Various forms of help are available.

At the command console, type :help to get a list of help commands.

In the Eclipse environment, select the menu Rascal > Start Tutor to start the interactive Rascal Tutor.
Examples
rascal>:help
Welcome to the Rascal command shell.

Shell commands:
:help                      Prints this message
:quit or EOF               Quits the shell
:declarations              Lists all visible rules, functions and variables
:set <option> <expression> Sets an option
e.g. profiling    true/false
     tracing      true/false
:edit <modulename>         Opens an editor for that module
:modules                   Lists all imported modules
:test                      Runs all unit tests currently loaded
:unimport <modulename>     Undo an import
:undeclare <name>          Undeclares a variable or function introduced in the shell
:history                   Print the command history
:clear                     Clears the console

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
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.