Boost logo

Boost Users :

From: dariomt_at_[hidden]
Date: 2008-04-03 03:53:35


Lets say I have a simple calculator grammar like the one defined in
trunk\libs\spirit\example\fundamental\calc_plain.cpp

Now I would like to extend that grammar e.g. add support for sqrt()

One way would be modifying the existing grammar class (patch provided)

But what I would like is to create a new class that uses or inherits from
the existing grammar class to provide the extended behavior.

That is, I would need both the calculator and the extended_calculator
classes available, and without code duplication.

¿Is this possible?





Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net