forked from GitHub/gf-core
judgements lindef are now respected by both the parser and the linearizer
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
concrete TestCnc of Test = {
|
||||
|
||||
lincat E,P = {s:Str} ;
|
||||
param Number = Pl | Sg;
|
||||
lincat E = {s:Str; n : Number} ;
|
||||
lindef E = \s -> {s=s; n=Sg} ;
|
||||
|
||||
lincat P = {s:Str} ;
|
||||
|
||||
lin Exist f = {s = "exists" ++ f.$0 ++ "such that" ++ f.s};
|
||||
lin Even x = {s = x.s ++ "is even"};
|
||||
lin Even x = {s = x.s ++ case x.n of {Sg => "is"; Pl => "are"} ++ "even"};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user