mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-26 21:12:50 -06:00
bug fix in the management of memory pools in the statistical parser
This commit is contained in:
@@ -34,7 +34,7 @@ typedef struct PgfParseState PgfParseState;
|
||||
/// Begin parsing
|
||||
PgfParseState*
|
||||
pgf_parser_init_state(PgfConcr* concr, PgfCId cat, size_t lin_idx,
|
||||
GuPool* pool);
|
||||
GuPool* pool, GuPool* out_pool);
|
||||
/**<
|
||||
* @param parser The parser to use
|
||||
*
|
||||
@@ -67,8 +67,7 @@ pgf_parser_next_state(PgfParseState* prev, PgfToken tok);
|
||||
*/
|
||||
|
||||
GuEnum*
|
||||
pgf_parser_completions(PgfParseState* prev, GuString prefix,
|
||||
GuPool* pool);
|
||||
pgf_parser_completions(PgfParseState* prev, GuString prefix);
|
||||
|
||||
void
|
||||
pgf_parser_set_beam_size(PgfParseState* state, double beam_size);
|
||||
@@ -90,7 +89,7 @@ pgf_parser_add_literal(PgfConcr *concr, PgfCId cat,
|
||||
|
||||
/// Retrieve the current parses from the parse state.
|
||||
PgfExprEnum*
|
||||
pgf_parse_result(PgfParseState* state, GuPool* pool);
|
||||
pgf_parse_result(PgfParseState* state);
|
||||
/**<
|
||||
* @param parse A parse state
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user