Fixed build (completed butnot combinator). Also, fixed bug where sequence wasn't bailing out if one parser failed.
This commit is contained in:
parent
7fa1111d84
commit
19e36e1cfe
3 changed files with 75 additions and 4 deletions
|
|
@ -76,6 +76,9 @@ typedef struct parsed_token {
|
|||
};
|
||||
} parsed_token_t;
|
||||
|
||||
/* If a parse fails, the parse result will be NULL.
|
||||
* If a parse is successful but there's nothing there (i.e., if end_p succeeds) then there's a parse result but its ast is NULL.
|
||||
*/
|
||||
typedef struct parse_result {
|
||||
const parsed_token_t *ast;
|
||||
} parse_result_t;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue