summaryrefslogtreecommitdiff
path: root/examples/app/AppSwe.gf
diff options
context:
space:
mode:
authoraarne <aarne@chalmers.se>2014-04-02 21:34:40 +0000
committeraarne <aarne@chalmers.se>2014-04-02 21:34:40 +0000
commitcae40d2b0e087d1e635557adc1d62bed37da2bb7 (patch)
tree322c6e277ce958a12800eb79c750301c633f5fa4 /examples/app/AppSwe.gf
parent0a8034c008fec8da01f27c64b6a30d5cb3d68f94 (diff)
Android app sources in examples/app - read README for advice
Diffstat (limited to 'examples/app/AppSwe.gf')
-rw-r--r--examples/app/AppSwe.gf61
1 files changed, 61 insertions, 0 deletions
diff --git a/examples/app/AppSwe.gf b/examples/app/AppSwe.gf
new file mode 100644
index 000000000..cd6f53d2f
--- /dev/null
+++ b/examples/app/AppSwe.gf
@@ -0,0 +1,61 @@
+--# -path=.:src/chunk:src/translator:../examples/phrasebook/gfos
+
+concrete AppSwe of App =
+ TenseSwe,
+ NounSwe - [PPartNP],
+ AdjectiveSwe,
+ NumeralSwe,
+ SymbolSwe [
+ PN, Symb, String, CN, Card, NP, MkSymb, SymbPN, CNNumNP
+ ],
+ ConjunctionSwe,
+ VerbSwe [
+ UseV,ComplVV,SlashV2a,ComplSlash,UseComp,CompAP,CompNP,CompAdv,CompCN
+ ],
+ AdverbSwe,
+ PhraseSwe,
+ SentenceSwe [
+ PredVP,SlashVP,ImpVP,
+ UseCl,UseQCl,UseSlash,SSubjS,UseRCl
+ ],
+ QuestionSwe - [
+ ComplSlashIP,AdvQVP,AddAdvQVP,QuestQVP
+ ],
+ RelativeSwe,
+ IdiomSwe [
+ NP, VP, Tense, Cl, ProgrVP, ExistNP,
+ neutr, sjalv
+ ],
+---- ConstructionSwe,
+
+ ChunkSwe,
+
+ ExtensionsSwe [
+ CompoundCN,AdAdV,UttAdV,ApposNP,
+ MkVPI, MkVPS, PredVPS, that_RP, who_RP
+ ],
+
+ DocumentationSwe,
+ DictionarySwe
+
+ ,PhrasebookSwe - [PSentence, PQuestion, PGreetingMale, PGreetingFemale, GObjectPlease, open_Adv, closed_A, open_A]
+
+ ** open MorphoSwe, ResSwe, ParadigmsSwe, SyntaxSwe, CommonScand, (E = ExtraSwe), Prelude in {
+
+flags
+ literal=Symb ;
+
+-- to suppress punctuation
+lin
+ PSentence, PQuestion = \s -> lin Text (mkUtt s) ;
+ PGreetingMale, PGreetingFemale = \s -> lin Text s ;
+
+ GObjectPlease o = lin Text (mkUtt o) ;
+
+
+lin
+ PhrasePhr p = {s = "+" ++ p.s} | p ;
+
+ Phrase_Chunk p = p ;
+
+}