Skip to content

execute op_block nodes - #30

Open
christianp wants to merge 1 commit into
jsxgraph:masterfrom
christianp:execute_op_block
Open

execute op_block nodes#30
christianp wants to merge 1 commit into
jsxgraph:masterfrom
christianp:execute_op_block

Conversation

@christianp

Copy link
Copy Markdown
Contributor

The commit 8bbcc2a added an op_block node, for blocks of code inside curly braces. A case was added to the compile function, but no corresponding case was added to the execute function, so blocks of code just aren't executed any more.

So code like this:

if(true) {
    point(0,0);
}

would produce nothing, instead of a point at the origin.

I think that just executing the single child node is all that needs to happen.

The commit 8bbcc2a added an `op_block` node, for blocks of code inside curly braces.
A case was added to the `compile` function, but no corresponding case was added to the `execute` function, so blocks of code just aren't executed any more.

So code like this:

```
if(true) {
    point(0,0);
}
```

would produce nothing, instead of a point at the origin.

I think that just executing the single child node is all that needs to happen.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant