mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-08 02:32:50 -06:00
the parser in the C runtime can now detect incomplete sentences just like the parser in the Haskell runtime. This is also reflected in all bindings.
This commit is contained in:
@@ -122,6 +122,13 @@ PGF_API_DECL PgfExprEnum*
|
||||
pgf_generate_all(PgfPGF* pgf, PgfType* ty,
|
||||
GuExn* err, GuPool* pool, GuPool* out_pool);
|
||||
|
||||
typedef struct {
|
||||
int incomplete; // equal to !=0 if the sentence is incomplete, 0 otherwise
|
||||
size_t offset;
|
||||
const char* token_ptr;
|
||||
size_t token_len;
|
||||
} PgfParseError;
|
||||
|
||||
PGF_API_DECL PgfExprEnum*
|
||||
pgf_parse(PgfConcr* concr, PgfType* typ, GuString sentence,
|
||||
GuExn* err, GuPool* pool, GuPool* out_pool);
|
||||
|
||||
Reference in New Issue
Block a user