Papaj REPL - MrKaszeba19/PapajLang GitHub Wiki
Papaj REPL is a read–eval–print loop environment of PapajScript, which is a built-in component of Papaj (previously RPN Calculator).
History
Since November 2018 (version v.0.4.1) Papaj (previously RPN Calculator) has its REPL. Since v.0.5.0 REPL is a separate subsystem within Papaj. Its goal is to be a console environment that allows writing PS commands on-the-spot and run the PS scripts.
Features
- Papaj REPL may be accessible via Desktop shortcut, if you create it via executing the script
installREPL.sh
(Unix/Linux) orinstallREPL.bat
(Windows) - It has hidden some easter-eggs – if you know Polish, then you might understand them.
Help
- End each line with
\
to make multiline commands. - Type
\reset
to reset the REPL. - Type
\help
to display help. - Type
\q
or\quit
to exit the REPL. - Type
\autoreset:true
(or\autoreset
) to reset the environment every command. - Type
\autoreset:false
to prevent from doing the thing above. (set by default) - Type
\display
to check the max stack display (default – 50) - Type
\display:N
to set the max stack display (0 - unbounded) - Type
\export:
to export your history to a file./export.ppsc
- Type
\export:FILE
to export your history to a file (relative or absolute path) - Type
\history
to display what commands you've executed. - Type
\hclear
to clear all history - Type
\hclear:N
to clear the N-th command of history (N >= 1) - Type
\import
to import PS code from a file./export.ppsc
to REPL - Type
\import:FILE
to import PS code from a file to REPL - Type
\theme
to check available themes for REPL - Type
\!!
to repeat last command - Type
\!N
to execute the N-th command of history (N >= 1)