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
\resetto reset the REPL. - Type
\helpto display help. - Type
\qor\quitto exit the REPL. - Type
\autoreset:true(or\autoreset) to reset the environment every command. - Type
\autoreset:falseto prevent from doing the thing above. (set by default) - Type
\displayto check the max stack display (default – 50) - Type
\display:Nto set the max stack display (0 - unbounded) - Type
\export:to export your history to a file./export.ppsc - Type
\export:FILEto export your history to a file (relative or absolute path) - Type
\historyto display what commands you've executed. - Type
\hclearto clear all history - Type
\hclear:Nto clear the N-th command of history (N >= 1) - Type
\importto import PS code from a file./export.ppscto REPL - Type
\import:FILEto import PS code from a file to REPL - Type
\themeto check available themes for REPL - Type
\!!to repeat last command - Type
\!Nto execute the N-th command of history (N >= 1)