17 lines
322 B
C
17 lines
322 B
C
#ifndef INCLUDE_SRC_PARSER_H_
|
|
#define INCLUDE_SRC_PARSER_H_
|
|
|
|
#include "ast.h"
|
|
#include "error.h"
|
|
#include "tokenlist.h"
|
|
|
|
typedef struct parse_result {
|
|
error_t *err;
|
|
tokenlist_entry_t *next;
|
|
ast_node_t *node;
|
|
} parse_result_t;
|
|
|
|
parse_result_t parse(tokenlist_entry_t *current);
|
|
|
|
#endif // INCLUDE_SRC_PARSER_H_
|