Add the post for the second homework assignment.
This commit is contained in:
11
code/cs325-langs/sols/hw2.lang
Normal file
11
code/cs325-langs/sols/hw2.lang
Normal file
@@ -0,0 +1,11 @@
|
||||
state 0;
|
||||
|
||||
effect {
|
||||
if(SOURCE == R) {
|
||||
STATE = STATE + |LEFT|;
|
||||
}
|
||||
}
|
||||
|
||||
combine {
|
||||
STATE = STATE + LSTATE + RSTATE;
|
||||
}
|
||||
Reference in New Issue
Block a user