added a primitive full-text search index in libsg. This can be use for finding an abstract tree whose linearization matches given keywords

This commit is contained in:
krasimir
2015-12-20 14:04:52 +00:00
parent 0b9395fd70
commit bef9d8c5fc
6 changed files with 413 additions and 102 deletions

View File

@@ -59,8 +59,6 @@ import Data.Function(on)
-- the foreign pointer in case if the application still has a reference
-- to Concr but has lost its reference to PGF.
data PGF = PGF {pgf :: Ptr PgfPGF, pgfMaster :: ForeignPtr GuPool}
data Concr = Concr {concr :: Ptr PgfConcr, concrMaster :: PGF}
type AbsName = String -- ^ Name of abstract syntax
type ConcName = String -- ^ Name of concrete syntax