diff options
Diffstat (limited to 'src/expert-system.c')
| -rw-r--r-- | src/expert-system.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/expert-system.c b/src/expert-system.c new file mode 100644 index 0000000..3462c44 --- /dev/null +++ b/src/expert-system.c | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | #include <stdlib.h> | ||
| 2 | #include <stdint.h> | ||
| 3 | #include <stdio.h> | ||
| 4 | #include <stdbool.h> | ||
| 5 | |||
| 6 | #include "knowledge-base.h" | ||
| 7 | #include "inference-engine.h" | ||
| 8 | |||
| 9 | int | ||
| 10 | main (void) | ||
| 11 | { | ||
| 12 | // TODO(cmmm): auto-rebuild | ||
| 13 | print_knowledge_base (); | ||
| 14 | putchar ('\n'); | ||
| 15 | build_decision_tree (); | ||
| 16 | write_decision_tree_in_dot_format (); | ||
| 17 | putchar ('\n'); | ||
| 18 | question_user (); | ||
| 19 | |||
| 20 | return EXIT_SUCCESS; | ||
| 21 | } | ||
