Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added TODO_compound_statements.md
  • Loading branch information
FROGGS committed Apr 7, 2013
1 parent c08ebe5 commit 5f0eeb8
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions TODO_compound_statements.md
@@ -0,0 +1,32 @@
See http://perldoc.perl.org/perlsyn.html#Compound-Statements

*Note* LABELs are not supported yet, but can and should be implemented
in rakudo and v5 at the same time.

Done:
if (EXPR) BLOCK
if (EXPR) BLOCK else BLOCK
if (EXPR) BLOCK elsif (EXPR) BLOCK ...
if (EXPR) BLOCK elsif (EXPR) BLOCK ... else BLOCK
unless (EXPR) BLOCK
unless (EXPR) BLOCK else BLOCK
LABEL while (EXPR) BLOCK
LABEL for (EXPR; EXPR; EXPR) BLOCK
LABEL for VAR (LIST) BLOCK
LABEL foreach (EXPR; EXPR; EXPR) BLOCK
LABEL foreach VAR (LIST) BLOCK

Almost (LHF):
given (EXPR) BLOCK
unless (EXPR) BLOCK elsif (EXPR) BLOCK ...
unless (EXPR) BLOCK elsif (EXPR) BLOCK ... else BLOCK
LABEL until (EXPR) BLOCK

Todo:
LABEL while (EXPR) BLOCK continue BLOCK
LABEL until (EXPR) BLOCK continue BLOCK
LABEL for VAR (LIST) BLOCK continue BLOCK
LABEL foreach VAR (LIST) BLOCK continue BLOCK
LABEL BLOCK
LABEL BLOCK continue BLOCK
PHASE BLOCK

0 comments on commit 5f0eeb8

Please sign in to comment.