15 #ifndef Om_Language_Operation_DequoteOperation_
23 #ifndef Om_Macro_Precompilation_
25 #include "boost/test/unit_test.hpp"
35 BOOST_AUTO_TEST_SUITE(DequoteOperationTest)
37 BOOST_AUTO_TEST_CASE(DefinitionTest) {
40 System::Get().Evaluate(
"drop find {dequote} system")
44 BOOST_AUTO_TEST_CASE(SimpleTest) {
54 BOOST_AUTO_TEST_CASE(SimpleDequoteThenEvaluateTest) {
60 System::Get().Evaluate(
"define {a {A}} {dequote {a{b}c}}")
64 BOOST_AUTO_TEST_SUITE_END()
79 Om::Language::Operation::DequoteOperation
83 inline char const * Type_::GetName() {
87 template <
typename TheDequoteOperation>
88 inline void Type_::GiveElements(
89 TheDequoteOperation &,
90 Consumer & theConsumer
92 theConsumer.TakeElement(
99 template <
typename TheOperand>
100 inline bool Type_::TakeOperand(
101 Evaluation & theEvaluation,
102 TheOperand & theOperand
105 !theOperand.IsEmpty()
107 return this->TakeQuotedProducer(
109 *theOperand.GetProgram()
113 template <
typename TheProducer>
114 inline bool Type_::TakeQuotedProducer(
115 Evaluation & theEvaluation,
116 TheProducer & theProducer
118 theEvaluation.TakeProducer(theProducer);
#define Om_Language_Operation_DequoteOperation_GetName_()