Hi Fidel, thank you very much, I'll take a look at that.
Luigi 2014-08-11 21:21 GMT+02:00 Fidel H Viegas <[email protected]>: > Hi Luigi, > > The dependency is just a jar, so it is not that much of a hassle anyway. > I'd suggest you go with ANTLR. Have a look at the Hibernate HQL parser and > see how they have integrated it into the Hibernate project. Here is the > grammar > https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/main/antlr/hql.g > > You can always have a look at the whole source code to see how it was > integrated. I guess it is easier if you follow some working example. > > Take care! > > Fidel H Viegas > > > On Mon, Aug 11, 2014 at 10:24 AM, Luigi Dell'Aquila < > [email protected]> wrote: > >> Hi, >> >> Thank you very much for your feedback, I'm in charge of this task and I'm >> about to start it. >> I'm not a parser expert, so I'm still studying all these frameworks (I >> did something with JavaCC in the past, but nothing very complex). >> My first impression is that JavaCC is very good for low level control of >> generated code, while ANTLR is much easier and clearer in the grammar >> syntax. >> Of course avoiding a new dependency is a pro for JavaCC. >> Anyway, writing the grammar is only a part of the job, the real challenge >> will be integrating the new parser with existing OrientDB code and >> improving all the related functions (eg. query optimization). >> >> I will let you know about the progress of my work >> >> Regards >> >> Luigi >> >> >> >> >> >> >> 2014-08-09 21:28 GMT+02:00 Fidel H Viegas <[email protected]>: >> >>> >>> >>> >>> On Sat, Aug 9, 2014 at 6:28 PM, Curtis Ruck <[email protected]> >>> wrote: >>> >>>> I've used antlr 3 & 4, and the changes in 4 make it extremely easy to >>>> use, within the scope of parsing grammars. The only benefit to javacc that >>>> I'm aware of is the lack of a runtime dependency, but I believe the >>>> flexibility during grammar development more than makes up for it since the >>>> antlr license is friendly. >>>> >>>> >>>> >>> I haven't played with ANTLR in a while, but I have used antlr 3 last >>> year. JavaCC on its own without JJTree is not as easy as SableCC or ANTLR >>> with regards to tree traversals. I tried to use it in a project a couple of >>> years ago, but dumped it over SableCC due to simplicity. It was faster than >>> SableCC, though. >>> >>> What are you guys using at the moment? >>> >>> Regards, >>> >>> Fidel H Viegas >>> >>> -- >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "OrientDB" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "OrientDB" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > > --- > You received this message because you are subscribed to the Google Groups > "OrientDB" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
