Ignore:
Timestamp:
2012-08-04T00:56:49Z (12 years ago)
Author:
Sean Bartell <wingedtachikoma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c3437d9
Parents:
0caaaa00
Message:

Bithenge: add repeat without count

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/dist/src/bithenge/test-repeat.bh

    r0caaaa00 re3f2765  
    1 transform main = struct {
     1transform with_count = struct {
    22        .none <- repeat(0) { uint8 };
    33        .one <- repeat(1) { uint8 };
     
    55        .many <- repeat(.count) { uint8 };
    66};
     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 TracChangeset for help on using the changeset viewer.