mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
File reorganization for checker system.
This commit is contained in:
@@ -302,7 +302,7 @@ typedef struct TypeAndToken {
|
|||||||
#define MAP_TYPE TypeAndToken
|
#define MAP_TYPE TypeAndToken
|
||||||
#define MAP_PROC map_type_and_token_
|
#define MAP_PROC map_type_and_token_
|
||||||
#define MAP_NAME MapTypeAndToken
|
#define MAP_NAME MapTypeAndToken
|
||||||
#include "../map.c"
|
#include "map.c"
|
||||||
|
|
||||||
void check_when_stmt(Checker *c, AstNodeWhenStmt *ws, u32 flags) {
|
void check_when_stmt(Checker *c, AstNodeWhenStmt *ws, u32 flags) {
|
||||||
Operand operand = {Addressing_Invalid};
|
Operand operand = {Addressing_Invalid};
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
#include "../exact_value.c"
|
#include "exact_value.c"
|
||||||
#include "entity.c"
|
#include "entity.c"
|
||||||
#include "types.c"
|
#include "types.c"
|
||||||
|
|
||||||
#define MAP_TYPE Entity *
|
#define MAP_TYPE Entity *
|
||||||
#define MAP_PROC map_entity_
|
#define MAP_PROC map_entity_
|
||||||
#define MAP_NAME MapEntity
|
#define MAP_NAME MapEntity
|
||||||
#include "../map.c"
|
#include "map.c"
|
||||||
|
|
||||||
typedef enum AddressingMode {
|
typedef enum AddressingMode {
|
||||||
Addressing_Invalid,
|
Addressing_Invalid,
|
||||||
@@ -216,27 +216,27 @@ typedef struct CheckerContext {
|
|||||||
#define MAP_TYPE TypeAndValue
|
#define MAP_TYPE TypeAndValue
|
||||||
#define MAP_PROC map_tav_
|
#define MAP_PROC map_tav_
|
||||||
#define MAP_NAME MapTypeAndValue
|
#define MAP_NAME MapTypeAndValue
|
||||||
#include "../map.c"
|
#include "map.c"
|
||||||
|
|
||||||
#define MAP_TYPE Scope *
|
#define MAP_TYPE Scope *
|
||||||
#define MAP_PROC map_scope_
|
#define MAP_PROC map_scope_
|
||||||
#define MAP_NAME MapScope
|
#define MAP_NAME MapScope
|
||||||
#include "../map.c"
|
#include "map.c"
|
||||||
|
|
||||||
#define MAP_TYPE DeclInfo *
|
#define MAP_TYPE DeclInfo *
|
||||||
#define MAP_PROC map_decl_info_
|
#define MAP_PROC map_decl_info_
|
||||||
#define MAP_NAME MapDeclInfo
|
#define MAP_NAME MapDeclInfo
|
||||||
#include "../map.c"
|
#include "map.c"
|
||||||
|
|
||||||
#define MAP_TYPE AstFile *
|
#define MAP_TYPE AstFile *
|
||||||
#define MAP_PROC map_ast_file_
|
#define MAP_PROC map_ast_file_
|
||||||
#define MAP_NAME MapAstFile
|
#define MAP_NAME MapAstFile
|
||||||
#include "../map.c"
|
#include "map.c"
|
||||||
|
|
||||||
#define MAP_TYPE ExprInfo
|
#define MAP_TYPE ExprInfo
|
||||||
#define MAP_PROC map_expr_info_
|
#define MAP_PROC map_expr_info_
|
||||||
#define MAP_NAME MapExprInfo
|
#define MAP_NAME MapExprInfo
|
||||||
#include "../map.c"
|
#include "map.c"
|
||||||
|
|
||||||
typedef struct DelayedDecl {
|
typedef struct DelayedDecl {
|
||||||
Scope * parent;
|
Scope * parent;
|
||||||
@@ -1093,9 +1093,9 @@ void init_preload(Checker *c) {
|
|||||||
|
|
||||||
bool check_arity_match(Checker *c, AstNodeValueDecl *d);
|
bool check_arity_match(Checker *c, AstNodeValueDecl *d);
|
||||||
|
|
||||||
#include "expr.c"
|
#include "check_expr.c"
|
||||||
#include "decl.c"
|
#include "check_decl.c"
|
||||||
#include "stmt.c"
|
#include "check_stmt.c"
|
||||||
|
|
||||||
bool check_arity_match(Checker *c, AstNodeValueDecl *d) {
|
bool check_arity_match(Checker *c, AstNodeValueDecl *d) {
|
||||||
isize lhs = d->names.count;
|
isize lhs = d->names.count;
|
||||||
+1
-1
@@ -9,7 +9,7 @@ extern "C" {
|
|||||||
#include "tokenizer.c"
|
#include "tokenizer.c"
|
||||||
#include "parser.c"
|
#include "parser.c"
|
||||||
// #include "printer.c"
|
// #include "printer.c"
|
||||||
#include "checker/checker.c"
|
#include "checker.c"
|
||||||
// #include "ssa.c"
|
// #include "ssa.c"
|
||||||
#include "ir.c"
|
#include "ir.c"
|
||||||
#include "ir_opt.c"
|
#include "ir_opt.c"
|
||||||
|
|||||||
Reference in New Issue
Block a user