Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2001-05-31 04:16:51


I've just got another idea about Spirits's syntax. Consider grammar in C++
standard (std::A). It uses "-seq" for repetition (+) and "opt" subscript for
optinal constructs. What about adding such syntax to Spirit

Rule<> points = Point-seq ; // and similary for opt

I think it is possible to implement it in a few minutes.

Also, what about using "," for sequencing? Was this suggestion considered?

Any comments?

-- 
Regards,
Vladimir

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