From: Andre B. <and...@gm...> - 2003-05-16 05:50:43
|
Baptiste Lepilleur wrote: >Yes, and it's fairly common (pimpl idiom): >class Main >{ > class Impl; >}; > >class Main::Impl : public BaseImpl >{ >}; > > Oh yes I forgot about that.... >>The miniparser stuff sounds good - seems to go into the direction of the >>boost parser but a little >>bit more lightweight. I like this idea, since much code of the >>declaration parser is not very easy to >>understand and I do feel that this could make some things easier. >> >> > >Its strongly inspired from Boost.Spirit, but I took all the thing we don't >need out, prefering simplicity over flexibility (we can have only one >scanner, but it's enough for us). I started experimental with after fixing a >few parsing issues with class declaration. There so much things that could >be optional and different but similar alternative that the code was getting >fairly complicated. The parser would solve this if we could get the matched >ranges out, as well as the matched alternative. > yep I strongly agree with this - the declaration parser did get very complex and in some parts not very readable. |