Example program to test JLANG::JBool class.
More...
#include <iostream>
#include <iomanip>
#include "JLang/JBool.hh"
#include "JLang/JConversion.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Example program to test JLANG::JBool class.
.
- Author
- mdejong
Definition in file JBool.cc.
#define C_OPERAND |
( |
|
OP, |
|
|
|
A, |
|
|
|
B |
|
) |
| OP< JBool<A>, JBool<B> >::value |
Operand macro.
- Parameters
-
OP | logical operator |
A | first value |
B | second value |
- Returns
- result
Definition at line 62 of file JBool.cc.
#define C_SWITCH |
( |
|
VALUE, |
|
|
|
A, |
|
|
|
B |
|
) |
| VALUE.c_switch<A,B>() |
Switch macro.
The result equals first option if value true; else second option.
- Parameters
-
VALUE | value |
A | first option |
B | second option |
- Returns
- result
Definition at line 73 of file JBool.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 82 of file JBool.cc.
90 JParser<> zap(
"Example program to test boolean algebra at compile time.");
96 catch(
const exception &error) {
97 FATAL(error.what() << endl);
103 const bool Y =
false;
Utility class to parse command line options.
Type definition of logical XOR.
#define ASSERT(A,...)
Assert macro.
Auxiliary template class for type bool.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
#define C_SWITCH(VALUE, A, B)
Switch macro.
Type definition of logical AND.
#define C_OPERAND(OP, A, B)
Operand macro.
Type definition of logical OR.