forked from GitHub/gf-core
use oper in examples
This commit is contained in:
@@ -12,12 +12,12 @@ param Num = sg | pl ;
|
|||||||
param Kas = nom | acc ;
|
param Kas = nom | acc ;
|
||||||
param DepNum = depnum | cnum Num ;
|
param DepNum = depnum | cnum Num ;
|
||||||
|
|
||||||
lintype SS = {s : Str} ;
|
oper SS = {s : Str} ;
|
||||||
lintype SSDep = {s : Num => Sex => Str} ; -- needs Num and Sex
|
oper SSDep = {s : Num => Sex => Str} ; -- needs Num and Sex
|
||||||
lintype SSSrc = {s : Str ; n : Num ; x : Sex} ; -- gives Num and Sex
|
oper SSSrc = {s : Str ; n : Num ; x : Sex} ; -- gives Num and Sex
|
||||||
lintype SSSrc2 = {s : Num => Sex => Str ; n : DepNum ; x : Sex} ; -- gives and needs
|
oper SSSrc2 = {s : Num => Sex => Str ; n : DepNum ; x : Sex} ; -- gives and needs
|
||||||
lintype SSDep2 = {s : DepNum => Sex => Num => Sex => Str} ; -- needs Auth's & Recp's
|
oper SSDep2 = {s : DepNum => Sex => Num => Sex => Str} ; -- needs Auth's & Recp's
|
||||||
lintype SSSrcNum = {s : Str ; n : Num} ; -- gives Num only
|
oper SSSrcNum = {s : Str ; n : Num} ; -- gives Num only
|
||||||
|
|
||||||
|
|
||||||
oper
|
oper
|
||||||
|
|||||||
@@ -15,12 +15,12 @@ param Kas = nom | acc ;
|
|||||||
param DepNum = depnum | cnum Num ;
|
param DepNum = depnum | cnum Num ;
|
||||||
param DepGen = depgen | cgen Gen ;
|
param DepGen = depgen | cgen Gen ;
|
||||||
|
|
||||||
lintype SS = {s : Str} ;
|
oper SS = {s : Str} ;
|
||||||
lintype SSDep = {s : Num => Gen => Str} ; -- needs Num and Gen
|
oper SSDep = {s : Num => Gen => Str} ; -- needs Num and Gen
|
||||||
lintype SSSrc = {s : Str ; n : Num ; g : Gen} ; -- gives Num and Gen
|
oper SSSrc = {s : Str ; n : Num ; g : Gen} ; -- gives Num and Gen
|
||||||
lintype SSSrc2 = {s : Num => Gen => Str ; n : DepNum ; g : DepGen} ; -- gives&needs
|
oper SSSrc2 = {s : Num => Gen => Str ; n : DepNum ; g : DepGen} ; -- gives&needs
|
||||||
lintype SSDep2 = {s : DepNum => DepGen => Num => Gen => Str} ; -- needs Auth's&Rec's
|
oper SSDep2 = {s : DepNum => DepGen => Num => Gen => Str} ; -- needs Auth's&Rec's
|
||||||
lintype SSSrcGen = {s : Str ; n : Num ; g : Gen} ; -- gives Num and Gen
|
oper SSSrcGen = {s : Str ; n : Num ; g : Gen} ; -- gives Num and Gen
|
||||||
|
|
||||||
oper
|
oper
|
||||||
ss : Str -> SS = \s -> {s = s} ;
|
ss : Str -> SS = \s -> {s = s} ;
|
||||||
|
|||||||
@@ -14,12 +14,12 @@ param Kas = nom | acc ;
|
|||||||
param DepNum = depnum | cnum Num ;
|
param DepNum = depnum | cnum Num ;
|
||||||
param DepGen = depgen | cgen Gen ;
|
param DepGen = depgen | cgen Gen ;
|
||||||
|
|
||||||
lintype SS = {s : Str} ;
|
oper SS = {s : Str} ;
|
||||||
lintype SSDep = {s : Num => Gen => Str} ; -- needs Num and Gen
|
oper SSDep = {s : Num => Gen => Str} ; -- needs Num and Gen
|
||||||
lintype SSSrc = {s : Str ; n : Num ; g : Gen} ; -- gives Num and Gen
|
oper SSSrc = {s : Str ; n : Num ; g : Gen} ; -- gives Num and Gen
|
||||||
lintype SSSrc2 = {s : Num => Gen => Str ; n : DepNum ; g : DepGen} ; -- gives&needs
|
oper SSSrc2 = {s : Num => Gen => Str ; n : DepNum ; g : DepGen} ; -- gives&needs
|
||||||
lintype SSDep2 = {s : DepNum => DepGen => Num => Gen => Str} ; -- needs Auth's&Rec's
|
oper SSDep2 = {s : DepNum => DepGen => Num => Gen => Str} ; -- needs Auth's&Rec's
|
||||||
lintype SSSrcGen = {s : Str ; n : Num ; g : Gen} ; -- gives Num and Gen
|
oper SSSrcGen = {s : Str ; n : Num ; g : Gen} ; -- gives Num and Gen
|
||||||
|
|
||||||
oper
|
oper
|
||||||
ss : Str -> SS = \s -> {s = s} ;
|
ss : Str -> SS = \s -> {s = s} ;
|
||||||
|
|||||||
@@ -10,12 +10,12 @@ param Kas = nom | dat | acc ;
|
|||||||
param DepNum = depnum | cnum Num ;
|
param DepNum = depnum | cnum Num ;
|
||||||
param DepGen = depgen | cgen Gen ;
|
param DepGen = depgen | cgen Gen ;
|
||||||
|
|
||||||
lintype SS = {s : Str} ;
|
oper SS = {s : Str} ;
|
||||||
lintype SSDep = {s : Num => Gen => Str} ; -- needs Num and Gen
|
oper SSDep = {s : Num => Gen => Str} ; -- needs Num and Gen
|
||||||
lintype SSSrc = {s : Str ; n : Num ; g : Gen} ; -- gives Num and Gen
|
oper SSSrc = {s : Str ; n : Num ; g : Gen} ; -- gives Num and Gen
|
||||||
lintype SSSrc2 = {s : Num => Gen => Str ; n : DepNum ; g : DepGen} ; -- gives&needs
|
oper SSSrc2 = {s : Num => Gen => Str ; n : DepNum ; g : DepGen} ; -- gives&needs
|
||||||
lintype SSDep2 = {s : DepNum => DepGen => Num => Gen => Str} ; -- needs Auth's&Rec's
|
oper SSDep2 = {s : DepNum => DepGen => Num => Gen => Str} ; -- needs Auth's&Rec's
|
||||||
lintype SSSrcGen = {s : Str ; n : Num ; g : Gen} ; -- gives Num and Gen
|
oper SSSrcGen = {s : Str ; n : Num ; g : Gen} ; -- gives Num and Gen
|
||||||
|
|
||||||
oper
|
oper
|
||||||
ss : Str -> SS = \s -> {s = s} ;
|
ss : Str -> SS = \s -> {s = s} ;
|
||||||
|
|||||||
@@ -8,12 +8,12 @@ param Kas = nom | acc ;
|
|||||||
param DepNum = depnum | cnum Num ;
|
param DepNum = depnum | cnum Num ;
|
||||||
param DepGen = depgen | cgen Gen ;
|
param DepGen = depgen | cgen Gen ;
|
||||||
|
|
||||||
lintype SS = {s : Str} ;
|
oper SS = {s : Str} ;
|
||||||
lintype SSDep = {s : Num => Gen => Str} ; -- needs Num and Gen
|
oper SSDep = {s : Num => Gen => Str} ; -- needs Num and Gen
|
||||||
lintype SSSrc = {s : Str ; n : Num ; g : Gen} ; -- gives Num and Gen
|
oper SSSrc = {s : Str ; n : Num ; g : Gen} ; -- gives Num and Gen
|
||||||
lintype SSSrc2 = {s : Num => Gen => Str ; n : DepNum ; g : DepGen} ; -- gives&needs
|
oper SSSrc2 = {s : Num => Gen => Str ; n : DepNum ; g : DepGen} ; -- gives&needs
|
||||||
lintype SSDep2 = {s : DepNum => DepGen => Num => Gen => Str} ; -- needs Auth's&Rec's
|
oper SSDep2 = {s : DepNum => DepGen => Num => Gen => Str} ; -- needs Auth's&Rec's
|
||||||
lintype SSSrcGen = {s : Str ; n : Num ; g : Gen} ; -- gives Num and Gen
|
oper SSSrcGen = {s : Str ; n : Num ; g : Gen} ; -- gives Num and Gen
|
||||||
|
|
||||||
oper
|
oper
|
||||||
ss : Str -> SS = \s -> {s = s} ;
|
ss : Str -> SS = \s -> {s = s} ;
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ concrete LetterSwe of Letter = {
|
|||||||
|
|
||||||
flags lexer=textlit ; unlexer=textlit ;
|
flags lexer=textlit ; unlexer=textlit ;
|
||||||
|
|
||||||
printname Letter = "Brev" ;
|
printname cat Letter = "Brev" ;
|
||||||
printname MkLetter = "brevmall" ;
|
printname fun MkLetter = "brevmall" ;
|
||||||
|
|
||||||
param Sex = masc | fem ;
|
param Sex = masc | fem ;
|
||||||
param Gen = en | ett ;
|
param Gen = en | ett ;
|
||||||
@@ -17,12 +17,12 @@ param Num = sg | pl ;
|
|||||||
param Kas = nom | acc ;
|
param Kas = nom | acc ;
|
||||||
param DepNum = depnum | cnum Num ;
|
param DepNum = depnum | cnum Num ;
|
||||||
|
|
||||||
lintype SS = {s : Str} ;
|
oper SS = {s : Str} ;
|
||||||
lintype SSDep = {s : Num => Sex => Str} ; -- needs Num and Sex
|
oper SSDep = {s : Num => Sex => Str} ; -- needs Num and Sex
|
||||||
lintype SSSrc = {s : Str ; n : Num ; x : Sex} ; -- gives Num and Sex
|
oper SSSrc = {s : Str ; n : Num ; x : Sex} ; -- gives Num and Sex
|
||||||
lintype SSSrc2 = {s : Num => Sex => Str ; n : DepNum ; x : Sex} ; -- gives and needs
|
oper SSSrc2 = {s : Num => Sex => Str ; n : DepNum ; x : Sex} ; -- gives and needs
|
||||||
lintype SSDep2 = {s : DepNum => Sex => Num => Sex => Str} ; -- needs Auth's & Recp's
|
oper SSDep2 = {s : DepNum => Sex => Num => Sex => Str} ; -- needs Auth's & Recp's
|
||||||
lintype SSSrcGen = {s : Str ; n : Num ; g : Gen} ; -- gives Num and Gen
|
oper SSSrcGen = {s : Str ; n : Num ; g : Gen} ; -- gives Num and Gen
|
||||||
|
|
||||||
|
|
||||||
oper
|
oper
|
||||||
|
|||||||
Reference in New Issue
Block a user