Test.connect 677 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// --- update definitions ---
// OnSameNonterminal
read OnSameNonterminal.Input;
write OnSameNonterminal.OutInteger;
write OnSameNonterminal.OutString;

// OnDifferentNonterminal
read OnDifferentNonterminal.Input;
write TheOther.OutInteger;
write TheOther.OutString;

// --- dependency definitions ---
// OnSameNonterminal
OnSameNonterminal.OutInteger canDependOn OnSameNonterminal.Input as IntDependency;
OnSameNonterminal.OutString canDependOn OnSameNonterminal.Input as StringDependency;
// OnDifferentNonterminal
TheOther.OutInteger canDependOn OnDifferentNonterminal.Input as IntDependency;
TheOther.OutString canDependOn OnDifferentNonterminal.Input as StringDependency;