Synalyze It! Help
Index

# How does the automatic mapping of structures work?

Every (binary) format follows some rules how files of that format are written and read. These rules I call grammar because the basic principle is just like in natural languages. In many cases, binary files start with some header that identifies the file format and describes some basic parameters needed to interpret the whole file.

Every grammar has a main structure that encloses the whole file. This structure can be selected in the Grammar Info Sheet. Every structure can consist of structures, references to other structures or structure elements (binary, numbers, strings, or offsets).

The automatic mapping works for structures that can be identified by one or more fixed vales. Make sure

- that the structure is optional (has a minimum repeat count of zero)
- that at least one structure element has a fixed value defined
- that "must match" is set for this structure element

Example (from the WAV grammar):

## See also

What's new in Synalyze It!