mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-11-02 02:43:18 -07:00
resource for OCL
This commit is contained in:
1 parent
5fbb08bdbd
commit
a11f1cfe59
5 files changed
+121
-1
No files matched your search
@@ -0,0 +1,20 @@
|
||||
interface Atom = ResourceExt ** open Resource in {
|
||||
param
|
||||
Polarity = Pos | Neg ;
|
||||
|
||||
oper
|
||||
AS : Type = {s : Polarity => SBranch} ;
|
||||
SBranch : Type ;
|
||||
|
||||
mkPred : NP -> VG -> {s : Polarity => SBranch} = \x,F -> {s =
|
||||
table {
|
||||
Pos => (PredVP x (PosVG F)).s ;
|
||||
Neg => (PredVP x (NegVG F)).s
|
||||
}
|
||||
} ;
|
||||
|
||||
posAS, negAS : AS -> S ;
|
||||
|
||||
posAS p = {s = p.s ! Pos ; lock_S =<>} ;
|
||||
negAS p = {s = p.s ! Neg ; lock_S =<>} ;
|
||||
} ;
|
||||
Reference in new issue
Block a user