source: mainline/uspace/dist/src/bithenge/test.bh@ 84e8a70

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

Bithenge: fix struct_transform and add parameter test script

  • Property mode set to 100644
File size: 350 bytes
Line 
1transform pascal_string = struct {
2 .len <- uint8;
3 .string <- ascii <- known_length(.len);
4};
5
6transform item(first_len, second_len) = struct {
7 .id <- uint32le <- known_length(4); # the known_length is unnecessary
8 .name <- pascal_string;
9 .first <- known_length(first_len);
10 .second <- known_length(second_len);
11};
12
13transform main() = item(3, 0);
Note: See TracBrowser for help on using the repository browser.