|
Zen-C
|
#include "codegen.h"#include "zprep.h"#include "../constants.h"#include <ctype.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "../plugins/plugin_manager.h"#include "ast.h"#include "zprep_plugin.h"
Macros | |
| #define | EMIT_ATTR(cond, name) |
Functions | |
| void | codegen_match_internal (ParserContext *ctx, ASTNode *node, FILE *out, int use_result) |
| Internal handler for match statements. | |
| void | codegen_node_single (ParserContext *ctx, ASTNode *node, FILE *out) |
| Generates code for a single AST node (non-recursive for siblings). | |
| void | codegen_walker (ParserContext *ctx, ASTNode *node, FILE *out) |
| Walker for list of nodes (calls codegen_node recursively). | |
Variables | |
| char * | g_current_func_ret_type = NULL |
| Return type of current function. | |
| #define EMIT_ATTR | ( | cond, | |
| name | |||
| ) |
| void codegen_match_internal | ( | ParserContext * | ctx, |
| ASTNode * | node, | ||
| FILE * | out, | ||
| int | use_result | ||
| ) |
Internal handler for match statements.


| void codegen_node_single | ( | ParserContext * | ctx, |
| ASTNode * | node, | ||
| FILE * | out | ||
| ) |
Generates code for a single AST node (non-recursive for siblings).


| void codegen_walker | ( | ParserContext * | ctx, |
| ASTNode * | node, | ||
| FILE * | out | ||
| ) |
Walker for list of nodes (calls codegen_node recursively).


| char* g_current_func_ret_type = NULL |
Return type of current function.