hallgren
eed724271f
GeneratePMCFG: prefix messages about "impossible" errors with 'Internal error:'
...
Just to make them easier to spot when wading through thousands of lines of
warnings...
2012-10-24 17:08:52 +00:00
hallgren
885aaca6de
Consistenly use SourceGrammar instead of [SourceModule] when calling compiler passes
2012-10-19 19:56:00 +00:00
peter.ljunglof
87260365c7
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
8195c36f6f
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
df0fe4363d
buf fix in the compiler for HOAS
2012-02-28 08:10:47 +00:00
kr.angelov
f1cacffc98
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
1f174fe04f
make addSequencesB(V) strict. Otherwise we get stack overflow when compiling LangFre
2011-11-22 20:31:58 +00:00
kr.angelov
bbe42d1e90
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
54019c75ae
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
2262c105ab
bugfix: GeneratePMCFG should initialize the lexicon to empty
2010-12-17 09:11:04 +00:00
krasimir
53306414b6
fixed typo in GeneratePMCFG.hs. fidFloat -> fidVar
2010-10-25 11:48:17 +00:00
krasimir
d3e7095ceb
added missing case for GF.Compile.GeneratePMCFG.evalTerm
2010-08-30 07:54:53 +00:00
krasimir
9aa7c88c5a
native representation for HOAS in PMCFG and incremental type checking of the parse forest
2010-08-09 10:10:08 +00:00
krasimir
e92151caf8
redesign the open-literals API
2010-07-01 08:51:59 +00:00
krasimir
97a9ddb4a7
rename isLiteralFCat -> isPredefFId, fcat(String|Int|Float) -> fid(String|Int|Float)
2010-06-30 07:40:22 +00:00
krasimir
ccf4c037a6
fix the compilation of literal categories in GeneratePMCFG.hs
2010-06-22 11:29:20 +00:00
krasimir
8433afdac9
addFCoercion -> addCoercion in GeneratePMCFG
2010-06-20 08:53:25 +00:00
krasimir
f3f1320416
getFCats -> getFIds in GeneratePMCFG
2010-06-20 08:45:31 +00:00
krasimir
fe6e90e6ce
removed debugging code in GeneratePMCFG.hs
2010-06-20 08:30:00 +00:00
krasimir
2069d9c9eb
Yay!! Direct generation of PMCFG from GF grammar
2010-06-18 12:55:58 +00:00
krasimir
5e2feb4b60
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
625c8e0e03
in verbose mode print the rule names when compiling PMCFG
2010-02-06 18:24:15 +00:00
krasimir
3685595ece
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
a039808141
PGF is now real synchronous PMCFG
2010-01-17 21:35:36 +00:00
krasimir
362f333ebd
now the linearization is completely based on PMCFG
2010-01-17 17:05:21 +00:00
krasimir
190cd6930b
small code cleanup in GeneratePMCFG.hs
2010-01-16 22:10:45 +00:00
krasimir
e5efe28c74
move the definitions of _B and _V to PGF.Macros
2010-01-12 14:36:41 +00:00
krasimir
11218cdbca
store the label names in PMCFG
2010-01-05 08:35:33 +00:00
krasimir
76debee2c1
remove the old parsing code and the -erasing=on flag
2009-12-14 10:54:22 +00:00
krasimir
c92f9d1c0c
reorganize the directories under src, and rescue the JavaScript interpreter from deprecated
2009-12-13 18:50:29 +00:00