leao/include/parser.h

11 lines
265 B
C

#include <stdio.h>
#include <stdbool.h>
struct sexp_list;
/* Parse a single s-expression from the `in` stream.
* If the parse is successful, The output is put in out.
* Otherwise the program is aborted.
*/
void parse_program(FILE *in, struct sexp_list **out);