1
0
forked from GitHub/gf-core
Commit Graph

40 Commits

Author SHA1 Message Date
krasimir
ba1b602053 change PGF.categories to return list of identifiers instead of types 2009-11-26 14:43:31 +00:00
krasimir
59172a0380 expose the tree visualization via PGF API 2009-10-24 09:03:40 +00:00
krasimir
d5f4669aec experimental robust parser 2009-10-23 08:35:32 +00:00
krasimir
70ec6632fd added smart constructors for types in PGF 2009-10-15 16:21:26 +00:00
krasimir
288ef038f2 export the morphology API from PGF 2009-09-28 12:06:20 +00:00
krasimir
509d0cf8d8 added wrapper functions for expression manipulations in PGF. The Haskell API now uses the wrappers 2009-09-11 14:42:45 +00:00
krasimir
1cdf171251 polish the PGF API and make Expr and Type abstract types. Tree is a type synonym of Expr 2009-09-11 13:45:34 +00:00
krasimir
28a7c4b5c7 now the datatype Tree is only internal. All API functions are working with Expr directly. Commands gt, gr, p and rf filter out the output via the typechecker 2009-09-08 08:40:28 +00:00
krasimir
9940c44259 export Hypo(..) from PGF 2009-09-07 19:16:27 +00:00
krasimir
b97d6abb81 hopefully complete and correct typechecker in PGF 2009-09-06 20:31:52 +00:00
krasimir
279ff9a6d2 PGF.Type.Hypo now can represent explicit and implicit arguments and argument without bound variable 2009-07-05 15:44:52 +00:00
krasimir
95a577d269 simple profiler for PMCFG 2009-09-05 14:04:39 +00:00
krasimir
8da1aab8ff add functions and functionType to the PGF API 2009-08-19 20:59:43 +00:00
krasimir
e5c8636a5f now in the command shell the primary type in the pipe is Expr not Tree. This makes the pt -compute and pt -typecheck more interesting 2009-05-23 21:33:52 +00:00
krasimir
7db4b641ce refactor the PGF.Expr type and the evaluation of abstract expressions 2009-05-20 21:03:56 +00:00
aarne
bd21e6e1a0 a dialogue-like editor loop 2008-12-11 15:36:40 +00:00
krasimir
03d86ba05c remove some redundant imports of GF.Text.UTF8 2008-10-28 15:47:04 +00:00
krasimir
ebd98056ce binary serialization for PGF 2008-10-28 13:57:10 +00:00
bjorn
50b2b453f3 Changed PGF.complete to include the given input if it can be parsed as a complete tree. 2008-10-28 12:28:46 +00:00
bjorn
d327d9da6c Added --parser=ondemand flag. 2008-10-20 14:52:50 +00:00
bjorn
05343e78a9 Added on-demand parser generation back in. It's pretty unproblematic, and can help with memory use in some cases. 2008-10-20 14:05:39 +00:00
krasimir
399d1bb09a fixed typo in the Haddock documentation 2008-10-20 12:24:07 +00:00
bjorn
88eed35c18 Reorganize PGF export list to get easier to read haddock. 2008-10-20 12:10:42 +00:00
bjorn
d41616dd6a Added Read and Show instances for CId. Also added readCId :: String -> Maybe CId, and use that for readLanguage. 2008-10-20 11:59:31 +00:00
bjorn
2174690c5e Added Read and Show instances for Type. This required moving some code around. 2008-10-20 11:36:17 +00:00
bjorn
a26290659d Replace Category with Type in the PGF API. Added readLanguage and showLanguage. 2008-10-20 11:35:05 +00:00
krasimir
eb0fefec28 preparation for dep. types. The -cat option can take any type instead of just a category. The PGF API is generalized as well. 2008-10-20 08:42:39 +00:00
krasimir
96bea5a0bb export wildCId from PGF.hs 2008-10-20 07:56:32 +00:00
krasimir
abe8da32fd add parser and pretty printer for types 2008-10-20 07:52:14 +00:00
bjorn
d10c8bd20a Removed on-demand parser generation from the PGF interpreter. 2008-10-16 10:18:54 +00:00
bjorn
dc3f283344 Moved parser building in the PGF interpreter to PGF.hs from PGF/Raw/Convert.hs, in preparation for doing something more clever about it (e.g. looking at the parser flag). 2008-10-16 10:13:25 +00:00
aarne
e4dc63f665 rudimentary abstract syntax type checker and solver in PGF 2008-10-14 14:34:08 +00:00
krasimir
4573d10442 the new optimized incremental parser and the common subexpression elimination optimization in PMCFG 2008-10-14 08:00:50 +00:00
aarne
54f8fd9ec1 added a paraphrase method applying def's in both directions, in subtrees, and step by step; doesn't work properly yet 2008-10-13 16:41:21 +00:00
aarne
4e795bab9b a first version of PGF.AbsCompute 2008-10-10 15:53:17 +00:00
bjorn
804232aebc Added 'complete' function to the PGF API. This is a higher-level API to the completion functionality. 2008-09-26 13:17:21 +00:00
bjorn
7007a875e3 Added canParse function to the PGF API. Make parseAllLang and parseAll skip languages which don't have parsers, instead of always throwing exceptions when some language is missing a parser. 2008-08-18 09:26:24 +00:00
bjorn
3a21fcd4ba Added languageCode function to the PGF API. 2008-08-18 09:25:43 +00:00
aarne
ba63991007 fixed decodeUTF8 for pgf; removed old resources from darcs 2008-06-26 19:41:25 +00:00
aarne
e9e80fc389 changed names of resource-1.3; added a note on homepage on release 2008-06-25 16:54:35 +00:00