diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2014-04-08 12:41:41 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2014-04-08 12:41:41 +0000 |
| commit | f99d3033aa02ed2155e93d039e3fc826efd35bb1 (patch) | |
| tree | 014ad99f99e1fd7bc107a163446bd49687bf9cb2 /src | |
| parent | 64623d4881705514e14aea68b3d7eeb42d94f7c8 (diff) | |
bugfix in the C runtime that shows up with only some grammars
Diffstat (limited to 'src')
| -rw-r--r-- | src/runtime/c/pgf/parser.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runtime/c/pgf/parser.c b/src/runtime/c/pgf/parser.c index d8e150f7e..ee2d13415 100644 --- a/src/runtime/c/pgf/parser.c +++ b/src/runtime/c/pgf/parser.c @@ -1148,7 +1148,8 @@ pgf_parsing_lookahead(PgfParsing *ps, PgfParseState* state) { PgfSequence* epsilon_seq = gu_seq_index(ps->concr->sequences, PgfSequence, 0); - if (gu_seq_length(epsilon_seq->syms) == 0) { + if (gu_seq_length(epsilon_seq->syms) == 0 && + epsilon_seq->idx != NULL) { // Since the sequences are sorted, the epsilon sequence will // always be the first if there is any at all. We should // always add the epsilon in the index, because we do |
