From bef9d8c5fce740fde65934b170cca33b121fde67 Mon Sep 17 00:00:00 2001 From: krasimir Date: Sun, 20 Dec 2015 14:04:52 +0000 Subject: added a primitive full-text search index in libsg. This can be use for finding an abstract tree whose linearization matches given keywords --- src/runtime/c/sg/sg.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/runtime/c/sg/sg.h') diff --git a/src/runtime/c/sg/sg.h b/src/runtime/c/sg/sg.h index 3bf0cb8c5..6ef57584d 100644 --- a/src/runtime/c/sg/sg.h +++ b/src/runtime/c/sg/sg.h @@ -30,6 +30,12 @@ sg_insert_expr(SgSG *sg, PgfExpr expr, GuExn* err); PgfExpr sg_get_expr(SgSG *sg, SgId key, GuPool* out_pool, GuExn* err); +void +sg_update_fts_index(SgSG* sg, PgfPGF* pgf, GuExn* err); + +GuSeq* +sg_query_linearization(SgSG *sg, GuString tok, GuPool* pool, GuExn* err); + typedef PgfExpr SgTriple[3]; -- cgit v1.2.3