mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 03:32:51 -06:00
whitespace cleanup in the parser
This commit is contained in:
@@ -1187,7 +1187,7 @@ pgf_parsing_lookahead(PgfParsing *ps, PgfParseState* state)
|
|||||||
PgfLexiconIdxEntry* entry = gu_buf_extend(state->lexicon_idx);
|
PgfLexiconIdxEntry* entry = gu_buf_extend(state->lexicon_idx);
|
||||||
entry->idx = seq->idx;
|
entry->idx = seq->idx;
|
||||||
entry->bind_type = bind_type;
|
entry->bind_type = bind_type;
|
||||||
entry->offset = (current - ps->sentence);
|
entry->offset = (current - ps->sentence);
|
||||||
}
|
}
|
||||||
i = k+1;
|
i = k+1;
|
||||||
goto next;
|
goto next;
|
||||||
@@ -1339,7 +1339,7 @@ pgf_parsing_td_predict(PgfParsing* ps,
|
|||||||
// Top-down prediction for syntactic rules
|
// Top-down prediction for syntactic rules
|
||||||
for (size_t i = 0; i < ccat->n_synprods; i++) {
|
for (size_t i = 0; i < ccat->n_synprods; i++) {
|
||||||
PgfProduction prod =
|
PgfProduction prod =
|
||||||
gu_seq_get(ccat->prods, PgfProduction, i);
|
gu_seq_get(ccat->prods, PgfProduction, i);
|
||||||
pgf_parsing_production(ps, ps->before, conts, prod);
|
pgf_parsing_production(ps, ps->before, conts, prod);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1363,7 +1363,7 @@ pgf_parsing_td_predict(PgfParsing* ps,
|
|||||||
|
|
||||||
if (value != NULL) {
|
if (value != NULL) {
|
||||||
pgf_parsing_predict_lexeme(ps, state, conts, value);
|
pgf_parsing_predict_lexeme(ps, state, conts, value);
|
||||||
|
|
||||||
PgfProductionIdxEntry* start =
|
PgfProductionIdxEntry* start =
|
||||||
gu_buf_data(lentry->idx);
|
gu_buf_data(lentry->idx);
|
||||||
PgfProductionIdxEntry* end =
|
PgfProductionIdxEntry* end =
|
||||||
|
|||||||
Reference in New Issue
Block a user