1
0
forked from GitHub/gf-core
Commit Graph

9036 Commits

Author SHA1 Message Date
hallgren
2ce3e954fd Changes for compatibility with ghc-7.10-rc2
2 modules: Name clashes caused by Applicative-Monad change in Prelude
2 modules: Ambiguities caused by Foldable/Traversable in Prelude
2 modules: Backwards incompatible changes in time-1.5 for defaultTimeLocale
9 modules: {-# LANGUAGE FlexibleContexts #-} (because GHC checks inferred types
           now, in addition to explicitly given type signatures)

Also silenced warnings about tab characters in source files.
2015-02-16 15:05:06 +00:00
andrea.christina.unger
d21d4f442a ß -> ss (according to new spelling) 2015-02-11 16:40:58 +00:00
hallgren
0058a79a8f PGF.Haskell: adding operators for selections from tables 2015-02-12 16:09:33 +00:00
hallgren
43a873b53f Translating linearization functions to Haskell: more simplifications
+ Some additional simplifying rewrites.
+ Use an intermediate representation for Haskell types, for separation of
  concerns and cleaner code.
+ Pretty printer layout tuning
+ Code cleanup.
2015-02-12 16:05:48 +00:00
hallgren
686f570660 Translating linearization functions to Haskell: simplify the generated Haskell code
Introduced an intermediate representation for the generated Haskell expressions.
This allows pretty printing concerns to be separated from conversion concerns,
and makes it easy to apply some simplifying rewrites to the generated
expressions, e.g.

	[x] ++ [y]    ==> [x,y]
	pure f <*> x  ==> f <$> x
	f <$> pure x  ==> pure (f x)
	join (pure x) ==> x
2015-02-11 23:50:19 +00:00
kr.angelov
f527579c46 different words in Bulgarian for egoist/egotist and related 2015-02-11 13:19:03 +00:00
kr.angelov
e6f51d7ec6 fix in the JIT compiler that would hopefully make it work on iOS 2015-02-11 13:07:06 +00:00
kr.angelov
4cd5116514 fix self_N in DictionarySwe.gf 2015-02-11 09:16:45 +00:00
kr.angelov
d053a84b82 add gloat_V in DictionaryBul.gf 2015-02-11 09:11:16 +00:00
hallgren
ad8b6429ec Translating linearization functions to Haskell: support for variants
By adding the flag -haskell=variants to the command line, GF will now generate
linearization functions in Haskell that support variants. Variants are
represented as lists in Haskell.

Variants inside pre { ... } expressions are still ignored.

