|
Zen-C
|
#include "../ast/ast.h"#include "../parser/parser.h"#include "../zprep.h"#include "codegen.h"#include "compat.h"#include <stdio.h>#include <stdlib.h>#include <string.h>
Functions | |
| void | emit_preamble (ParserContext *ctx, FILE *out) |
| Emits the standard preamble (includes, macros) to the output file. | |
| void | emit_includes_and_aliases (ASTNode *node, FILE *out) |
| void | emit_type_aliases (ASTNode *node, FILE *out) |
| void | emit_global_aliases (ParserContext *ctx, FILE *out) |
| void | emit_enum_protos (ASTNode *node, FILE *out) |
| void | emit_lambda_defs (ParserContext *ctx, FILE *out) |
| void | emit_struct_defs (ParserContext *ctx, ASTNode *node, FILE *out) |
| void | emit_trait_defs (ASTNode *node, FILE *out) |
| void | emit_globals (ParserContext *ctx, ASTNode *node, FILE *out) |
| void | emit_protos (ParserContext *ctx, ASTNode *node, FILE *out) |
| void | emit_impl_vtables (ParserContext *ctx, FILE *out) |
| int | emit_tests_and_runner (ParserContext *ctx, ASTNode *node, FILE *out) |
| Emits test runner and test cases if testing is enabled. | |
| void | print_type_defs (ParserContext *ctx, FILE *out, ASTNode *nodes) |
| Prints type definitions to a file. | |
| void emit_enum_protos | ( | ASTNode * | node, |
| FILE * | out | ||
| ) |


| void emit_global_aliases | ( | ParserContext * | ctx, |
| FILE * | out | ||
| ) |

| void emit_globals | ( | ParserContext * | ctx, |
| ASTNode * | node, | ||
| FILE * | out | ||
| ) |


| void emit_impl_vtables | ( | ParserContext * | ctx, |
| FILE * | out | ||
| ) |


| void emit_includes_and_aliases | ( | ASTNode * | node, |
| FILE * | out | ||
| ) |

| void emit_lambda_defs | ( | ParserContext * | ctx, |
| FILE * | out | ||
| ) |


| void emit_preamble | ( | ParserContext * | ctx, |
| FILE * | out | ||
| ) |
Emits the standard preamble (includes, macros) to the output file.

| void emit_protos | ( | ParserContext * | ctx, |
| ASTNode * | node, | ||
| FILE * | out | ||
| ) |


| void emit_struct_defs | ( | ParserContext * | ctx, |
| ASTNode * | node, | ||
| FILE * | out | ||
| ) |


| int emit_tests_and_runner | ( | ParserContext * | ctx, |
| ASTNode * | node, | ||
| FILE * | out | ||
| ) |
Emits test runner and test cases if testing is enabled.


| void emit_trait_defs | ( | ASTNode * | node, |
| FILE * | out | ||
| ) |


| void emit_type_aliases | ( | ASTNode * | node, |
| FILE * | out | ||
| ) |

| void print_type_defs | ( | ParserContext * | ctx, |
| FILE * | out, | ||
| ASTNode * | nodes | ||
| ) |
Prints type definitions to a file.

