Commit Graph

39 Commits

Author SHA1 Message Date
krasimir
cc69abd7b6 expose the tree visualization via PGF API 2009-10-24 09:03:40 +00:00
krasimir
4e7a5bb297 experimental robust parser 2009-10-23 08:35:32 +00:00
krasimir
fb60cc36d1 added smart constructors for types in PGF 2009-10-15 16:21:26 +00:00
krasimir
bb0be1e964 export the morphology API from PGF 2009-09-28 12:06:20 +00:00
krasimir
57e53d46f6 added wrapper functions for expression manipulations in PGF. The Haskell API now uses the wrappers 2009-09-11 14:42:45 +00:00
krasimir
d294b70395 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
be3dc0ef9e 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
4f878c1f91 export Hypo(..) from PGF 2009-09-07 19:16:27 +00:00
krasimir
54dbfeef48 hopefully complete and correct typechecker in PGF 2009-09-06 20:31:52 +00:00
krasimir
cb6244c820 PGF.Type.Hypo now can represent explicit and implicit arguments and argument without bound variable 2009-07-05 15:44:52 +00:00
krasimir
8b67bc92dd simple profiler for PMCFG 2009-09-05 14:04:39 +00:00
krasimir
3ecd87fc93 add functions and functionType to the PGF API 2009-08-19 20:59:43 +00:00
krasimir
0c46a129e6 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
e5399f2d0e refactor the PGF.Expr type and the evaluation of abstract expressions 2009-05-20 21:03:56 +00:00
aarne
8c4cc8fa5f a dialogue-like editor loop 2008-12-11 15:36:40 +00:00
krasimir
a35919542f remove some redundant imports of GF.Text.UTF8 2008-10-28 15:47:04 +00:00
krasimir
e44448bad0 binary serialization for PGF 2008-10-28 13:57:10 +00:00
bjorn
76931b40fb 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
5b5b91eb0a Added --parser=ondemand flag. 2008-10-20 14:52:50 +00:00
bjorn
e5a595567a 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
d474800250 fixed typo in the Haddock documentation 2008-10-20 12:24:07 +00:00
bjorn
82b30838d2 Reorganize PGF export list to get easier to read haddock. 2008-10-20 12:10:42 +00:00
bjorn
335a8d6977 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
0c442d9ac9 Added Read and Show instances for Type. This required moving some code around. 2008-10-20 11:36:17 +00:00
bjorn
29ca3b692b Replace Category with Type in the PGF API. Added readLanguage and showLanguage. 2008-10-20 11:35:05 +00:00
krasimir
1ddb738459 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
5dfab9e431 export wildCId from PGF.hs 2008-10-20 07:56:32 +00:00
krasimir
ef0ff58516 add parser and pretty printer for types 2008-10-20 07:52:14 +00:00
bjorn
d698a006cc Removed on-demand parser generation from the PGF interpreter. 2008-10-16 10:18:54 +00:00
bjorn
8d832b5b9a 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
b6666624a0 rudimentary abstract syntax type checker and solver in PGF 2008-10-14 14:34:08 +00:00
krasimir
1fc909c101 the new optimized incremental parser and the common subexpression elimination optimization in PMCFG 2008-10-14 08:00:50 +00:00
aarne
8abf7f5c8a 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
8555c65c36 a first version of PGF.AbsCompute 2008-10-10 15:53:17 +00:00
bjorn
f377af2617 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
78cd216243 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
5e1836d4f9 Added languageCode function to the PGF API. 2008-08-18 09:25:43 +00:00
aarne
9d909f32cf fixed decodeUTF8 for pgf; removed old resources from darcs 2008-06-26 19:41:25 +00:00
aarne
c5c6d13546 changed names of resource-1.3; added a note on homepage on release 2008-06-25 16:54:35 +00:00