More LL(k) fixes (Merge branch 'LL' of https://github.com/pesco/hammer)

This commit is contained in:
Meredith L. Patterson 2013-05-24 06:11:44 -07:00
commit c8dba54bb4
4 changed files with 90 additions and 61 deletions

View file

@ -25,7 +25,6 @@ static bool opt_isValidCF(void *env) {
static HParsedToken* reshape_optional(const HParseResult *p) {
assert(p->ast);
assert(p->ast->token_type == TT_SEQUENCE);
assert(p->ast->seq->used > 0);
HParsedToken *res = p->ast->seq->elements[0];
if(res)