mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-04 00:32:51 -06:00
a first version of PGF.AbsCompute
This commit is contained in:
@@ -44,7 +44,7 @@ module PGF(
|
||||
parse, canParse, parseAllLang, parseAll,
|
||||
|
||||
-- ** Evaluation
|
||||
tree2expr, expr2tree,
|
||||
tree2expr, expr2tree, compute,
|
||||
|
||||
-- ** Word Completion (Incremental Parsing)
|
||||
complete,
|
||||
@@ -58,6 +58,7 @@ module PGF(
|
||||
import PGF.CId
|
||||
import PGF.Linearize
|
||||
import PGF.Generate
|
||||
import PGF.AbsCompute
|
||||
import PGF.Macros
|
||||
import PGF.Data
|
||||
import PGF.Expr
|
||||
@@ -265,4 +266,4 @@ complete pgf from cat input =
|
||||
tokensAndPrefix s | not (null s) && isSpace (last s) = (words s, "")
|
||||
| null ws = ([],"")
|
||||
| otherwise = (init ws, last ws)
|
||||
where ws = words s
|
||||
where ws = words s
|
||||
|
||||
Reference in New Issue
Block a user