Boost logo

Boost-Build :

From: John Reid (j.reid_at_[hidden])
Date: 2007-02-16 04:47:11


I'd like to extend boost build to handle antlr grammars. Antlr converts
.g files to CPP, HPP and TXT files. Unfortunately unlike most tools the
filenames of these generated files don't depend on the filename of the
<source>.g file but rather on the contents of the .g file. Setting up a
regex that matches these is not too hard though.

I have 2 problems. The documentation on custom generators is pretty
unforgiving. I'm finding it hard just to write one that tell boost build
the names of the generated files (even if I set these up in free
properties instead of regex-ing them).

Also I think I need something more sophisticated than a scanner to regex
these files. If I have it right a scanner just executes INCLUDE rules on
the matched patterns? I need to extract the matches in the generator I

Any pointers to what I should be doing would be most appreciated.


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at