Fixed build (completed butnot combinator). Also, fixed bug where sequence wasn't bailing out if one parser failed.

This commit is contained in:
Meredith L. Patterson 2012-05-03 01:40:23 +01:00
parent 7fa1111d84
commit 19e36e1cfe
3 changed files with 75 additions and 4 deletions

View file

@ -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;