Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pseuco
pseuco-ccs-compiler
Commits
f328c0de
Commit
f328c0de
authored
Jun 18, 2018
by
Sebastian Biewer
Browse files
Fixes cpw 31 and redmine 244
parent
696bcd13
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/PseuCo+Compiler.coffee
View file @
f328c0de
...
...
@@ -448,10 +448,10 @@ PC.SelectStmt::compile = (compiler, loopEntry) ->
@
prepareSendReceive
(
compiler
)
# evaluate right / left&right operand(s) of receive/send operator
for
i
in
[
0
...
@
children
.
length
-
1
]
by
1
control
=
compiler
.
emitChoice
()
breaks
.
concat
(
compiler
.
compile
(
@
children
[
i
],
loopEntry
))
breaks
=
breaks
.
concat
(
compiler
.
compile
(
@
children
[
i
],
loopEntry
))
placeholders
.
push
(
compiler
.
emitProcessApplicationPlaceholder
())
control
.
setBranchFinished
()
breaks
.
concat
(
compiler
.
compile
(
@
children
[
@
children
.
length
-
1
],
loopEntry
))
breaks
=
breaks
.
concat
(
compiler
.
compile
(
@
children
[
@
children
.
length
-
1
],
loopEntry
))
placeholders
.
push
(
compiler
.
emitProcessApplicationPlaceholder
())
compiler
.
emitMergeOfProcessFramesOfPlaceholders
(
placeholders
)
compiler
.
closeEnvironment
()
...
...
@@ -470,7 +470,8 @@ PC.Case::compile = (compiler, loopEntry) ->
compiler
.
compile
(
cond
)
else
compiler
.
emitSimplePrefix
(
CCS
.
internalChannelName
)
compiler
.
compile
(
@
getExecution
(),
loopEntry
)
res
=
compiler
.
compile
(
@
getExecution
(),
loopEntry
)
res
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment