Boost logo

Boost :

From: Gregory Seidman (gseidman_at_[hidden])
Date: 2001-05-26 19:49:59


joel de guzman sez:
} > From: John Max Skaller <skaller_at_[hidden]>
} > > joel de guzman wrote:
} > > >
} > > > From: "John Max Skaller" :
} > >
} > > > > (a|b)*abb
} > >
} > > > Right. (a|b) will consume all 'ab's with RD.
} > >
} > > Yeah. Which shows just how weak RD is:
} > > it won't even process regular expressions.
} >
} > Which is another reason I've been wanting to see regex
} > integrated into Spirit.
}
} But this can be done in Spirit:
}
} ((a|b) - abb) >> abb
}
} Spirit's EBNF syntax has the &, -, and ^ which are
} very powerful set operators missing in other EBNF
} dialects.

...but that isn't the same language. aabbababb is (should be) accepted by
the first expression and (if I understand your notation) will not be
accepted by the EBNF version.

} Cheers,
} Joel de Guzman
--Greg


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