16-bit Windows, Python and Java Implementation with Several Examples for GPSS/H
-
Install DOSBOX, Download from Repository
-
MOUNT cloned repository directory to DOSBOX as follow
Z:\>MOUNT C C:\C:\Users\ugur.coruh\Desktop\gpssh-system-simulation- Write C and Change Directory use CD command to access GPSSH.EXE in gpssh_dos folder and also copy GPS example files to current location and run to generate LIS reports
C:\GPSS_DOS\GPSSH.EXE EXAMPLE.GPS- Open LIS file and interpret results
Reference : GitHub - martendo/gpss.py: A Python implementation of IBM's General Purpose Simulation System
From the Command Line
python3 -m gpss [-S] [-d] [-o outfile] infile
On Windows, use py -3 instead of python3.
infile
Your GPSS program. Required.-o outfile/--output outfile
File to write the simulation report to, instead of stdout. Optional.-S/--no-sim(switch)
Don't run the simulation, but still pass it through the parser and check for syntax errors.-d/--debug(switch)
Print debug messages.
Also:
--version
Print gpss.py's version number and exit.-h/--help
Print program usage and argument descriptions.
gpss.py can be imported into another script as the gpss module.
import gpss
gpss.run("examples/barber.gps")
print(gpss.createReport())Parse a gpss.py program from file infile or string program.
The parser used can be accessed through gpss.parser, and its error
count through gpss.parser.error_count.
Run a simulation. If specified, file infile or string program will
be parsed with gpss.parse() before running the
simulation. Otherwise, the program last parsed will be used.
A gpss.SimulationError will be raised if anything illegal occurs in
the simulation.
Return a master simulation report. Contained within are all the
simulation reports returned by gpss.getReports().
Return a list of reports from each run in the simulation.
