From 509d0cf8d8ad17f61025d11aecec576adbbd701b Mon Sep 17 00:00:00 2001 From: krasimir Date: Fri, 11 Sep 2009 14:42:45 +0000 Subject: added wrapper functions for expression manipulations in PGF. The Haskell API now uses the wrappers --- src/PGF.hs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/PGF.hs') diff --git a/src/PGF.hs b/src/PGF.hs index 3bca42148..8510aafa5 100644 --- a/src/PGF.hs +++ b/src/PGF.hs @@ -41,6 +41,11 @@ module PGF( -- ** Expr Expr, showExpr, readExpr, + mkApp, unApp, + mkStr, unStr, + mkInt, unInt, + mkDouble, unDouble, + -- * Operations -- ** Linearization @@ -106,7 +111,7 @@ import Control.Monad -- | Reads file in Portable Grammar Format and produces -- 'PGF' structure. The file is usually produced with: -- --- > $ gfc --make +-- > $ gf -make readPGF :: FilePath -> IO PGF -- | Linearizes given expression as string in the language -- cgit v1.2.3