Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
added TODO_compound_statements.md
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 |