peter.ljunglof
a7de16c34b
Added an O(n log n) version of nub
...
The new nub is called nub', and it replaces the old sortNub which was
not lazy and did not retain the order between the elements.
2012-08-29 21:45:10 +00:00
hallgren
47c116b5a6
Workaround for bug in ghc-7.2.2
...
An apparent bug in ghc-7.2.2 causes the type Value to be exported from PGF.Data.
Workaround: restrict the imports from PGF.Data in GF.Command.Abstract and
GF.Compile.GeneratePMCFG to avoid the clash with locally defined type Value.
(ghc-7.0.4 and ghc-7.4.1 appear to be free from this bug.)
2012-03-26 23:56:56 +00:00
kr.angelov
eb4bfb008e
buf fix in the compiler for HOAS
2012-02-28 08:10:47 +00:00
kr.angelov
c05be64838
now if some module is compiled with -no-pmcfg then the PMCFG code is generated at the end during the linking phase. Now the default compilation of the libraries with cabal is with -no-pmcfg.
2011-11-24 14:23:04 +00:00
kr.angelov
26d61354dd
make addSequencesB(V) strict. Otherwise we get stack overflow when compiling LangFre
2011-11-22 20:31:58 +00:00
kr.angelov
416d231c5e
Now PMCFG is compiled per module and at the end we only link it. The new compilation schema is few times faster.
2011-11-10 14:09:41 +00:00
kr.angelov
734c66710e
merge GF.Infra.Modules and GF.Grammar.Grammar. This is a preparation for the separate PGF building
2011-11-02 13:57:11 +00:00
krasimir
71e0ec4d41
bugfix: GeneratePMCFG should initialize the lexicon to empty
2010-12-17 09:11:04 +00:00
krasimir
84736e5712
fixed typo in GeneratePMCFG.hs. fidFloat -> fidVar
2010-10-25 11:48:17 +00:00
krasimir
fad0512c94
added missing case for GF.Compile.GeneratePMCFG.evalTerm
2010-08-30 07:54:53 +00:00
krasimir
b0e110cf4f
native representation for HOAS in PMCFG and incremental type checking of the parse forest
2010-08-09 10:10:08 +00:00
krasimir
5ae7be358d
redesign the open-literals API
2010-07-01 08:51:59 +00:00
krasimir
eb0bd54e68
rename isLiteralFCat -> isPredefFId, fcat(String|Int|Float) -> fid(String|Int|Float)
2010-06-30 07:40:22 +00:00
krasimir
a6b8c11905
fix the compilation of literal categories in GeneratePMCFG.hs
2010-06-22 11:29:20 +00:00
krasimir
7e9b1ebfa4
addFCoercion -> addCoercion in GeneratePMCFG
2010-06-20 08:53:25 +00:00
krasimir
9995a834ae
getFCats -> getFIds in GeneratePMCFG
2010-06-20 08:45:31 +00:00
krasimir
a77815e35a
removed debugging code in GeneratePMCFG.hs
2010-06-20 08:30:00 +00:00
krasimir
992a7ffb38
Yay!! Direct generation of PMCFG from GF grammar
2010-06-18 12:55:58 +00:00
krasimir
6eda1118fc
since now we don't do common subexpression elimination for PGF we could simplify the PMCFG generation
2010-05-26 09:37:32 +00:00
krasimir
2544ea8c8a
in verbose mode print the rule names when compiling PMCFG
2010-02-06 18:24:15 +00:00
krasimir
890d455793
cleanup the code of the PGF interpreter and polish the binary serialization to match the preliminary specification
2010-01-27 09:39:14 +00:00
krasimir
9b362ff231
PGF is now real synchronous PMCFG
2010-01-17 21:35:36 +00:00
krasimir
af13bae2df
now the linearization is completely based on PMCFG
2010-01-17 17:05:21 +00:00
krasimir
389b55103c
small code cleanup in GeneratePMCFG.hs
2010-01-16 22:10:45 +00:00
krasimir
cf22bd094f
move the definitions of _B and _V to PGF.Macros
2010-01-12 14:36:41 +00:00
krasimir
ee3ce9694c
store the label names in PMCFG
2010-01-05 08:35:33 +00:00
krasimir
c036459214
remove the old parsing code and the -erasing=on flag
2009-12-14 10:54:22 +00:00
krasimir
f85232947e
reorganize the directories under src, and rescue the JavaScript interpreter from deprecated
2009-12-13 18:50:29 +00:00