Lumiera  0.pre.03
»edit your freedom«
verb-function-dispatch-test.cpp File Reference

Go to the source code of this file.

Description

Demonstrate the concept of a verb language based on double dispatch.

See also
diff-language.hpp

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.
 

Function Documentation

◆ LAUNCHER()

lib::test::LAUNCHER ( VerbFunctionDispatch_test  ,
"unit common"   
)

Register this test class...