1
0
forked from GitHub/gf-rgl

added compoundV operation

This commit is contained in:
Krasimir Angelov
2018-06-28 15:32:58 +02:00
parent 07697dd8d1
commit ebbd512ee1

View File

@@ -68,7 +68,7 @@ oper
lock_V=<> lock_V=<>
} ; } ;
actionV : VTable -> VTable -> V = dualV ; actionV : VTable -> VTable -> V = dualV ; -- deprecated
singleV : VTable -> V ; singleV : VTable -> V ;
singleV vtable = { singleV vtable = {
@@ -83,7 +83,16 @@ oper
lock_V=<> lock_V=<>
} ; } ;
stateV : VTable -> V = singleV ; stateV : VTable -> V = singleV ; -- deprecated
compoundV : V -> Str -> V ;
compoundV v adv = {
s = \\asp,vform => v.s ! asp ! vform ++ adv ;
n = \\nform => v.n ! nform ++ adv ;
vtype = VNormal;
lock_V=<>
} ;
--3 Zero-place verbs --3 Zero-place verbs
-- --