Skip to content

Commit

Permalink
Added description of current grammar.
Browse files Browse the repository at this point in the history
  • Loading branch information
krdln committed Aug 29, 2014
1 parent 042eb45 commit 62e3832
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions active/0000-subslice-syntax-change.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ grammar syntax as in Rust manual):
slice_pattern : "[" [[pattern | subslice_pattern] ","]* "]" ;
subslice_pattern : ["mut"? ident]? ".." ["@" slice_pattern]? ;

To compare, currently it looks like:

slice_pattern : "[" [[pattern | subslice_pattern] ","]* "]" ;
subslice_pattern : ".." ["mut"? ident ["@" slice_pattern]?]? ;

# Drawbacks

Backward incompatible.
Expand Down

0 comments on commit 62e3832

Please sign in to comment.