overload res doc examples, part 2

This commit is contained in:
aarne
2007-06-19 18:09:49 +00:00
parent 6a926ee3fc
commit f30fa0b4d1
12 changed files with 77 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
abstract Music = {
flags startcat=Kind ;
cat
Kind ;
Property ;
fun
PropKind : Kind -> Property -> Kind ;
Song : Kind ;
American : Property ;
}

View File

@@ -0,0 +1,7 @@
--# -path=.:present:api:prelude
concrete MusicEng of Music = MusicEng0 - [PropKind] **
open SyntaxEng in {
lin
PropKind k p = mkCN k (mkRS (mkRCl which_RP (mkVP p))) ;
}

View File

@@ -0,0 +1,3 @@
concrete MusicEng0 of Music = MusicI with
(Syntax = SyntaxEng),
(MusicLex = MusicLexEng) ;

View File

@@ -0,0 +1,5 @@
--# -path=.:present:prelude
concrete MusicFin of Music = MusicI with
(Syntax = SyntaxFin),
(MusicLex = MusicLexFin) ;

View File

@@ -0,0 +1,6 @@
--# -path=.:present:prelude
concrete MusicFre of Music = MusicI with
(Syntax = SyntaxFre),
(MusicLex = MusicLexFre) ;

View File

@@ -0,0 +1,6 @@
--# -path=.:present:api:prelude
concrete MusicGer of Music = MusicI with
(Syntax = SyntaxGer),
(MusicLex = MusicLexGer) ;

View File

@@ -0,0 +1,9 @@
incomplete concrete MusicI of Music = open Syntax, MusicLex in {
lincat
Kind = CN ;
Property = AP ;
lin
PropKind k p = mkCN p k ;
Song = mkCN song_N ;
American = mkAP american_A ;
}

View File

@@ -0,0 +1,5 @@
abstract MusicLex = Cat ** {
fun
song_N : N ;
american_A : A ;
}

View File

@@ -0,0 +1,5 @@
concrete MusicLexEng of MusicLex = CatEng ** open ParadigmsEng in {
lin
song_N = mkN "song" "songs" ;
american_A = mkA "American" ;
}

View File

@@ -0,0 +1,7 @@
concrete MusicLexFin of MusicLex =
CatFin ** open ParadigmsFin in {
lin
song_N = regN "kappale" ; ---- mkN
american_A = regA "amerikkalainen" ; ---- mkA
}

View File

@@ -0,0 +1,6 @@
concrete MusicLexFre of MusicLex = CatFre ** open ParadigmsFre in {
lin
song_N = mkN "chanson" feminine ;
american_A = mkA "américain" ;
}

View File

@@ -0,0 +1,6 @@
concrete MusicLexGer of MusicLex =
CatGer ** open ParadigmsGer in {
lin
song_N = mkN "Lied" "Lieder" neuter ;
american_A = mkA "amerikanisch" ;
}