From: Roman Yakovenko (roman_at_[hidden])
Date: 2001-05-21 11:16:04
Right. There are a lot of problems with it.
But still there is an implementation of this idea - "Visual Parser".
I think that I agree with Vladimir. In small project RegEx would be helpful,
big one we need some series tool ( I used this one "Visual Parser" ).
From: Vladimir Prus [mailto:ghost_at_[hidden]]
Sent: Monday, May 21, 2001 2:54 PM
Subject: [boost] Re: [ANN] Spirit C++ parser framework.
joel de guzman wrote:
> Spirit is an object oriented recursive descent parser generator framework
> implemented using template meta-programming techniques. Expression
> allow us to approximate the syntax of Extended Backus Normal Form (EBNF)
> completely in C++. The Spirit framework enables a target grammar to be
> written exclusively in C++. EBNF grammar specifications can mix freely
> other C++ code and, thanks to the generative power of C++ templates, are
> immediately executable. In retrospect, conventional compiler-compilers or
> parser-generators have to perform an additional translation step from the
> source EBNF code to C or C++ code.
> I wonder if anyone out there would be interested in such a beast.
> If anyones's interested, I'd be very glad to boostify the code
> and collaborate with people.
This is interesting, but probably is not usefull.
With small grammars this might work, but for large ones I see a serious
drawback. Template metaprograms are very hard to write, debug and use.
Can you make reasonable error reporting? Can you make reasonable conflict
reporting? And so on.
Moreover, recursive descent parser (= LL(1)) will have lots of conflicts.
would you disambiguate? (The URL you've given doesn't work, so I haven't
So, my final opinion is that "conventional compiler-compler" is better.
-- Regards, Vladimir To unsubscribe, send email to: <mailto:boost-unsubscribe_at_[hidden]> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk