Test.connect 689 Bytes
Newer Older
René Schöne's avatar
René Schöne committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// --- update definitions ---
// OnSameNonterminal
read OnSameNonterminal.Input1;
read OnSameNonterminal.Input2;
write OnSameNonterminal.OutInteger;

// OnDifferentNonterminal
read OnDifferentNonterminal.Input1;
read OnDifferentNonterminal.Input2;
write TheOther.OutInteger;

// --- dependency definitions ---
// OnSameNonterminal
OnSameNonterminal.OutInteger canDependOn OnSameNonterminal.Input1 as Int1Dependency;
OnSameNonterminal.OutInteger canDependOn OnSameNonterminal.Input2 as Int2Dependency;
// OnDifferentNonterminal
TheOther.OutInteger canDependOn OnDifferentNonterminal.Input1 as Int1Dependency;
TheOther.OutInteger canDependOn OnDifferentNonterminal.Input2 as Int2Dependency;