summaryrefslogtreecommitdiff
path: root/src/PGF.hs
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2009-09-11 14:42:45 +0000
committerkrasimir <krasimir@chalmers.se>2009-09-11 14:42:45 +0000
commit509d0cf8d8ad17f61025d11aecec576adbbd701b (patch)
tree78b3e60f47392ad5226516b6f1ed9fd658d80e1a /src/PGF.hs
parent1cdf171251a56baf0867b65a95c9bd59801ff912 (diff)
added wrapper functions for expression manipulations in PGF. The Haskell API now uses the wrappers
Diffstat (limited to 'src/PGF.hs')
-rw-r--r--src/PGF.hs7
1 files changed, 6 insertions, 1 deletions
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 <grammar file name>
+-- > $ gf -make <grammar file name>
readPGF :: FilePath -> IO PGF
-- | Linearizes given expression as string in the language