blob: 70b3120ce279d3cda8a41d1b43aba4c2609f8f60 (
plain) (
tree)
|
|
#ifndef __PARSER_H
#define __PARSER_H
#include "types.h"
#define LINE_SIZE 4096
typedef enum parser_type {
TITLE = 0,
ITEMS,
STEPS,
} pt;
/**
* Return a recipe struct after parsing file in path.
*
* Path can be relative or full, ~ will be resolved as $HOME, and - will accept
* input from stdin
*/
recipe *
parse(char * path, const char * prev);
int
parse_item(const char * s, recipe * r, pt * type, char * error);
#endif /* __PARSER_H */
|