Skip to content

Commit 8c6bf79

Browse files
authored
Improve binary EBNF consistency (#505)
Add inline non-zero length constraint to fixed-length list matching surrounding rules.
1 parent 0a37def commit 8c6bf79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

design/mvp/Binary.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ defvaltype ::= pvt:<primvaltype> => pvt
195195
| 0x72 lt*:vec(<labelvaltype>) => (record (field lt)*) (if |lt*| > 0)
196196
| 0x71 case*:vec(<case>) => (variant case+) (if |case*| > 0)
197197
| 0x70 t:<valtype> => (list t)
198-
| 0x67 t:<valtype> len:<u32> => (list t len) 🔧
198+
| 0x67 t:<valtype> len:<u32> => (list t len) (if len > 0) 🔧
199199
| 0x6f t*:vec(<valtype>) => (tuple t+) (if |t*| > 0)
200200
| 0x6e l*:vec(<label'>) => (flags l+) (if 0 < |l*| <= 32)
201201
| 0x6d l*:vec(<label'>) => (enum l+) (if |l*| > 0)

0 commit comments

Comments
 (0)