Commit Graph

35 Commits

Author SHA1 Message Date
hallgren ba10b5b0ca GF.Infra.Modules: keep the modules of a grammar in a finite map instead of a list
This speeds up the compilation of PhrasebookFin.pgf by 12%, mosly by speeding
up calls to lookupModule in calls from lookupParamValues, in calls
from allParamValues.

The invariant "modules are stored in dependency order" is no longer respected!
But the type MGrammar is now abstract, making it easier to maintain this or
other invariants in the future.
2011-08-30 18:54:50 +00:00
hallgren fe2fad8f8d GF.Grammar.Lookup: added function lookupQIdentInfo
+ Avoids some code duplication by combinging lookupModule and lookupIdentInfo.
+ Also removed lookupIdentInfo from export list, since it is not used anywhere
  else.
2011-08-30 14:53:11 +00:00
hallgren a0c785d5d0 PatternMatch.hs: commented out suspicious unused function varsOfPatt 2011-08-30 12:13:50 +00:00
aarne 848373e29e GenIP, GenRP in Extra and any_Quant in ExtraEng 2011-07-21 08:25:04 +00:00
aarne a3924abece Predef functions toUpper, toLower, isUpper 2011-06-02 16:10:46 +00:00
aarne 7361ddea45 make it possible to override opers defined in an interface by syntax 'instance Foo of Bar - [f,g,h]' 2011-03-12 11:24:14 +00:00
aarne f8c4903285 overloaded opers included in sorting of judgements 2011-03-03 15:10:31 +00:00
aarne 0dfbc9b730 the command show_operations to inspect opers in scope 2011-02-28 13:31:04 +00:00
aarne 4a5d8d9f55 option cc -list added 2010-12-14 17:42:42 +00:00
aarne 96433c2914 preparing resource api for multilingual documentation 2010-12-10 08:48:26 +00:00
krasimir f6a7292ad2 bugfix for the abstract operations 2010-11-15 09:38:31 +00:00
krasimir 115b4213d5 operations in the abstract syntax 2010-11-12 19:37:19 +00:00
aarne 709b0518fa restored the .ebnf grammar format 2010-09-24 12:39:49 +00:00
krasimir 5ae7be358d redesign the open-literals API 2010-07-01 08:51:59 +00:00
krasimir e94a1c7408 GF.Grammar.Printer: print expressions with lincat and lin 2010-06-21 15:23:49 +00:00
krasimir 992a7ffb38 Yay!! Direct generation of PMCFG from GF grammar 2010-06-18 12:55:58 +00:00
krasimir d8b049fdf8 rename GF.Grammar.Predef.isPredefCat to isLiteralCat 2010-06-17 15:08:12 +00:00
krasimir 183c878173 GF.Grammar.Lookup.allParamValues now works for table types as well 2010-06-17 09:51:10 +00:00
krasimir e8428b3d67 revert change in GF.Grammar.Printer that was intended for debugging only 2010-06-08 09:53:13 +00:00
krasimir c3f4c3eba7 refactoring in GF.Grammar.Grammar 2010-05-28 14:15:15 +00:00
krasimir f9f2491fcc composOp should iterate under ImplArg 2010-05-28 12:19:04 +00:00
krasimir ee6fdbf68f bugfix in GF.Grammar.Printer 2010-05-28 09:43:58 +00:00
krasimir 6313244eac use the native unicode support from GHC 6.12 2010-04-19 09:38:36 +00:00
aarne 5dfda62ad1 fixed a deep bug in TypeCheck due to swap of arguments; print empty record as <> instead of {} to distinguish from empty record type 2010-03-31 22:05:12 +00:00
krasimir e7f01aa5f0 fix checkInfoType in Parser.y 2010-03-22 23:49:15 +00:00
krasimir bf74f50733 store and propagate the exact source location for all judgements in the grammar. It may not be used accurately in the error messages yet 2010-03-22 21:15:29 +00:00
krasimir 985bb550c0 fix the precedence for patterns ~, - and @ 2010-03-18 19:52:45 +00:00
krasimir f870c4d80f syntax for inaccessible patterns in GF 2010-03-18 19:34:30 +00:00
krasimir 21b10f91cb rule for pretty printing implicit arguments 2010-02-22 20:09:28 +00:00
krasimir d2988814a8 add pretty printing rule for implicit patterns 2010-02-22 20:02:53 +00:00
krasimir 19b17dceb6 no need to keep the list of constructors per category in .gfo 2010-02-16 09:34:02 +00:00
krasimir 64da1c2021 allow negative integers in the grammar syntax 2010-02-08 12:59:22 +00:00
krasimir b90e56a94e fix the tabular printing when there is a V constructor 2010-02-03 17:33:55 +00:00
krasimir be6465a2eb refactor GF.Infra.Modules for better error messages 2010-01-31 15:54:25 +00:00
krasimir f85232947e reorganize the directories under src, and rescue the JavaScript interpreter from deprecated 2009-12-13 18:50:29 +00:00