From cae40d2b0e087d1e635557adc1d62bed37da2bb7 Mon Sep 17 00:00:00 2001 From: aarne Date: Wed, 2 Apr 2014 21:34:40 +0000 Subject: Android app sources in examples/app - read README for advice --- examples/app/AppHin.gf | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 examples/app/AppHin.gf (limited to 'examples/app/AppHin.gf') diff --git a/examples/app/AppHin.gf b/examples/app/AppHin.gf new file mode 100644 index 000000000..f097600da --- /dev/null +++ b/examples/app/AppHin.gf @@ -0,0 +1,61 @@ +--# -path=.:src/chunk:src/translator:../examples/phrasebook/gfos + +concrete AppHin of App = + TenseX - [AdN,Adv,SC,PPos,PNeg], + NounHin - [PPartNP], + AdjectiveHin, + NumeralHin, + SymbolHin [ + PN, Symb, String, CN, Card, NP, MkSymb, SymbPN, CNNumNP + ], + ConjunctionHin, + VerbHin [ + UseV,ComplVV,SlashV2a,ComplSlash,UseComp,CompAP,CompNP,CompAdv,CompCN + ], + AdverbHin, + PhraseHin, + SentenceHin [ + PredVP,SlashVP,ImpVP, + UseCl,UseQCl,UseSlash,SSubjS,UseRCl + ], + QuestionHin - [ + ComplSlashIP,AdvQVP,AddAdvQVP,QuestQVP + ], + RelativeHin, + IdiomHin [ + NP, VP, Tense, Cl, ProgrVP, ExistNP, + neutr, sjalv + ], +---- ConstructionHin, + + ChunkHin, + + ExtensionsHin [ + CompoundCN,AdAdV,UttAdV,ApposNP, + MkVPI, MkVPS, PredVPS, that_RP, who_RP + ], + + DocumentationHin, + DictionaryHin + + ,PhrasebookHin - [PSentence, PQuestion, PGreetingMale, PGreetingFemale, GObjectPlease, open_Adv, closed_A, open_A] + + ** open MorphoHin, ResHin, ParadigmsHin, SyntaxHin, CommonScand, (E = ExtraHin), 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 ; + +} -- cgit v1.2.3