|
libmya 0.1.0
Library to parse Mya language.
|


Go to the source code of this file.
Data Structures | |
| struct | mir_bitfield_field |
| A bitfield's field declaration. More... | |
| struct | mir_bitfield |
| A bitfield declaration. More... | |
| struct | mir_bitfield_spec |
| A bitfield or bitfield's field declaration. More... | |
| struct | mir_register |
| Register declaration. More... | |
| struct | mir_inst_param |
| An instruction's parameter. More... | |
| struct | mir_inst |
| Instruction declaration. More... | |
| struct | mir |
| Mya in-memory intermediate representation. More... | |
Macros | |
| #define | MIR_LIST_INITIAL_SIZE 50 |
| #define | MIR_LIST_INCREMENT_SIZE 100 |
| #define | MIR_BITFIELD_HASHTABLE_SIZE 1000 |
| #define | MIR_INSTRUCTION_HASHTABLE_SIZE 1000 |
| #define | MIR_REGISTER_HASHTABLE_SIZE 1000 |
| #define | MIR_VARIABLE_HASHTABLE_SIZE 1000 |
Typedefs | |
| typedef enum mir_type | mir_type_t |
| typedef enum mir_bitfield_spec_type | mir_bitfield_spec_type_t |
| A bitfield spec type. | |
| typedef struct mir_bitfield_field | mir_bitfield_field_t |
| A bitfield's field declaration. | |
| typedef struct mir_bitfield | mir_bitfield_t |
| A bitfield declaration. | |
| typedef struct mir_bitfield_spec | mir_bitfield_spec_t |
| A bitfield or bitfield's field declaration. | |
| typedef struct mir_register | mir_register_t |
| Register declaration. | |
| typedef struct mir_inst_param | mir_inst_param_t |
| An instruction's parameter. | |
| typedef struct mir_inst | mir_inst_t |
| Instruction declaration. | |
| typedef struct mir | mir_t |
| Mya in-memory intermediate representation. | |
Enumerations | |
| enum | mir_type { TYPE_IMMEDIATE , TYPE_REGISTER } |
| enum | mir_bitfield_spec_type { FT_FIELDS , FT_IDENTIFIER , FT_LITERAL , FT_SPEC } |
| A bitfield spec type. More... | |
Variables | |
| const char * | mya_types [] |
| typedef struct mir_bitfield_field mir_bitfield_field_t |
A bitfield's field declaration.
| typedef struct mir_bitfield_spec mir_bitfield_spec_t |
A bitfield or bitfield's field declaration.
Examples:
In the second example, the opcode = 0x11 and reg = arg1 are represented with this struct too, in the spec list of the Opcode{} specification.
| typedef enum mir_bitfield_spec_type mir_bitfield_spec_type_t |
A bitfield spec type.
It's specify the type of the specification for bitfield's value.
| typedef struct mir_bitfield mir_bitfield_t |
A bitfield declaration.
| typedef struct mir_inst_param mir_inst_param_t |
An instruction's parameter.
Example: inst not[32](arg: register[32])
| typedef struct mir_inst mir_inst_t |
Instruction declaration.
| typedef struct mir_register mir_register_t |
Register declaration.
| typedef enum mir_type mir_type_t |
A bitfield spec type.
It's specify the type of the specification for bitfield's value.
| enum mir_type |
| Enumerator | |
|---|---|
| TYPE_IMMEDIATE | |
| TYPE_REGISTER | |