Add 'label' syntax construction
authorJean Privat <jean@pryen.org>
Sun, 26 Jul 2009 03:39:41 +0000 (23:39 -0400)
committerJean Privat <jean@pryen.org>
Mon, 27 Jul 2009 07:36:22 +0000 (03:36 -0400)
commit01b1d0f7e2e64d67d4d5ccba98c451a0ed60e910
tree4bc156ab597e2bdad4a6e22b6cd5bbe9eaf6d232
parente6ce9ec37860b2a6846b8af81f403d92c2e7bcc4
Add 'label' syntax construction

A label can be used in 'break' and 'continue' statements
A label can be declared in 'for', 'while', 'do' and closure constructions.

Note that in grouped closures, only the last closure is labeled but
it applies to all closures of the group:

 foo with do
   a
 with do
   b
 end label xxx

Signed-off-by: Jean Privat <jean@pryen.org>
src/parser/lexer.nit
src/parser/nit.sablecc3xx
src/parser/parser.nit
src/parser/parser_abs.nit
src/parser/parser_nodes.nit
src/parser/parser_prod.nit
src/parser/parser_tables.nit
src/parser/prescc.sh