|
Proto : |
Subject: [proto] Xpressive --> Proto?
From: Hossein Haeri (powerprogman_at_[hidden])
Date: 2011-04-28 18:04:44
Dear all,
I have an application with the following syntax (with which many of you are perhaps already familiar through my previous postings):
x >> &f >> &g
I can evaluate the above expression into g(f(5)) say when x == 5. I am quite pleased with how Proto manages this for the compile-time flexibility that it gives me.
Now, I'm wondering whether there is any way in which the string "x >> &f >> &g" can be parsed into its Proto counterpart. So, I started reading through the Xpressive documentation with the hope of finding a piece of magic there. I am however not positive at all because, in effect, this would mean type construction at runtime. I would however be so delighted if someone here who can contradict me. Any ideas please?
TIA,--Hossein
Proto list run by eric at boostpro.com