summaryrefslogtreecommitdiff
path: root/grammars/resource/finnish/ResFin.gf
diff options
context:
space:
mode:
authorbjorn <bjorn@bringert.net>2008-08-14 07:58:04 +0000
committerbjorn <bjorn@bringert.net>2008-08-14 07:58:04 +0000
commit77270a010a0b453e9a84c3e62db7cfd22e49d55d (patch)
treed17682a545d6ac1e68ff49b8c20964182794baf7 /grammars/resource/finnish/ResFin.gf
parent0bbb906141711767678f82b15a7b43e65e0b5bd6 (diff)
Remove the grammars directory. It was full of old grammars that don't compile these days. See the old source distributions if you want them.
Diffstat (limited to 'grammars/resource/finnish/ResFin.gf')
-rw-r--r--grammars/resource/finnish/ResFin.gf222
1 files changed, 0 insertions, 222 deletions
diff --git a/grammars/resource/finnish/ResFin.gf b/grammars/resource/finnish/ResFin.gf
deleted file mode 100644
index d29eb7195..000000000
--- a/grammars/resource/finnish/ResFin.gf
+++ /dev/null
@@ -1,222 +0,0 @@
---1 The Top-Level Finnish Resource Grammar
---
--- Aarne Ranta 2002 -- 2003
---
--- This is the Finnish concrete syntax of the multilingual resource
--- grammar. Most of the work is done in the file $syntax.Fin.gf$.
--- However, for the purpose of documentation, we make here explicit the
--- linearization types of each category, so that their structures and
--- dependencies can be seen.
--- Another substantial part are the linearization rules of some
--- structural words.
---
--- The users of the resource grammar should not look at this file for the
--- linearization rules, which are in fact hidden in the document version.
--- They should use $resource.Abs.gf$ to access the syntactic rules.
--- This file can be consulted in those, hopefully rare, occasions in which
--- one has to know how the syntactic categories are
--- implemented. The parameter types are defined in $TypesFin.gf$.
-
-concrete ResFin of ResAbs = open Prelude, SyntaxFin in {
-
-flags
- startcat=Phr ;
- lexer=unglue ;
- unlexer=glue ;
-
-lincat
- N = CommNoun ;
- -- = {s : NForm => Str ; g : Gender}
- CN = CommNounPhrase ;
- NP = {s : NPForm => Str ; n : Number ; p : NPPerson} ;
- PN = {s : Case => Str} ;
- Det = {s : Gender => Case => Str ; n : Number} ;
- Fun = Function ;
- -- = CommNounPhrase ** {c : NPForm} ;
- Fun2 = Function ** {c2 : NPForm} ;
-
- Adj1 = Adjective ;
- -- = CommonNoun
- Adj2 = Adjective ** {c : NPForm} ;
- AdjDeg = {s : Degree => NForm => Str} ;
- AP = {s : AdjPos => Number => Case => Str} ;
-
- V = Verb ;
- -- = {s : VForm => Str}
- VP = Verb ** {s2 : VForm => Str ; c : ComplCase} ;
- TV = TransVerb ;
- -- = Verb ** {s3, s4 : Str ; c : ComplCase} ;
- V3 = TransVerb ** {s5, s6 : Str ; c2 : ComplCase} ;
- VS = Verb ;
-
- AdV = {s : Str} ;
-
- S = Sentence ;
- -- = {s : Str} ;
- Slash = Sentence ** {s2 : Str ; c : Case} ;
-
- RP = {s : Number => Case => Str} ;
- RC = {s : Number => Str} ;
-
- IP = {s : NPForm => Str ; n : Number} ;
- Qu = {s : Str} ;
- Imp = {s : Number => Str} ;
- Phr = {s : Str} ;
-
- Conj = {s : Str ; n : Number} ;
- ConjD = {s1 : Str ; s2 : Str ; n : Number} ;
-
- ListS = {s1 : Str ; s2 : Str} ;
- ListAP = {s1,s2 : AdjPos => Number => Case => Str} ;
- ListNP = {s1,s2 : NPForm => Str ; n : Number ; p : NPPerson} ;
-
---.
-
-lin
- UseN = noun2CommNounPhrase ;
- ModAdj = modCommNounPhrase ;
- ModGenOne = npGenDet singular ;
- ModGenMany = npGenDet plural ;
- UsePN = nameNounPhrase ;
- UseFun = funAsCommNounPhrase ;
- AppFun = appFunComm ;
- AppFun2 = appFun2 ;
- AdjP1 = adj2adjPhrase ;
- ComplAdj = complAdj ;
- PositAdjP = positAdjPhrase ;
- ComparAdjP = comparAdjPhrase ;
- SuperlNP = superlNounPhrase ;
-
- DetNP = detNounPhrase ;
- IndefOneNP = indefNounPhrase singular ;
- IndefManyNP = indefNounPhrase plural ;
- DefOneNP = defNounPhrase singular ;
- DefManyNP = defNounPhrase plural ;
-
- CNthatS = nounThatSentence ;
-
- PredVP = predVerbPhrase ;
- PosV = predVerb True ;
- NegV = predVerb False ;
- PosA = predAdjective True ;
- NegA = predAdjective False ;
- PosCN = predCommNoun True ;
- NegCN = predCommNoun False ;
- PosTV = complTransVerb True ;
- NegTV = complTransVerb False ;
- PosV3 = complDitransVerb True ;
- NegV3 = complDitransVerb False ;
- PosPassV = passVerb True ;
- NegPassV = passVerb False ;
- PosNP = predNounPhrase True ;
- NegNP = predNounPhrase False ;
- PosVS = complSentVerb True ;
- NegVS = complSentVerb False ;
- VTrans = transAsVerb ;
-
- AdvVP = adVerbPhrase ;
- LocNP = locativeNounPhrase ;
- AdvCN = advCommNounPhrase ;
- AdvAP = advAdjPhrase ;
-
- PosSlashTV = slashTransVerb True ;
- NegSlashTV = slashTransVerb False ;
- OneVP = passPredVerbPhrase ;
-
- IdRP = identRelPron ;
- FunRP = funRelPron ;
- RelVP = relVerbPhrase ;
- RelSlash = relSlash ;
- ModRC = modRelClause ;
- RelSuch = relSuch ;
-
- WhoOne = intPronWho singular ;
- WhoMany = intPronWho plural ;
- WhatOne = intPronWhat singular ;
- WhatMany = intPronWhat plural ;
- FunIP = funIntPron ;
- NounIPOne = nounIntPron singular ;
- NounIPMany = nounIntPron plural ;
-
- QuestVP = questVerbPhrase ;
- IntVP = intVerbPhrase ;
- IntSlash = intSlash ;
- QuestAdv = questAdverbial ;
-
- ImperVP = imperVerbPhrase ;
-
- IndicPhrase = indicUtt ;
- QuestPhrase = interrogUtt ;
- ImperOne = imperUtterance singular ;
- ImperMany = imperUtterance plural ;
-
- AdvS = advSentence ;
-
-lin
- TwoS = twoSentence ;
- ConsS = consSentence ;
- ConjS = conjunctSentence ;
- ConjDS = conjunctDistrSentence ;
-
- TwoAP = twoAdjPhrase ;
- ConsAP = consAdjPhrase ;
- ConjAP = conjunctAdjPhrase ;
- ConjDAP = conjunctDistrAdjPhrase ;
-
- TwoNP = twoNounPhrase ;
- ConsNP = consNounPhrase ;
- ConjNP = conjunctNounPhrase ;
- ConjDNP = conjunctDistrNounPhrase ;
-
- SubjS = subjunctSentence ;
- SubjImper = subjunctImperative ;
- SubjQu = subjunctQuestion ;
- SubjVP = subjunctVerbPhrase ;
-
- PhrNP = useNounPhrase ;
- PhrOneCN = useCommonNounPhrase singular ;
- PhrManyCN = useCommonNounPhrase plural ;
- PhrIP ip = ip ;
- PhrIAdv ia = ia ;
-
- OnePhr p = p ;
- ConsPhr = cc2 ;
-
-lin
- INP = pronNounPhrase pronMina ;
- ThouNP = pronNounPhrase pronSina ;
- HeNP = pronNounPhrase pronHan ;
- SheNP = pronNounPhrase pronHan ;
- ItNP = nameNounPhrase pronSe ;
- WeNP = pronNounPhrase pronMe ;
- YeNP = pronNounPhrase pronTe ;
- YouNP = pronNounPhrase pronTe ;
- TheyNP = pronNounPhrase pronHe ; --- ne
-
- EveryDet = jokainenDet ;
- AllDet = kaikkiDet ;
- WhichDet = mikaDet ;
- MostDet = useimmatDet ;
-
- HowIAdv = ss "kuinka" ;
- WhenIAdv = ss "koska" ;
- WhereIAdv = ss "missä" ;
- WhyIAdv = ss "miksi" ;
-
- AndConj = ss "ja" ** {n = Pl} ;
- OrConj = ss "tai" ** {n = Sg} ;
- BothAnd = sd2 "sekä" "että" ** {n = Pl} ;
- EitherOr = sd2 "joko" "tai" ** {n = Sg} ;
- NeitherNor = sd2 "ei" "eikä" ** {n = Sg} ;
- IfSubj = ss "jos" ;
- WhenSubj = ss "kun" ;
-
- PhrYes = ss ("Kyllä" ++ stopPunct) ;
- PhrNo = ss ("Ei" ++ stopPunct) ;
-
- VeryAdv = ss "hyvin" ;
- TooAdv = ss "liian" ;
- OtherwiseAdv = ss "muuten" ;
- ThereforeAdv = ss "siksi" ;
-
-} ;