I am adding a #include to Felix. This is a C like text inclusion.
Previously with Dypgen this wan't possible, however I'm now able
to do this.

I do not like #include, however there is a problem in Felix.
If you want to write some syntax extension, at present you have
to include it in the global grammar OR paste it in every file you want
to use it in. You cannot use the include directive to load syntax,
because inclusions are processed *after* parsing.

The first commit will support this *without* dependency checking.
So if you change a #include file you'll have to --force a recompie
until I fix this.

#include may also be useful factoring, since it respects sequence,
whereas the include directive does not. So for example you can
#include in the middle of a class to get some contents in.
Same as C.

#includes will be searched as follows: first as a sibling
of the #Including file, then in the usual list of search directories.
Absolute filenames should not be used. Unix filename MUST be used
(even on Windows).

--
john skaller
skal...@users.sourceforge.net
http://felix-lang.org




------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to