On 04/01/2014, at 9:46 PM, john skaller wrote:
> Design Spec: LP tool
Aha. But now I am getting more ambitious!
Interscript's core strength was that
(a) a plain line was just documentation
(b) an @line was executable Python
(c) @tangle (..) function changed modes to output to a file
So actually (a) would write the documentation to /dev/null,
and (b) would write it to a python interpreter.
The actual program was then utterly trivial: each line got written
to the current tangler, unless it started with @. That's IT!
That's all interscript did. Well .. except for library functions
that made sense to call with @commands.
Ok, so for Felix I started to write a program .. in fdoc format
so I was writing specification first. I decided
@var ident : type = "filename.flx";
looked more Felix like. Not hard to recognise with a regexp.
Then you would say
@tangle ident
...
@
and it would write to the file. Or maybe even
@ident
...
@
That's simpler though it isn't compatible with fdoc. But then I thought ...
tangle ident """
...
""";
well OK, that's a bit more verbose .. but its FELIX. tangle is just a library
functiion that writes to a file. Then we can have
var file = open_out "filename.flx";
write (file, """
data
""");
fclose file;
Although this is a bit ugly .. there's no program to write. You just execute it.
So there would be two steps, one would be a nicer literal format
for strings made up of lines (which I always wanted anyhow).
And another would be dealing with existing @ commands used in fdoc.
Off to do some painting .. (marine painting not pictures :)
--
john skaller
[email protected]
http://felix-lang.org
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Felix-language mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/felix-language