On Mon, May 4, 2015 at 4:38 PM, Ilinca Andrei <andrei.ilinc...@gmail.com> wrote: > Hello! > > As pointed out by Clifford, I have been looking over src/libgcv/wfobj CMAKE > and file structure. After some research, i have found the following: > > it uses a perplex lexer and not a re2c, there is some re2c logic in BRL-CAD > in other/stepcode/CMakeLists.txt but I don't understand it's purpose.
perplex is our tool, built on top of re2c. re2c is a "lower level" layer - perplex takes some bits from flex and adapts them to the re2c engine. So perplex is fine to use instead of/in addition to re2c - in fact, it's probably preferable/easier. The rough tool mapping for us is lex -> perplex, yacc -> lemon. > Secondly, the CMakeLists.txt in libgcv seems to be tied to the library, in > other words I believe it creates a static library (.so). Ideally, your conversion functionality will be defined as a set of library calls that can be used by a generic conversion tool (if you've seen commits about "gcv" over the last few days, that's work on that tool). If you prefer to start simpler, there is a tool in misc/tools/dom2dox that builds a binary - that might map a little better to your current setup. > How could I develop a CMakeLists file for my new parser in an incremental > manner, I'm having trouble understanding the whole file at once? Take a look at dom2dox and see if that helps - if it's still unclear feel free to ask questions. That's probably our simplest tool using that parsing approach. Cheers, Cliff ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel