mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-05-30 10:28:53 -06:00
Add a variant of mkAdv : Adv -> AdvType -> Adv that fixes the existing Adv with the given AdvType.
This commit is contained in:
@@ -143,6 +143,9 @@ oper
|
||||
= \s,t -> lin Adv {s = word (s + t) ; advType = getAdvType s} ; ----
|
||||
mkAdv : Str -> AdvType -> Adv
|
||||
= \s,at -> lin Adv {s = word s ; advType = at} ;
|
||||
mkAdv : Adv -> AdvType -> Adv -- To fix the AdvType in an Adv produced by SyntaxChi.mkAdv
|
||||
= \adv,at -> adv ** {advType = at} ;
|
||||
|
||||
} ;
|
||||
|
||||
AdvType : Type
|
||||
|
||||
Reference in New Issue
Block a user