bisonc++ 6.05 feature suggestion: an include path
Hello Frank Brokken
A missing feature in bisonc++ (6.05, on Linux/Debian; I never used Windows and coded since 1975. My PhD in computer science was defended at LIP6 university in 1990 with Jacques Pitrat being my president of jury and jhe was an exceptional teacher (I strongly recommend reading Jacques Pitrat's books), my current open source project is the RefPerSys open source inference engine on https://github.com/RefPerSys/RefPerSys/ ...) could be to handle the
4.5.8: %include: splitting the input file
directive in a way similar to the way GNU cpp or /GPP/ (on https://github.com/logological/gpp/ ...) is handling it.
So I suggest to add a new program argument--include-path=/some-include-path/
and I am supposing in the example that we pass --include-path=/home/franck/mybisonc++:incl as a program argument.
Then, an %include foo.by would be processed by bisonc++ likewise:
if /home/franck/mybisonc++/foo.by exists then that file is included; otherwise if incl/foo.by exists, then that file is included, otherswise bisonc++ fails with some error message and exit EXIT_FAILURE
I probably could implement that feature, if you help me in finding the relevant source files inside bisonc++ 6.05 source code.
Regards from near Paris in France
-- Basile Starynkevitchbasile@starynkevitch.net (only mine opinions / les opinions sont miennes uniquement) 92340 Bourg-la-Reine, France web page: starynkevitch.net/Basile/