Re: [brlcad-devel] Integrating a new lemon/re2c parser in BRL-CAD logic

2015-06-06 Thread Clifford Yapp
OK, so let's look at how to go at this. The problem is you're getting an empty csg_scanner.c file, which is obviously incorrect. That C file is generated by re2c, so let's take a look at what re2c is reporting by running make VERBOSE=1 : [100%] [RE2C][csg_scanner] Building scanner with brlcad/bu

Re: [brlcad-devel] Integrating a new lemon/re2c parser in BRL-CAD logic

2015-06-02 Thread Ilinca Andrei
Hello, As we previously discussed, I started modifying code in the src/conv/csg ( on top of your integrated patch, Cliff) to make it parse group() and identify some basic tokens. The problem I encountered and could not solve is the following: [ 91%] [ 91%] Building C object src/conv/csg/CMakeFile

Re: [brlcad-devel] Integrating a new lemon/re2c parser in BRL-CAD logic

2015-05-31 Thread Clifford Yapp
On Fri, May 29, 2015 at 5:55 PM, Ilinca Andrei wrote: > I tried to change its grammar to parse some simple .csg functions > like group() or multimatrix() and it corectly identified them but I run into > some errors which I could not solve at that time. Were you able to subsequently get this work

Re: [brlcad-devel] Integrating a new lemon/re2c parser in BRL-CAD logic

2015-05-29 Thread Ilinca Andrei
Hello, As I mentioned in the last mail, I have been working on this simple calculator lemon parser, trying to have a better understanding of how lemon works and what are the key components when you build one. This example shows in an i

Re: [brlcad-devel] Integrating a new lemon/re2c parser in BRL-CAD logic

2015-05-26 Thread Ilinca Andrei
Hello, Firstly, thank you, Cliff, for you help with that csg integration patch, it really got disappointing not managing to make it work for so long. I added it to my svn copy and it compiled perfectly. Secondly, as Sean recommended, I started building a simple mathematical lemon parser in a incr

Re: [brlcad-devel] Integrating a new lemon/re2c parser in BRL-CAD logic

2015-05-25 Thread Clifford Yapp
Andrei, Since the perplex/re2c/lemon setup is a bit obtuse from a build system perspective (which is my fault primarily) I've taken your patch and adapted it to give you what should be a minimal working setup. The attached patch, applied to the top level of a clean BRL-CAD trunk checkout, should

Re: [brlcad-devel] Integrating a new lemon/re2c parser in BRL-CAD logic

2015-05-22 Thread Christopher Sean Morrison
On May 20, 2015, at 5:59 PM, Ilinca Andrei wrote: > I was looking for a way to integrate my re2c lemon parser, and, as discussed > in the last mails, I tried to use dom2dox as an example but dom2dox doesn't > compile. I svn updated everything to Version 65018 but I still get > differences bet

Re: [brlcad-devel] Integrating a new lemon/re2c parser in BRL-CAD logic

2015-05-04 Thread Clifford Yapp
On Mon, May 4, 2015 at 4:38 PM, Ilinca Andrei 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

[brlcad-devel] Integrating a new lemon/re2c parser in BRL-CAD logic

2015-05-04 Thread Ilinca Andrei
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.