1
0
forked from GitHub/gf-core
Commit Graph

94 Commits

Author SHA1 Message Date
krasimir
f6661c3213 remove some more obsolete code 2009-01-23 07:16:46 +00:00
krasimir
d95ca4a103 refactor the GF.Grammar.Grammar syntax. The obsolete constructions are removed 2009-01-19 13:23:03 +00:00
aarne
de8bea8d69 data structures for param values with number, preparing optimized pattern matching in grammar compilation 2008-12-08 07:15:19 +00:00
bjorn
a4f0d4f0d7 Remove ununsed GF.Source.SharedString module. 2008-11-27 08:36:18 +00:00
bjorn
720932d751 Don't use string sharing in LexGF.
Profiling showed that when loading a large .gfo file, shareString was responsible for
15-18% of the CPU time, and a lot of the allocation. Since we already use ByteStrings for 
reading the source files, shareString mostly has the effect of creating lots 
of small ByteStrings instead of one large one. Since the plain size of the .gfo is seldom
a problem (unlike when it was read as a String), it is ok to keep the whole file 
as one ByteString in RAM, and have all tokens point into that.
Profiling after the change showed 15-20% reduction in CPU time and in total allocation.
2008-11-26 16:19:54 +00:00
bjorn
d327d9da6c Added --parser=ondemand flag. 2008-10-20 14:52:50 +00:00
aarne
856c31a64b restored the possibility to compile .cf files to gf 2008-10-15 15:08:38 +00:00
bjorn
849642e9dd Merge ModuleOptions and Options. 2008-10-15 11:55:18 +00:00
bjorn
1ecb4f63e9 Added OPTIONS class to make options handling somewhat nicer. Next, I will merge Flags and ModuleFlags. 2008-10-15 11:38:34 +00:00
bjorn
1e8699d159 Added | syntax for variants. 2008-10-03 07:35:26 +00:00
bjorn
fa69bd8ab3 Regenerate source GF parser from GF.cf. Now, when GF/Source/Makefile is used, no hand-hacking is needed. 2008-10-02 14:11:41 +00:00
bjorn
9e501521b4 Added src/GF/Source/Makefile for regenerating the GF source parser from GF.cf. 2008-10-02 13:42:24 +00:00
bjorn
86a30ef992 Converted GF/Source/*.hs to Unix line endings, to be able to see what happens when I regenerated the files. 2008-10-02 13:23:54 +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
aarne
b96b36f43d removed src for 2.9 2008-06-25 16:43:48 +00:00
krasimir
92917e6e5e Use Happy grammar for imports extraction instead of hand made shallow crapy grammar 2008-04-22 08:33:23 +00:00
krasimir
21e5a60ce2 ByteString.readFile should be used instead of readFileStrict. This fixes the problem with the open files 2008-04-17 12:56:46 +00:00
aarne
9a6f1720a9 miising ErrM added... 2008-03-18 15:42:51 +00:00
aarne
6cbb8086c8 putting pattern macros in place (not properly tested yet) 2008-03-15 21:02:59 +00:00
aarne
c73bc4f996 switched to unmodified BNFC-generated components 2008-03-15 14:53:42 +00:00
aarne
d550049873 finalizing experiments with Finnish nouns 2008-01-04 15:54:40 +00:00
aarne
ba938b3530 started experimental new module syntax 2007-11-27 14:23:11 +00:00
bringert
ed4b43961d Added explicit export list to ParGF. 2007-11-01 10:10:30 +00:00
bringert
dafbcb7f9b Regenerated ParGF.y with current BNFC, and regenerated ParGF.hs with Happy 1.17. This seems to fix some of the less informative parsing error messages. 2007-11-01 10:08:32 +00:00
aarne
5a881a90dd gfc now generates gfcc with deptypes, defs, printnames 2007-10-08 12:45:39 +00:00
aarne
6e4104ffa9 compact printing of gf files 2007-09-20 21:51:54 +00:00
aarne
e3f1210369 extended functor syntax 2007-06-19 18:12:35 +00:00
aarne
4704c68b34 marked deprecated productions in GF.cf 2007-06-17 14:16:01 +00:00
aarne
035689f8c7 started direct compiler from GF to GFCC 2007-05-15 16:35:13 +00:00
aarne
8e07d61ccf overload syntax; type printing in CheckGrammar 2006-11-18 16:54:23 +00:00
aarne
580f7d7995 oper overloading: first implemenatation using records 2006-11-17 13:40:55 +00:00
aarne
546e778ba8 internal representation for param value index 2006-11-14 19:13:33 +00:00
aarne
39a31d07d5 the Error type; better lexer error reporting 2006-09-01 15:11:22 +00:00
aarne
04933ef3c9 the EOF error changed to more informative lexer error msg 2006-08-28 19:36:41 +00:00
aarne
750ef2ca30 bug fix in with-modules and gr checker; factoring out cats to Common 2006-05-23 22:20:00 +00:00
aarne
2657c51e04 example based also with treebank, with real term parser 2006-03-04 22:14:33 +00:00
aarne
d133e0353c regular expression patterns 2006-01-07 14:39:40 +00:00
aarne
4e42d73ee5 regex patterns for tokens 2006-01-07 12:26:11 +00:00
aarne
88b09b8ae0 concatenation string patterns 2006-01-06 21:49:25 +00:00
aarne
59ee1bfd7c full disjunctive patterns ; more prec levels for Exp 2005-12-20 22:38:38 +00:00
aarne
a6dc944356 opers in cnc 2005-12-06 12:39:36 +00:00
aarne
dea5158cbf floats in GF and GFC (parsing user input still doesn't work) 2005-12-02 13:13:14 +00:00
aarne
1d83b32f61 data defs 2005-10-04 10:05:06 +00:00
aarne
1ea059cdcb def and List 2005-10-02 19:50:19 +00:00
aarne
3a3342a0f9 restricted inheritance almost implemented 2005-05-30 20:08:14 +00:00
aarne
5bf9a7fe70 BinTree vs. FiniteMap 2005-05-30 17:39:43 +00:00
aarne
24d5b02523 a dialogue resource started 2005-05-30 15:22:42 +00:00
aarne
9a756a3ac1 romance Inf ; %, included 2005-05-26 13:18:17 +00:00
bringert
71c50e18d3 Added new GF.cf. 2005-05-26 08:26:18 +00:00
aarne
908add0d17 printing % 2005-05-25 18:59:59 +00:00