|
Boost : |
Subject: Re: [boost] [Christian S] Spirit and ANTLR - Request for example
From: Sohail Somani (sohail_at_[hidden])
Date: 2009-06-09 14:12:46
Larry Evans wrote:
> However, the one advantage of spirit (that I can think of at the
> moment) is that the parser produced *parses faster* than one produced
> with antlr or yacc because of the compile-time optimization possible
> with expression templates. OK, I'm just guessing here, and I have no
> benchmarks to show that. Maybe the spirit folks do?
>
> Now I can see your justification for abandoning spirit because the
> slow compile times and cryptic error messages slow down the developer.
> On the other hand, the faster parse times saves the end-user time. So
> it's a balance between whether one thinks the parse time, which is
> experienced *many* times by the end user, is more important than the
> developer time, which is experienced probably *fewer* times than the
> parse times.
>
> Is that about right?
I don't think your guess about parse times is right. I think the ANTLR
parser is quite fast. They might be roughly equal. Of course, a good
parser generator cannot make up for a bad grammar.
And that's my guess! :-)
-- Sohail Somani http://uint32t.blogspot.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk