On 02/02/2014, at 3:00 AM, john skaller wrote:

> 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.


I hate it. I think I will remove this and look for another solution.

With the library, this would require reading the whole
library code to find #Include's to calculate file time ..
*every* compile. Reading is faster than parsing but it is still
a serious pain.

Also the current ugly situation where include "file" requires
checking both file.flx and file.fdoc becomes much more complicated
if they can have #includes in them .. it isn't even clear how to make
the choice (eg if you touch a shared #include the max times of the
two files and their includes would be equal).




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




------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&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