Motr
M0
|
#include <stdbool.h>
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include "xcode/ff2c/lex.h"
#include "xcode/ff2c/parser.h"
#include "xcode/ff2c/sem.h"
#include "xcode/ff2c/gen.h"
Go to the source code of this file.
Macros | |
#define | out(...) fprintf(thefile, __VA_ARGS__) |
#define | TOK(tok) (int)(tok)->ft_len, (int)(tok)->ft_len, (tok)->ft_val |
#define | T(term) TOK(&(term)->fn_tok) |
Functions | |
static void | indent (int depth) |
static void | type_h (const struct ff2c_type *t, int depth) |
static void | field_h (const struct ff2c_field *f, int depth) |
int | ff2c_h_gen (const struct ff2c_ff *ff, const struct ff2c_gen_opt *opt) |
static void | field_def (const struct ff2c_type *t, const struct ff2c_field *f, int i) |
static void | type_fields (const struct ff2c_type *t) |
static void | type_decl (const struct ff2c_type *t) |
static void | type_def (const struct ff2c_type *t) |
int | ff2c_c_gen (const struct ff2c_ff *ff, const struct ff2c_gen_opt *opt) |
Variables | |
FILE * | thefile |