[Omake] scanning of .mly files
Christian Stork
omake-list at cstork.org
Mon Jun 12 12:23:49 PDT 2006
On Mon, Jun 12, 2006 at 02:39:06PM -0400, Benjamin Pierce wrote:
...
> But I worry that both of these approaches may lead to difficulties,
> since it is not very clear exactly what "before scanning" means.
> E.g., in the case of Harmony, the file parser.mly is itself generated
> from yet another file, parser.srcy, using a little OCaml program that
> must, in turn, get built before it can be used...
<brainstorm>
Intuitiely, it would seem that the only reasonable solution to this
problem is some kind of build stage concept (a generaliztion of
OCamlGeneratedFiles), which needs to integrate with omake's scanners.
Standard build stages would for example be (simplified)
- .mly -> .ml .PREBUILD
- .ml -> .cmo \ regular
- .cmo -> $EXE / build
You would like to add
- .srcy -> .mly ".PREPREBUILD"
And if (as in your case) there are .ml files compiled even before this
stage then file extensions wouldn't suffice to classify which files are
involved at which build stage so that would need a way to be specified
too.
Hmm, OTOH, one uses a tool like omake to figure out the build order for
us. But then again, it's not the *build* order but he *scanning* order
which causes the problems... So maybe the above concept should be
called "scanning stages"?
</brainstorm>
--
Chris Stork <> Support eff.org! <> http://www.ics.uci.edu/~cstork/
OpenPGP fingerprint: B08B 602C C806 C492 D069 021E 41F3 8C8D 50F9 CA2F
More information about the Omake
mailing list