krasimir
5d06550283
CheckGrammar is now using the printer in GF.Grammar.Printer. Fixed bug that was hiding the warnings
2009-09-14 12:16:02 +00:00
aarne
13644fc261
made .cf grammars take their startcat from the first rule
2009-06-23 10:13:12 +00:00
krasimir
f9c877eec6
some work on evaluation with abstract expressions in PGF
2009-05-22 18:54:51 +00:00
krasimir
640a388253
fix the handling of wildcards
2009-05-22 21:47:32 +00:00
krasimir
e5399f2d0e
refactor the PGF.Expr type and the evaluation of abstract expressions
2009-05-20 21:03:56 +00:00
krasimir
6f733230dd
use new parser which supports the syntax in GF.Grammar.Grammar directly
2009-03-16 14:10:30 +00:00
krasimir
0296492f9d
Perhaps -> Maybe refactoring and better error message for conflicts during module update
2009-02-23 12:42:44 +00:00
krasimir
99c430e5f5
bug fix in the module dependencies checker
2009-01-31 10:49:01 +00:00
krasimir
d5f4482e39
remove some more obsolete code
2009-01-23 07:16:46 +00:00
krasimir
4f093feb49
refactor the GF.Grammar.Grammar syntax. The obsolete constructions are removed
2009-01-19 13:23:03 +00:00
aarne
ca4c63c58f
data structures for param values with number, preparing optimized pattern matching in grammar compilation
2008-12-08 07:15:19 +00:00
bjorn
0619824fa3
Remove ununsed GF.Source.SharedString module.
2008-11-27 08:36:18 +00:00
bjorn
832f25fc2a
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
5b5b91eb0a
Added --parser=ondemand flag.
2008-10-20 14:52:50 +00:00
aarne
65bafe2a3b
restored the possibility to compile .cf files to gf
2008-10-15 15:08:38 +00:00
bjorn
58381a95a4
Merge ModuleOptions and Options.
2008-10-15 11:55:18 +00:00
bjorn
50ed99e9b1
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
4b41039a5d
Added | syntax for variants.
2008-10-03 07:35:26 +00:00
bjorn
f362f6ad01
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
2fc5c7f579
Added src/GF/Source/Makefile for regenerating the GF source parser from GF.cf.
2008-10-02 13:42:24 +00:00
bjorn
c21d0d10b8
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
c5c6d13546
changed names of resource-1.3; added a note on homepage on release
2008-06-25 16:54:35 +00:00
aarne
7d721eb16e
removed src for 2.9
2008-06-25 16:43:48 +00:00
krasimir
082668f182
Use Happy grammar for imports extraction instead of hand made shallow crapy grammar
2008-04-22 08:33:23 +00:00
krasimir
4a8346086d
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
f7b3e6d69d
miising ErrM added...
2008-03-18 15:42:51 +00:00
aarne
2a314b679d
putting pattern macros in place (not properly tested yet)
2008-03-15 21:02:59 +00:00
aarne
cccccd5ec1
switched to unmodified BNFC-generated components
2008-03-15 14:53:42 +00:00
aarne
799fd2c3e5
finalizing experiments with Finnish nouns
2008-01-04 15:54:40 +00:00
aarne
64b7f375c5
started experimental new module syntax
2007-11-27 14:23:11 +00:00
bringert
6f0009b11b
Added explicit export list to ParGF.
2007-11-01 10:10:30 +00:00
bringert
851ca1c544
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
91a1d04def
gfc now generates gfcc with deptypes, defs, printnames
2007-10-08 12:45:39 +00:00
aarne
121c247d15
compact printing of gf files
2007-09-20 21:51:54 +00:00
aarne
219c686633
extended functor syntax
2007-06-19 18:12:35 +00:00
aarne
adf0f8e83e
marked deprecated productions in GF.cf
2007-06-17 14:16:01 +00:00
aarne
1317c89fd4
started direct compiler from GF to GFCC
2007-05-15 16:35:13 +00:00
aarne
9d3fd3c9cf
overload syntax; type printing in CheckGrammar
2006-11-18 16:54:23 +00:00
aarne
3f30dfd347
oper overloading: first implemenatation using records
2006-11-17 13:40:55 +00:00
aarne
4b28aa89fa
internal representation for param value index
2006-11-14 19:13:33 +00:00
aarne
fda42f61c4
the Error type; better lexer error reporting
2006-09-01 15:11:22 +00:00
aarne
66d3c75031
the EOF error changed to more informative lexer error msg
2006-08-28 19:36:41 +00:00
aarne
1595e31a28
bug fix in with-modules and gr checker; factoring out cats to Common
2006-05-23 22:20:00 +00:00
aarne
8d4c4307b9
example based also with treebank, with real term parser
2006-03-04 22:14:33 +00:00
aarne
69e1668f16
regular expression patterns
2006-01-07 14:39:40 +00:00
aarne
16a4868efa
regex patterns for tokens
2006-01-07 12:26:11 +00:00
aarne
731aea1a03
concatenation string patterns
2006-01-06 21:49:25 +00:00
aarne
a7d36ea1f8
full disjunctive patterns ; more prec levels for Exp
2005-12-20 22:38:38 +00:00
aarne
fc0ec0c0cd
opers in cnc
2005-12-06 12:39:36 +00:00
aarne
ef504a4cbe
floats in GF and GFC (parsing user input still doesn't work)
2005-12-02 13:13:14 +00:00