Hi again,
I have restructured the grammar from my last patch (which got committed by
Cliff yesterday) such as it can parse some more cases of assignation and
handles imbricated functions better. I have also updated the priorities
section such that the "( )" ,"[ ]" , "{ }" are handled correctly.
I believe we have now a fully working csg parser grammar although I'm not
sure about the order of the printed outputs: In the attached patch
<https://sourceforge.net/p/brlcad/patches/388/>, the messages that I used
to test the grammar are printed in reversed order on the screen when I try
to parse different .csg files. I'm not sure if that's a mistake on my side
or that is the way it should be. My opinion is that this happens because of
the rules recurrence . Any thoughts on that are more than welcome.
I will post a mail on OpenSCAD's mailinglist soon to ask them about my work
so far and hopefully get some tips about the next step of the process.
The next step would be interpreting every grammar rule using C code to
retrieve that information about the generated ast tree. I believe this part
would take considerably less considering the fact that I have gained some
experience using lemon and re2c.
Any feedback or opinion is appreciated.
Regards,
Andrei
On Sat, Jun 20, 2015 at 5:13 PM, Ilinca Andrei <andrei.ilinc...@gmail.com>
wrote:
> Hello everyone,
>
> Firstly, welcome back, Isaac. Hope your trip to San Francisco was nice.
> Got your mail and will try to accomplish all those tasks.
>
> Secondly, yesterday I finalised my summer exam session. I didn't expect to
> take so long when I wrote the proposal and I am a bit behind schedule with
> my GSoC project but I will be fully dedicated in the remaining time. That
> being said, I will try to deliver a csg parser until midterm (which is next
> week) but I don't think I can work out a fully working csg importer. Is it
> crucial for passing the midterm examination to be exactly on track with the
> proposal?
>
> Thirdly, here is a patch <https://sourceforge.net/p/brlcad/patches/383/>
> that applies cleanly to the main trunk that does the csg parsing for
> group(), some group() content and group end. I will now work on making
> tokens for all the other functions that can appear in a .csg file and
> constantly updating the grammar accordingly.
>
> Regards,
> Andrei
>
>
------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel