state machine tester compiles now, and knows to use a local input file if no parms are provided,
but it also totally fails on the input, rejecting every line (even when they should have been accepted).
but it compiles!...
//////////////
-//#define DEBUG_STATE_MACHINE
+#define DEBUG_STATE_MACHINE
// uncomment if you want the debugging version.
//hmmm: implement logging...
contracts.h
definitions.h
enhance_cpp.h
-environment.cpp
+environment.c
environment.h
functions.h
guards.cpp
guards.h
makefile
-mutex.cpp
+mutex.o
mutex.h
outcome.h
utf_conversion.cpp
transition_map recog;
setup_state_machine(recog);
+ astring filename;
if (application::_global_argc < 2) {
- print_instructions();
- return 1;
+ // automating for unit test with a simple input file.
+ filename = "./input_data_state_machine.txt";
+/// print_instructions();
+/// return 1;
+ } else {
+ filename = astring(application::_global_argv[1]);
}
- astring filename = astring(application::_global_argv[1]);
/// int indy = filename.find(' ');
if (!filename) {
print_instructions();