Run a REPL to execute ReScript code in interactive mode
npm install rescript-repl -g
- Start the REPL, run this command within the top level directory of a ReScript project:
$ resrepl
- .load - Load a Module into the current REPL context
- .reset - To clear ReScript code saved in the current REPL context
- .{: - Start Mutliline Mode
- .}: - End Mutliline Mode
- Enter any arbitrary string of characters which will be interpreted as ReScript code