balqui / prefscript

PReFScript: A Partial Recursive Functions Lab
MIT License
0 stars 0 forks source link

Double-use installation #22

Open balqui opened 3 months ago

balqui commented 3 months ago

Usage such as up to now should be kept possible, importing PReFScript inside a Python program etc. However, I believe I can learn about declaring run() as an "entry point" so that installation with pipx is possible and provides just the interpreter, run as a standalone program on a file from the command line, and even as sort of a GUI and double-clicking on Windows.

balqui commented 3 months ago

Managed to do that since 1.0 - however, load() should not complain of missing main pragma when employed on objects declared after importing PReFScript, only when employed from the command-line interface.