Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changes between Version 14 and Version 15 of StructuredBinaryData


Ignore:
Timestamp:
2012-07-22T17:40:51Z (7 years ago)
Author:
Vojtech Horky
Comment:

Make longer code-samples more visible (no inlining)

Legend:

Unmodified
Added
Removed
Modified
  • StructuredBinaryData

    v14 v15  
    210210Currently, a transform can only have one input. Parameters will allow a
    211211transform to use multiple inputs:
    212 `transform strings(len) = struct { .str1 <- ascii <- known_length(len); .str2 <- ascii <- known_length(len); };`.
     212{{{
     213transform strings(len) = struct {
     214    .str1 <- ascii <- known_length(len);
     215    .str2 <- ascii <- known_length(len);
     216};
     217}}}
    213218A transform with parameters can be defined as in `transform strings(len)`, and
    214219the parameters can be referenced inside the transform. When a transform is
    215220used, expressions are given for the values of its parameters.
    216221
    217 At first the only expressions will be parameters, as above, previously decoded
    218 fields, as in `.len <- uint32le; .data <- known_length(.len);`, or integer
    219 literals.
     222At first the only expressions will be parameters, as above, integer literals or previously decoded
     223fields, as in
     224{{{
     225    .len <- uint32le;
     226    .data <- known_length(.len);
     227}}}
    220228
    221229=== Other ideas ===