I would like to see a Meta command similar to #INCLUDE in which it can shell out to an executable that can return some code to the compiler.
Example...
#EXEINCLUDE "librarian.exe myapp.ini"
In this case the #EXEINCLUDE Meta statement would shell to an application called librarian.exe with the parameter mayapp.ini. The librarian.exe program would then return code text via the STDOUT. The compiler would then read via STDIN and compile the supplied text as if it was written in the original source file. This would allow programmers to create librarians and other add-on tools.
An alternative to allowing code in via the STDIN would be something like this...
#EXEINCLUDE "librarian.exe myapp.ini", "return.inc"
In this example the first quoted section acts like the first example except that the compiler would look to include the "return.inc" rather then look for something from STDIN.
In either example I would like to see the PB environment variables passed in some way to the EXE so it can act appropriately on them.
------------------
George W. Bleck
Senior System Engineer
KeySpan Corporation
[This message has been edited by George Bleck (edited August 19, 2001).]
Example...
#EXEINCLUDE "librarian.exe myapp.ini"
In this case the #EXEINCLUDE Meta statement would shell to an application called librarian.exe with the parameter mayapp.ini. The librarian.exe program would then return code text via the STDOUT. The compiler would then read via STDIN and compile the supplied text as if it was written in the original source file. This would allow programmers to create librarians and other add-on tools.
An alternative to allowing code in via the STDIN would be something like this...
#EXEINCLUDE "librarian.exe myapp.ini", "return.inc"
In this example the first quoted section acts like the first example except that the compiler would look to include the "return.inc" rather then look for something from STDIN.
In either example I would like to see the PB environment variables passed in some way to the EXE so it can act appropriately on them.
------------------
George W. Bleck
Senior System Engineer
KeySpan Corporation
[This message has been edited by George Bleck (edited August 19, 2001).]
Comment