-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
https://github.com/google/syzkaller/blob/master/docs/program_syntax.md
Some relatively simple steps we could do to make our seed programs much easier to write.
-
Support multi-line call statements. If we define some complex variables in normal programming languages, arrays and fields are often split into several lines to aid comprehension.
(As discussed with @dvyukov, we could implement it very easily by restricting the set of the tokens before the line break.{,[and,seem to be enough for almost all cases.) -
Add optional field names for structures.
We probably still don't want structure names because in the presence of templates they may be vey unexpected-looking -
Auto-rewrite the existing seeds using 1 and 2. It could also be some auto-formatter included in
make formatlike we do for the descriptions insys/*/*. -
Add support for referencing const values by name.