source: mainline/uspace/dist/src/bithenge/test-repeat.bh@ e3f2765

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since e3f2765 was e3f2765, checked in by Sean Bartell <wingedtachikoma@…>, 13 years ago

Bithenge: add repeat without count

  • Property mode set to 100644
File size: 356 bytes
Line 
1transform with_count = struct {
2 .none <- repeat(0) { uint8 };
3 .one <- repeat(1) { uint8 };
4 .count <- uint8;
5 .many <- repeat(.count) { uint8 };
6};
7
8transform without_count = struct {
9 .error <- repeat { uint8 <- zero_terminated };
10 .end <- repeat { uint8 };
11};
12
13transform main = struct {
14 .with_count <- with_count;
15 .without_count <- without_count;
16};
Note: See TracBrowser for help on using the repository browser.