Module parser

Module parser 

Source
Expand description

Parse tokens into valid objects

Structs§

Argument
Incoming or outgoing named argument
Const
A named constant tied to one or more architectures
Consts
Wrapper around a vector of Const with some helper functions.
Define
A define statement which can be sent to a C preprocessor
Flag
One flag which specifies one of several possible values
Function
Information about a function
Identifier
Identifier for any named entity
Include
An Include statement, both file and directory
Parsed
Final output object after parsing all files.
Resource
Information about a resource
Struct
Information about defined struct
TypeAlias
Complex types are often given aliases. This struct contains what the real type is (already procecced).
TypeRaw
TypeRaw is more complex than TypeAlias because it can declare arbitrary new input, as opposed to just type options.
Union
Information about defined union

Enums§

Arch
All the different architectures supported.
ArgIdent
Information about what a custom named entity refers to
ArgOpt
All the different options we can specify on an argument type
ArgType
All the different basic types supported in Syzlang
CreateType
Different types than a type template might create.
Direction
Whether the argument is input, output or both (from perspective of caller)
FieldOpt
Optional arguments to a field in a struct or union.
IdentType
All the different statements we define for Identifier
Os
All the operating systems supported
Statement
All the different type of statements
StructAttr
Attributes to struct or union
Value
Arbitrary value for some option