home *** CD-ROM | disk | FTP | other *** search
- ECHO OFF
- REM This batch file lets you automate the SPL translator.
- REM Format of command:
- REM SPL fname /LS/S
- REM The above example will translate fname.SP to basic listing
- REM the source program to the screen and generating a symbol table.
- REM /LD lists to disk, /LP lists to printer. /S generates symbol table
- REM to disk. To get a symbol table you must list source to a device.
- REM After the program is translated, the resulting BASIC program is
- REM sorted by your SORT utility which you supply and then compiled
- REM using your BASIC compiler. I assume BASCOM but you can change
- REM this batch file to use your own. This batch file uses ECHO
- REM which stacks and simulates keyboard entries which accomplishes
- REM parameter passing to SPL, which does not accept parameters but
- REM gets info from the keyboard after it starts running.
- REM You may need to do some editing of this batch file
- REM but this batch file will help you automate processing of SPL programs.
- REM If you have any questions call Dennis Baer at 516 694 5872.
- REM To speed up this batch file remove these REM lines from a copy of this
- REM file.
- IF %1.SP==.SP GOTO EXIT1
- IF NOT EXIST %1.SP GOTO EXIT2
- ECHO %1 >PARMS
- ECHO >>PARMS
- IF %2z==/LS/Sz GOTO EXIT3
- IF %2z==/LP/Sz GOTO EXIT4
- IF %2z==/LD/Sz GOTO EXIT5
- IF %2z==/LSz GOTO EXIT6
- IF %2z==/LPz GOTO EXIT7
- IF %2z==/LDz GOTO EXIT8
- ECHO N >>PARMS
- ECHO N >>PARMS
- GOTO EXITS
- :EXIT3
- ECHO Y >>PARMS
- ECHO Y >>PARMS
- ECHO S >>PARMS
- GOTO EXITS
- :EXIT4
- ECHO Y >>PARMS
- ECHO Y >>PARMS
- ECHO P >>PARMS
- GOTO EXITS
- :EXIT5
- ECHO Y >>PARMS
- ECHO Y >>PARMS
- ECHO D >>PARMS
- GOTO EXITS
- :EXIT6
- ECHO N >>PARMS
- ECHO Y >>PARMS
- ECHO S >>PARMS
- GOTO EXITS
- :EXIT7
- ECHO N >>PARMS
- ECHO Y >>PARMS
- ECHO P >>PARMSèGOTO EXITS
- :EXIT8
- ECHO N >>PARMS
- ECHO Y >>PARMS
- ECHO D >>PARMS
- :EXITS
- SP <PARMS
- SORT <%1.BAS >%1
- ERASE %1.BAS
- RENAME %1 %1.BAS
- BASCOM %1 /E/O ;
- LINK %1 ;
- ERASE %1.OBJ
- ERASE PARMS
- GOTO EXIT
- :EXIT1
- ECHO Error: No file name entered.
- GO TO EXIT
- :EXIT2
- ECHO Error: File name %1.SP does not exist.
- :EXIT