Lumiera
0.pre.03
»edit your freedom«
|
Go to the source code of this file.
Demonstrate the concept of a verb language based on double dispatch.
Definition in file verb-function-dispatch-test.cpp.
#include "lib/test/run.hpp"
#include "lib/verb-token.hpp"
#include "lib/format-string.hpp"
#include "lib/format-cout.hpp"
#include <string>
#include <vector>
Classes | |
class | Receiver |
the "visitor" interface to invoke More... | |
class | RecollectingReceiver |
Statefull receiver of verb-tokens. More... | |
class | VerbFunctionDispatch_test |
class | VerboseRenderer |
a receiver of verb-tokens, which renders them verbosely More... | |
Typedefs | |
using | Verb = VerbToken< Receiver, string(void)> |
using | VerbSeq = vector< Verb > |
Functions | |
const string | BEGINNING ("silence") |
LAUNCHER (VerbFunctionDispatch_test, "unit common") | |
Register this test class... More... | |
Verb | VERB (Receiver, woof) |
Verb | VERB (Receiver, honk) |
Verb | VERB (Receiver, moo) |
Verb | VERB (Receiver, meh) |
Namespaces | |
lib | |
Implementation namespace for support and library code. | |
lib::test::LAUNCHER | ( | VerbFunctionDispatch_test | , |
"unit common" | |||
) |
Register this test class...