-
Notifications
You must be signed in to change notification settings - Fork 0
/
intro.cpp
32 lines (24 loc) · 996 Bytes
/
intro.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "xepl.hpp"
#include "../kits/xepl_all_kits.cc"
#include "../kits/PerformanceTimer.hpp"
int main ( int, char**, char** )
{
bool reboot;
do {
XEPL::Cortex cortex ( "brain", std::cout );
KITS::TIMER::Initialize(100);
{
KITS::OPERATORS::Register_Operator_Kit ( &cortex );
KITS::KEYWORDS::Register_Keyword_Kit ( &cortex );
KITS::SPLICERS::Register_Splicer_Kit ( &cortex );
KITS::TIMER::Register_Performance_Kit ( &cortex );
cortex.Register_Command ( "Trace", [] ( XEPL::String* _opt ) { XEPL::Show_Trace = _opt->compare("off"); });
cortex.Register_Command ( "Counters", [] ( XEPL::String* _opt ) { XEPL::Show_Counters = _opt->compare("off"); });
cortex.Register_Command ( "Memory", [] ( XEPL::String* _opt ) { XEPL::Show_Memory_Counts = _opt->compare("off"); });
reboot = KITS::CLI::CliLoop(std::cin, std::cout, std::cerr);
cortex.Close_Cortex();
}
KITS::TIMER::Shutdown();
} while ( reboot );
return 0;
}