added wrapper functions for expression manipulations in PGF. The Haskell API now uses the wrappers

This commit is contained in:
krasimir
2009-09-11 14:42:45 +00:00
parent d294b70395
commit 57e53d46f6
4 changed files with 61 additions and 16 deletions

View File

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