#include "structures.h" struct av_term_list; struct av_term{ int type; int index; char *const_string; struct av_term_list *arguments; }; struct av_term_list{ struct av_term *ptr; struct av_term_list *next; }; struct av_clause{ struct av_term *head; struct av_term_list *body; int var_counter; int clause_type; }; struct av_clause_list{ struct av_clause *ptr; struct av_clause_list *next; }; typedef struct av_clause parser_clause; typedef struct av_clause_list parser_clause_list; typedef struct av_term parser_term; typedef struct av_term_list parser_term_list; char *var_table[100]; char agent[50]; module_ptr convert_structure(); #define DIRECT_CLAUSE 1 #define FORWARD_CLAUSE 2 #define BACKWARD_CLAUSE 3 #define DIRECT_FORWARD_CLAUSE 4