15 #ifndef Om_Language_Translator_
27 Om::Language::Translator
31 inline void Type_::Evaluate(
35 Writer theWriter(theCodePointSink);
36 Reader theReader(theCodePointSource);
40 ).ParseElements(theReader);
43 inline std::string Type_::Evaluate(
44 char const theCodeUnitIterator[]
46 assert(theCodeUnitIterator);
47 std::string theString;
51 std::back_insert_iterator<std::string>
53 std::back_inserter(theString)
63 inline void Type_::GiveElements(Consumer & theConsumer)
const {
65 throw std::logic_error(
"Pure virtual function called.");
68 inline bool Type_::IsEmpty()
const {
70 throw std::logic_error(
"Pure virtual function called.");
73 inline bool Type_::Translate(
78 throw std::logic_error(
"Pure virtual function called.");
A CodePoint Sink that pushes each code unit to the iterator.
Any object that items can be pushed to.
A CodePoint Source that reads each code unit from the iterator.
Any object that items can be pulled from.