#ifndef REGEX_H #define REGEX_H #include #include "vector.h" extern bool is_case_on; typedef struct { int accepting_state; char * str; vector_t delta_table; // vector_t catch_table; // } regex_t; extern regex_t * regex_compile(const char * const pattern); extern int regex_free(regex_t * const regex); extern bool regex_search(regex_t * regex, const char * const string); extern int regex_match(regex_t * regex, const char * const string, const bool start_of_string, const int string_offset); extern bool is_magic(const char c); #endif