diff options
author | Nicolas Williams <nico@cryptonector.com> | 2014-12-28 00:32:06 -0600 |
---|---|---|
committer | Nicolas Williams <nico@cryptonector.com> | 2014-12-30 11:42:45 -0600 |
commit | 7dc34b92aff7a38e16c0ef608238d03e1ac3d213 (patch) | |
tree | 12c5b487c154b3a63d82778731cf5249544884a1 /opcode_list.h | |
parent | cbfc0d6130b784799256f29bb515727df9d894f4 (diff) |
Add `label $name | EXP`; fix `break`
This is to fix the problem where `break` is dynamic, not lexical.
With this it should be possible to do this sort of thing:
label $break | inputs | if ... then $break|error else . end
This is a backwards-incompatible change for master, but the previous
`break` hadn't shipped yet.
Still needed:
- testing
Diffstat (limited to 'opcode_list.h')
-rw-r--r-- | opcode_list.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/opcode_list.h b/opcode_list.h index 38e63856..bdc4f48e 100644 --- a/opcode_list.h +++ b/opcode_list.h @@ -40,3 +40,4 @@ OP(TOP, NONE, 0, 0) OP(CLOSURE_PARAM_REGULAR, DEFINITION, 0, 0) OP(DEPS, CONSTANT, 0, 0) OP(MODULEMETA, CONSTANT, 0, 0) +OP(GENLABEL, NONE, 0, 1) |