mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 03:32:51 -06:00
Use overloaded API in peace keeping grammar. Still not compiling, "no instance of mkS for Cl among ... Cl ... ?"
This commit is contained in:
@@ -1,12 +1,20 @@
|
||||
incomplete concrete PeaceCatI of PeaceCat =
|
||||
Cat ** open Lang, PeaceRes, Prelude in {
|
||||
open Lang, PeaceRes, Prelude in {
|
||||
|
||||
lincat
|
||||
N = N; A = A; V = V; V2 = V2; V3 = V3; Pron = Pron;
|
||||
IP = IP; IAdv = IAdv;
|
||||
Adv = Adv; NP = NP; CN = CN; Imp = Imp; Det = Det; Num = Num;
|
||||
|
||||
MassN = N ;
|
||||
Phrase = { s : Str; p : Punct } ;
|
||||
PhraseWritten = { s : Str } ;
|
||||
PhraseSpoken = { s : Str } ;
|
||||
|
||||
Sent = {s : SForm => Str} ;
|
||||
Quest = { s : Str } ;
|
||||
MassCN = CN ;
|
||||
|
||||
lin
|
||||
Written x = mkWritten x.s x.p ;
|
||||
Spoken x = { s = x.s } ;
|
||||
|
||||
Reference in New Issue
Block a user