Title: RE: [castor-dev] Code for auto-generating CUSTOM castor mapping files

>You could certainly use a parser generator like JavaCC or ANTLR to parse the
>Java file and write out to a file based on the rules established in the
>grammar file. However, like I said above, you would need to establish rules
>to handle odd situations.

Thanks Bruce,
   I'll investigate JavaCC & ANTLR now.  If I can ask something else to do the parsing then most of the work is done (having done parsing before with Java ORO, and seeing what whacky cases I'd have to deal with for this project- I was a bit disheartened).  The mapping logic should be trivial vs building a robust parsing routine for generic code.

Reply via email to