The PyonScript programming language.
Shell
Latest commit 93b6c84 Jun 4, 2010 @KirarinSnow bash -> sh
Permalink
Failed to load latest commit information.
examples removed extraneous example Apr 10, 2010
src renamed input operators May 9, 2010
COPYING added GPLv3 license Apr 22, 2010
README refactored library into separate files Apr 24, 2010
build.sh bash -> sh Jun 4, 2010
install.sh bash -> sh Jun 4, 2010
pyon.bat basic I/O May 9, 2010

README

===PyonScript===


The PyonScript programming language is a Lisp-like language
with a minimal syntax and a stack. It is an extension of the
PostScript programming language and is implemented in PostScript.

The PyonScript interpreter requires GPL Ghostscript to run.
It has been tested on GPL Ghostscript 8.70 and 8.71 but may not
work on earlier versions.

GPL Ghostscript may be downloaded at http://www.ghostscript.com/



==Build==

On Unix-like systems, you may use the provided build script.
To build, run the build.sh script:

   $ sh build.sh

This assembles a "pyon.ps" file containing the source code for
the PyonScript interpreter as well as a shell script named
"pyon".

To run the PyonScript interpreter on one or more PyonScript
source files in sequence, specify the filenames of the programs
as arguments:

   $ pyon file1.pyon [file2.pyon ...]

To run PyonScript in interactive mode, simply run "pyon" without
arguments:

   $ pyon



==Install==

On Unix-like systems, you may install PyonScript by running the
install.sh script:

   $ sudo sh install.sh

This installs "pyon" and "pyon.ps" in the /usr/bin/ directory.



==Other Systems==

It is possible to run PyonScript directly through Ghostscript
without building and installing. This option may be best for
non-Unix-like systems.

To do so, concatenate all .ps files in the src/ directory into
a single "pyon.ps" file, with "interpreter.ps" being the last.
Then run Ghostscript on the command line with the following
arguments for interactive mode:

   $ gs -q -dNODISPLAY -- pyon.ps

If additional filenames are given on the command line, they
will be sequentially interpreted as PyonScript source files.

For Windows systems, there is a provided "pyon.bat" file.
This runs PyonScript directly from the source files.
It assumes that the Ghostscript executable is located at

   C:\Program Files\gs\gs8.71\bin\gswin32.exe

If this is not the case, please replace this with the correct
path. The filenames of PyonScript source files may be provided
as additional arguments to "pyon.bat"; they will be executed
in sequence. When called with no arguments, this loads the
interactive shell.