/* Automate who parse string */ #ifndef H_AUTO #define H_AUTO 1 #include <stdlib.h> typedef struct auto_s *auto_t; typedef struct auto_head_s *auto_head; struct auto_s { int type; char* value; size_t len; auto_t next; }; struct auto_head_s { char* content; size_t pos; size_t length; auto_t lauto; }; auto_t new_auto(auto_t old); auto_t start_auto(char* content, size_t len); void debug_auto(auto_t automaton); void strauto(auto_head header); void balauto(auto_head head); void varauto(auto_head head); #endif // H_AUTO