Boost logo

Boost :

From: Joel de Guzman (joel_at_[hidden])
Date: 2006-08-12 19:55:59

Andreas Pokorny wrote:
> On Sat, Aug 12, 2006 at 07:02:07AM +0800, Joel de Guzman <joel_at_[hidden]> wrote:
>> Do we have to write rules for all permutations of A and B and C?
>> What about literals and built-in types? Example:
>> a_ >> b_ >> "hi" | c_ >> 12345
> Of course not. This was just for the example. Usually one would
> separate the different types into categories or concept, and define
> rules on top of them. For example in a matrix vector library, one
> might define the categories matrix, column vector, row vector and
> scalar.

Sorry, that was a dumb question. That's what categories are for,
I know. So, anyway, it would really help if you could provide
a short close-to-real-world tutorial.


Joel de Guzman

Boost list run by bdawes at, gregod at, cpdaniel at, john at