Re: Extensions for EUPHORIA proposals
- Posted by ChrisB (moderator) Aug 19, 2008
- 1039 views
Or how about
Platform Extension Interpreter DOS .exd exd.exe Windows .exw exw.exe Windows Console .exwc exwc.exe Unix,Linux,BSD,OSX .exu exu Generic .ex any
Platform | Extension | Interpreter |
---|---|---|
Dos | .eup | exd.exe |
Windows | .eup | exw.exe |
Windows Console | .eup | exwc.exe |
*nix, BSD etc | .eup | exu |
Generic | .eup | any |
Euphoria include, or header file |
---|
.eh |
Then 1st few lines of your program (even make a standard include) (pseudocode)
ifdef not platform LINUX then puts(1,"This program is designed for the Linux platform") end ifdef
etc
Otherwise put a comment at the top of the main file
(This is just as constraining to the coder as saying you have to run with this program to whoever runs the program).
Or, program run with exd
ifdef not platform WINDOWS_CONSOLE create a batch file to run the program with exwc exit elsifdef WINDOWS_CONSOLE delete the batch file if created\\ end ifdef
The program would (hopefully) transparently restart with the correct interpreter.
Chris