/*
Copyright (C) 2019 Leo Tenenbaum.
This file is part of toc. toc is distributed under version 3 of the GNU General Public License, without any warranty whatsoever.
You should have received a copy of the GNU General Public License along with toc. If not, see .
*/
/* NOTE: all stages should use the same allocator! */
/* Includes all of toc's files */
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include "types.h"
/* forward declarations for debugging */
static void print_val(Value v, Type *t);
/* utilities */
#include "allocator.c"
#include "arr.c"
#include "location.c"
#include "err.c"
#include "rand.c"
#include "blockarr.c"
#include "str.c"
#include "instance_table.c"
#include "copy.c"
#include "binfile.c"
#include "identifiers.c"
#include "tokenizer.c"
#include "parse.c"
#include "scope.c"
#include "eval.c"
#include "infer.c"
#include "package.c"
#include "types.c"
static bool cgen_decls_file(CGenerator *g, ParsedFile *f);
static bool typedefs_file(CGenerator *g, ParsedFile *f);
#include "cgen.c"
#include "typedefs_cgen.c"
#include "decls_cgen.c"
#ifdef TOC_DEBUG
#include "tests.c"
#endif