TODO: apply some monad laws to generate more compact code (using an
intermediate representation of the generated Haskell code, instead of
pretty printing directly from the GF code).
2015-02-09 16:24:33 +00:00
aarne
d9032f8764 news on Summer School on the main page 2015-02-09 09:35:51 +00:00
aarne
0a97989935 started modules for printing dictionary contents for a database 2015-02-09 07:18:28 +00:00
aarne
292cada649 added ExtraSpa.UseComp_estar for uses of estar instead of copula 2015-02-05 07:55:20 +00:00
inari
9a4970fd7a fixes: carry_N, ripple*, begin* 2015-02-02 09:13:46 +00:00
kr.angelov
ad4ef7c99e fixes in DictionaryBul 2015-02-01 13:49:25 +00:00
kr.angelov
43db38832d split spring_N into four senses 2015-02-01 13:48:49 +00:00
kr.angelov
c1ec4f3217 merge afterward_Adv with afterwards_Adv 2015-01-30 13:28:48 +00:00
kr.angelov
1baba82fe5 added hasLinearization in the Haskell binding 2015-01-30 13:05:57 +00:00
kr.angelov
ceb01afa90 merge rumor_N with rumour_N 2015-01-30 12:39:52 +00:00
kr.angelov
76c6d28e73 merge absinth_N with absinthe_N 2015-01-30 09:26:35 +00:00
kr.angelov
3128bd2f85 merge abridgement_N with abridgment_N 2015-01-30 09:19:06 +00:00
kr.angelov
7146b624dc a few fixes in DictionaryBul 2015-01-30 09:04:57 +00:00
kr.angelov
3f4d0aeb86 remove dimensions_N from the dictionaries 2015-01-28 11:23:16 +00:00
aarne
31c286f532 Phrasebook compiled for Japanese; weather_N in DictionaryGer 2015-01-27 13:18:44 +00:00
aarne
3c13e1abb0 added Japanese to Android app. Had to change target=android-20 to 21. 2015-01-21 22:20:25 +00:00
aarne
8e19e201d3 Liza's TopDictionary fixes transferred to DictionaryJpn 2015-01-21 20:54:09 +00:00
lizazim
5601913f8a Jpn21.01.15 2015-01-20 23:28:28 +00:00
hallgren
28803ba322 Wide Coverage Translation Demo: use App13.pgf, adding support for Japanese
Japanese uses the same lexer as Chinese, i.e. every character is a separate
token.
2015-01-21 16:02:37 +00:00
hallgren
ed502c490c PGF2: fixes for named entity callback function 2015-01-21 13:54:48 +00:00
hallgren
614f9f8663 examples/phrasebook/Makefile: include Jpn in 'make forApp' 2015-01-21 12:16:57 +00:00
hallgren
ec8b4fec93 PGF2 & PGFService: enable callbacks for named entities and chunks in the c-parse & c-translate web requests 2015-01-21 10:41:12 +00:00
kr.angelov
60cb95258b fix conflicts 2015-01-21 08:35:20 +00:00
kr.angelov
07eb8fec26 added functionType in the Haskell API to the C runtime 2015-01-20 14:45:02 +00:00
kr.angelov
e0a0ca49e5 other fixes in DictionaryBul.gf 2015-01-20 16:15:56 +00:00
kr.angelov
bca7042d33 remove best_A and than_A from the Dictionaries 2015-01-20 16:02:16 +00:00
kr.angelov
04d92c4b47 fix maiden_A in Bulgarian 2015-01-20 15:57:16 +00:00
hallgren
7577de236f PGF2 & PGFService: work in progress on callbacks for nerc & chunks 2015-01-20 14:57:52 +00:00
aarne
9207b45359 of_Prep in DictionaryJpn guessed as possessive 2015-01-20 13:38:08 +00:00
hallgren
4372b47d2a PGF2: introduced some type synonyms to make type signature more readable 2015-01-20 12:57:33 +00:00
aarne
60ebb2349f inheriting Extra in ExtraJpnAbs 2015-01-19 09:00:57 +00:00
hallgren
240ba80209 Translating linearization functions to Haskell: move a common record type to PGF.Haskell
Move the Haskell representation of the common linearization type {s:T} to the
shared module PGF.Haskell, so that the same overloaded projection function
proj_s can be used for all concrete syntaxes.
2015-01-19 12:43:32 +00:00
lizazim
eab989c1d7 Jpn19.01.15 2015-01-19 09:51:31 +00:00
john.j.camilleri
993014699f Change minibar URL to cloud.gf.org in QuickStart page 2015-01-19 06:45:15 +00:00
aarne
34e19f423e added Swe mkDefDet to build determiners that take completely definite CN's 2015-01-18 18:02:11 +00:00
aarne
86d610bdd1 fixed position of adjective in Scand.UseComparA 2015-01-18 12:52:48 +00:00
inari
aab410b937 fixes in DictionaryFin 2015-01-15 11:10:38 +00:00
aarne
7c9eff32a6 generated todo/TopDictionaryJpn.gf for frequency-based checking 2015-01-14 17:34:12 +00:00
aarne
e443351330 AppJpn.gf and a Makefile entry for App13 which includes Japanese. Everything compiles now. But Japanese has no support for chunks, because ChunkFunctor does not typecheck for it due to its richer Utt type. 2015-01-14 17:22:47 +00:00
aarne
3afa54c465 added stubs for Jpn modules needed in TranslateJpn 2015-01-14 16:55:58 +00:00
hallgren
fbed7c19d5 gf.cabal: include PGF.Haskell 2015-01-14 14:53:28 +00:00