a first version of PGF.AbsCompute

This commit is contained in:
aarne
2008-10-10 15:53:17 +00:00
parent 917f417413
commit 4e795bab9b
5 changed files with 123 additions and 15 deletions

View File

@@ -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