]> granicus.if.org Git - jq/commit
Add `label $name | EXP`; fix `break`
authorNicolas Williams <nico@cryptonector.com>
Sun, 28 Dec 2014 06:32:06 +0000 (00:32 -0600)
committerNicolas Williams <nico@cryptonector.com>
Tue, 30 Dec 2014 17:42:45 +0000 (11:42 -0600)
commit7dc34b92aff7a38e16c0ef608238d03e1ac3d213
tree12c5b487c154b3a63d82778731cf5249544884a1
parentcbfc0d6130b784799256f29bb515727df9d894f4
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
builtin.c
bytecode.h
compile.c
compile.h
docs/content/3.manual/manual.yml
execute.c
lexer.l
main.c
opcode_list.h
parser.y
tests/all.test