diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2022-05-20 13:15:14 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2022-05-20 13:15:14 +0300 |
commit | b30cd3e1b8d1162c529bfdd602d0d56ccd2e38c7 (patch) | |
tree | bfae4137f78a0bf223518f6590db2bd436e82185 /src/parser.h | |
parent | 3515199c9e158d4b6fe5d064539bdf288dca7b81 (diff) | |
download | foodtools-b30cd3e1b8d1162c529bfdd602d0d56ccd2e38c7.tar.gz foodtools-b30cd3e1b8d1162c529bfdd602d0d56ccd2e38c7.tar.bz2 foodtools-b30cd3e1b8d1162c529bfdd602d0d56ccd2e38c7.zip |
aha
Diffstat (limited to 'src/parser.h')
-rw-r--r-- | src/parser.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/parser.h b/src/parser.h index d47bad5..70b3120 100644 --- a/src/parser.h +++ b/src/parser.h @@ -5,6 +5,12 @@ #define LINE_SIZE 4096 +typedef enum parser_type { + TITLE = 0, + ITEMS, + STEPS, +} pt; + /** * Return a recipe struct after parsing file in path. * @@ -14,4 +20,7 @@ recipe * parse(char * path, const char * prev); +int +parse_item(const char * s, recipe * r, pt * type, char * error); + #endif /* __PARSER_H */ |