[Dev] Build: generated code

Ted Leung twl at osafoundation.org
Mon May 17 17:33:54 PDT 2004


Hi,

I'm working on a parser for the query language, and I'm using Yapps, 
which is a free, pure Python parser generator.  I'm trying to figure 
out how to integrate this in the build.  Yapps takes a grammar file and 
produces a python source file that implements the parser.  So what I'd 
really like to have happen is for Yapps to get invoked only when the 
grammar file is newer than the parser.  This probably means checking 
Yapps into the build somewhere and hacking a makefile(?) in order to 
get it to run.  Also, there's a single library support file that needs 
to be included.

To be more concrete, the file

chandler/repository/query/parser/query.g

is used to produce the file

chandler/repository/query/parser/query.py

and (today) relies on chandler/repository/query/yappsrt.py

I've got a few days yet before I'm ready to check in, but I wanted to 
get this started so that the planets will align when I am ready.

----
Ted Leung                 Open Source Applications Foundation (OSAF)
PGP Fingerprint: 1003 7870 251F FA71 A59A  CEE3 BEBA 2B87 F5FC 4B42



More information about the Dev mailing list