|
Z / libzlang 0.29.0
C99 runtime library and the Zlang 0.29 source-to-source compiler
|
C99 source emitter API. More...
#include "zlang/compiler/ast.h"#include "zlang/compiler/diagnostics.h"#include "zlang/compiler/planner.h"#include <stdbool.h>#include <stddef.h>#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | zlang_emitted_symbol_t |
| struct | zlang_emitted_sequence_t |
| struct | zlang_emitted_literal_t |
| struct | zlang_emitted_capacity_t |
| struct | zlang_emitted_user_type_t |
| struct | zlang_emitted_enum_item_t |
| struct | zlang_array_specialization_t |
| struct | zlang_emitted_array_helper_t |
| struct | zlang_emitted_function_t |
| struct | zlang_emitter_t |
Macros | |
| #define | ZLANG_EMITTED_SYMBOL_CAPACITY 128U |
| #define | ZLANG_EMITTED_SEQUENCE_CAPACITY 32U |
| #define | ZLANG_EMITTED_LITERAL_CAPACITY 64U |
| #define | ZLANG_EMITTED_USER_TYPE_CAPACITY 32U |
| #define | ZLANG_EMITTED_ENUM_ITEM_CAPACITY 128U |
| #define | ZLANG_EMITTED_COMMENT_CAPACITY 128U |
| #define | ZLANG_EMITTED_CSE_CAPACITY 16U |
| #define | ZLANG_MAX_ARRAY_SPECIALIZATIONS 16U |
| #define | ZLANG_EMITTED_ARRAY_HELPER_CAPACITY 64U |
| #define | ZLANG_EMITTED_NAME_CAPACITY 64U |
Typedefs | |
| typedef struct zlang_emitted_symbol_t | zlang_emitted_symbol_t |
| typedef struct zlang_emitted_sequence_t | zlang_emitted_sequence_t |
| typedef struct zlang_emitted_literal_t | zlang_emitted_literal_t |
| typedef struct zlang_emitted_capacity_t | zlang_emitted_capacity_t |
| typedef struct zlang_emitted_user_type_t | zlang_emitted_user_type_t |
| typedef struct zlang_emitted_enum_item_t | zlang_emitted_enum_item_t |
| typedef struct zlang_array_specialization_t | zlang_array_specialization_t |
| typedef struct zlang_emitted_array_helper_t | zlang_emitted_array_helper_t |
| typedef struct zlang_emitted_function_t | zlang_emitted_function_t |
| typedef struct zlang_emitter_t | zlang_emitter_t |
Functions | |
| void | zlang_emitter_init (zlang_emitter_t *emitter, char *buffer, size_t capacity, zlang_diagnostics_t *diagnostics, const zlang_memory_plan_t *plan) |
| bool | zlang_emit_program (const zlang_program_t *program, zlang_emitter_t *emitter) |
C99 source emitter API.
| #define ZLANG_EMITTED_ARRAY_HELPER_CAPACITY 64U |
| #define ZLANG_EMITTED_COMMENT_CAPACITY 128U |
| #define ZLANG_EMITTED_CSE_CAPACITY 16U |
| #define ZLANG_EMITTED_ENUM_ITEM_CAPACITY 128U |
| #define ZLANG_EMITTED_LITERAL_CAPACITY 64U |
| #define ZLANG_EMITTED_NAME_CAPACITY 64U |
| #define ZLANG_EMITTED_SEQUENCE_CAPACITY 32U |
| #define ZLANG_EMITTED_SYMBOL_CAPACITY 128U |
| #define ZLANG_EMITTED_USER_TYPE_CAPACITY 32U |
| #define ZLANG_MAX_ARRAY_SPECIALIZATIONS 16U |
| typedef struct zlang_array_specialization_t zlang_array_specialization_t |
| typedef struct zlang_emitted_array_helper_t zlang_emitted_array_helper_t |
| typedef struct zlang_emitted_capacity_t zlang_emitted_capacity_t |
| typedef struct zlang_emitted_enum_item_t zlang_emitted_enum_item_t |
| typedef struct zlang_emitted_function_t zlang_emitted_function_t |
| typedef struct zlang_emitted_literal_t zlang_emitted_literal_t |
| typedef struct zlang_emitted_sequence_t zlang_emitted_sequence_t |
| typedef struct zlang_emitted_symbol_t zlang_emitted_symbol_t |
| typedef struct zlang_emitted_user_type_t zlang_emitted_user_type_t |
| typedef struct zlang_emitter_t zlang_emitter_t |
| bool zlang_emit_program | ( | const zlang_program_t * | program, |
| zlang_emitter_t * | emitter ) |
| void zlang_emitter_init | ( | zlang_emitter_t * | emitter, |
| char * | buffer, | ||
| size_t | capacity, | ||
| zlang_diagnostics_t * | diagnostics, | ||
| const zlang_memory_plan_t * | plan ) |