From 65a10ddb1343c50ff6da73334e803ea649ce376a Mon Sep 17 00:00:00 2001 From: "ramona.enache" Date: Wed, 28 Apr 2010 14:56:07 +0000 Subject: abstract syntax for the phrasebook - extended version --- examples/phrasebook/Sentences.gf | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'examples/phrasebook/Sentences.gf') diff --git a/examples/phrasebook/Sentences.gf b/examples/phrasebook/Sentences.gf index b08c2fe0d..4d0b88612 100644 --- a/examples/phrasebook/Sentences.gf +++ b/examples/phrasebook/Sentences.gf @@ -73,6 +73,20 @@ abstract Sentences = Numeral ** { WherePlace : Place -> Question ; -- where is the bar WherePerson : Person -> Question ; -- where are you +--** added + HowFar : Place -> Question ; -- how far is the zoo ? + HowFarFrom : Place -> Place -> Question ; -- how far is the center from the hotel ? + HowFarFromBy : Place -> Place -> ByTransp -> Question ; -- how far is the airport from the hotel by taxi ? + HowFarBy : Place -> Transp -> Question ; -- how far is the museum by bus ? + + + By : Transp -> ByTransp ; -- by bus + + WhichTranspPlace : Transp -> Place -> Question ; -- which bus goes to the best amusement park ? + IsTranspPlace : Transp -> Place -> Question ; -- is there a metro to the airport ? + +-- ** + -- This is the way to build propositions about persons. PropAction : Action -> Proposition ; -- (you (are|aren't) | are you) Swedish @@ -98,6 +112,21 @@ abstract Sentences = Numeral ** { AmountCurrency : Number -> Currency -> Price ; -- five euros ThePlace : PlaceKind -> Place ; -- the bar +-- ** added : + APlace : PlaceKind -> Place ; + + + SuperlPlace : SuperlModif -> PlaceKind -> Place ; -- the best bar + + + TheBest : SuperlModif ; + TheClosest : SuperlModif ; + TheCheapest : SuperlModif ; + TheWorst : SuperlModif ; + MostExpensive : SuperlModif ; + MostPopular : SuperlModif ; + +-- ** IMale, IFemale, -- I, said by man/woman (affects agreement) YouFamMale, YouFamFemale, -- familiar you, said to man/woman (affects agreement) -- cgit v1.2.3