Skip to content

Question about MarkovNode nesting and union. #57

Answered by kaya3
zylkowski asked this question in Q&A
Discussion options

You must be logged in to vote

Nested Markov nodes aren't "prioritised", in the sense that there is no special case for the language's semantics. Basically to execute a Markov node, you repeatedly find its first applicable child and execute that, and you stop when none of the children are applicable. If one of the children is a Markov node then "executing the child" means you do that whole process and then return to the outer Markov node to continue executing it.

It's analogous to nested loops in imperative languages - when you enter an inner loop, the inner loop has to complete all of its iterations before control returns to the outer loop - so you "ignore" everything outside the inner loop while it's executing.

A union

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@zylkowski
Comment options

Answer selected by mxgmn
Comment options

You must be logged in to vote
1 reply
@zylkowski
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #56 on September 05, 2022 11:00.