Boost logo

Boost :

From: David B. Held (dheld_at_[hidden])
Date: 2004-05-15 13:12:48


"David B. Held" <dheld_at_[hidden]> wrote in message
news:c84snq$u3k$1_at_sea.gmane.org...
> In the program below, I am having trouble using a grammar
> as a parser for a rule. In particular, I get an error with gcc 3.3
> on the line:
>
> Module_ = *Statement;
> [...]

Ok, I realized that Statement is a type, and you can't assign
types to variables. Duh. But now my problem is that when I
make it into a temporary, like so:

    Module_ = *Statement();

my grammar will parse the first instance, but then quit. For instance,
I want to be able to parse this:

a b;
c d;
e f;

It will parse "a b;" and then stop on c. Any clues?

Dave

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.683 / Virus Database: 445 - Release Date: 5/12/2004

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk