-
Notifications
You must be signed in to change notification settings - Fork 1
Papaj REPL
Papaj REPL is a read–eval–print loop environment of PapajScript, which is a built-in component of Papaj (previously RPN Calculator).
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.
- 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.
- 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)
Versions of Papaj:
Pre-gen: Bereshit (v.0.0.1), Shemot (v.0.0.2)
Gen1 builds: Aleph (v.0.1.0), Bet (v.0.2.0), Gimel (v.0.2.1), Dalet (v.0.3.0)
Gen2 builds: Hey (v.0.3.1), Vav (v.0.4.0), Zain (v.0.4.1), Chet (v.0.4.2), Tet (v.0.4.3)
Gen3 builds and newer: Yod (v.0.5.0), Khaf (v.0.5.1), Lamed (v.0.5.2), Mem (v.0.5.3), Nun (v.0.5.4)
Development version: Leviathan
Packages of Papaj:
Vanilla, Array, Console, Date, Math, Number, String
Structures of Papaj:
Conditional, Entity, Loop, Variable
Array, Boolean, DateTime, Exception, LogicalExpression, Function, Number, Null, String
Home, PapajScript, Papaj (interpreter), Papaj REPL