diff options
| author | peb <peb@ling.gu.se> | 2008-09-03 09:04:09 +0000 |
|---|---|---|
| committer | peb <peb@ling.gu.se> | 2008-09-03 09:04:09 +0000 |
| commit | 74826158cbe6ad87c0cdfaef7814820c547a3306 (patch) | |
| tree | 6915828802068d07ab67553eddfc5c037057a657 /src/GF/Compile/Export.hs | |
| parent | cf00c0c2a9aa1e333a95f3cd31b243f64bbe7812 (diff) | |
new PGF output format: prolog syntax
* output a PGF grammar in prolog readable syntax
* variables in abstract syntax (hypotheses and lambda-abstractions)
are translated to unique logical variables
* PGF terms in concrete syntax are translated to more prolog-like terms
Diffstat (limited to 'src/GF/Compile/Export.hs')
| -rw-r--r-- | src/GF/Compile/Export.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/GF/Compile/Export.hs b/src/GF/Compile/Export.hs index f3e775ccf..bd4f88df4 100644 --- a/src/GF/Compile/Export.hs +++ b/src/GF/Compile/Export.hs @@ -5,6 +5,7 @@ import PGF.Data (PGF(..)) import PGF.Raw.Print (printTree) import PGF.Raw.Convert (fromPGF) import GF.Compile.GFCCtoHaskell +import GF.Compile.GFCCtoProlog import GF.Compile.GFCCtoJS import GF.Infra.Option import GF.Speech.CFG @@ -32,6 +33,8 @@ exportPGF opts fmt pgf = FmtJavaScript -> multi "js" pgf2js FmtHaskell -> multi "hs" (grammar2haskell name) FmtHaskell_GADT -> multi "hs" (grammar2haskellGADT name) + FmtProlog -> multi "pl" grammar2prolog + FmtProlog_Abs -> multi "pl" grammar2prolog_abs FmtBNF -> single "bnf" bnfPrinter FmtSRGS_XML -> single "grxml" (srgsXmlPrinter sisr) FmtSRGS_XML_NonRec -> single "grxml" srgsXmlNonRecursivePrinter |
