Add bit count syntax to packet diagram

This commit is contained in:
Bryan
2024-10-18 20:05:42 +01:00
parent d16e46a386
commit b602f67abe
3 changed files with 127 additions and 15 deletions

View File

@@ -12,7 +12,12 @@ entry Packet:
;
PacketBlock:
start=INT('-' end=INT)? ':' label=STRING EOL
(
start=INT('-' (end=INT | bits=INT'bit''s'?))?
| bits=INT'bit''s'?
)
':' label=STRING
EOL
;
terminal INT returns number: /0|[1-9][0-9]*/;