From 00298d6d83e1ad975586da70d5c3c3173916c498 Mon Sep 17 00:00:00 2001 From: SimonFJ20 Date: Wed, 22 Jan 2025 13:53:05 +0100 Subject: [PATCH] move compiler/ to compiler/old/ --- compiler/architecture.txt | 34 ------------------- compiler/{ => old}/arch.ts | 0 compiler/{ => old}/assembler.ts | 0 compiler/{ => old}/ast.ts | 0 compiler/{ => old}/ast_visitor.ts | 0 compiler/{ => old}/checker.ts | 0 compiler/{ => old}/compiler.ts | 0 compiler/{ => old}/desugar/array_literal.ts | 0 compiler/{ => old}/desugar/compound_assign.ts | 0 compiler/{ => old}/desugar/special_loop.ts | 0 compiler/{ => old}/desugar/struct_literal.ts | 0 compiler/{ => old}/info.ts | 0 compiler/{ => old}/lexer.ts | 0 compiler/{ => old}/lib.ts | 0 compiler/{ => old}/lowerer.ts | 0 compiler/{ => old}/lowerer_locals.ts | 0 compiler/{ => old}/main.ts | 0 compiler/{ => old}/middle/borrow_checker.ts | 0 compiler/{ => old}/middle/cfg.ts | 0 compiler/{ => old}/middle/elim_blocks.ts | 0 .../{ => old}/middle/elim_unused_local.ts | 0 .../{ => old}/middle/explicit_move_copy.ts | 0 compiler/{ => old}/middle/lower_ast.ts | 0 compiler/{ => old}/middle/mir.ts | 0 compiler/{ => old}/mod.ts | 0 compiler/{ => old}/mono.ts | 0 compiler/{ => old}/parser.ts | 0 compiler/{ => old}/resolver.ts | 0 compiler/{ => old}/resolver_syms.ts | 0 compiler/{ => old}/token.ts | 0 compiler/{ => old}/vtype.ts | 0 31 files changed, 34 deletions(-) delete mode 100644 compiler/architecture.txt rename compiler/{ => old}/arch.ts (100%) rename compiler/{ => old}/assembler.ts (100%) rename compiler/{ => old}/ast.ts (100%) rename compiler/{ => old}/ast_visitor.ts (100%) rename compiler/{ => old}/checker.ts (100%) rename compiler/{ => old}/compiler.ts (100%) rename compiler/{ => old}/desugar/array_literal.ts (100%) rename compiler/{ => old}/desugar/compound_assign.ts (100%) rename compiler/{ => old}/desugar/special_loop.ts (100%) rename compiler/{ => old}/desugar/struct_literal.ts (100%) rename compiler/{ => old}/info.ts (100%) rename compiler/{ => old}/lexer.ts (100%) rename compiler/{ => old}/lib.ts (100%) rename compiler/{ => old}/lowerer.ts (100%) rename compiler/{ => old}/lowerer_locals.ts (100%) rename compiler/{ => old}/main.ts (100%) rename compiler/{ => old}/middle/borrow_checker.ts (100%) rename compiler/{ => old}/middle/cfg.ts (100%) rename compiler/{ => old}/middle/elim_blocks.ts (100%) rename compiler/{ => old}/middle/elim_unused_local.ts (100%) rename compiler/{ => old}/middle/explicit_move_copy.ts (100%) rename compiler/{ => old}/middle/lower_ast.ts (100%) rename compiler/{ => old}/middle/mir.ts (100%) rename compiler/{ => old}/mod.ts (100%) rename compiler/{ => old}/mono.ts (100%) rename compiler/{ => old}/parser.ts (100%) rename compiler/{ => old}/resolver.ts (100%) rename compiler/{ => old}/resolver_syms.ts (100%) rename compiler/{ => old}/token.ts (100%) rename compiler/{ => old}/vtype.ts (100%) diff --git a/compiler/architecture.txt b/compiler/architecture.txt deleted file mode 100644 index 71121df..0000000 --- a/compiler/architecture.txt +++ /dev/null @@ -1,34 +0,0 @@ - - - -Mnemonic Arg Arg description ----------------------------------------- -Nop -PushNull -PushInt int initial value -PushString string initial value -PushArray -PushStruct -PushPtr ptr pointer value -Pop -LoadLocal int stack position -StoreLocal int stack position -Call int arg count -Return -Jump -JumpIfNotZero -Add -Subtract -Multiply -Divide -Remainder -Equal -LessThan -And -Or -Xor -Not - - - - diff --git a/compiler/arch.ts b/compiler/old/arch.ts similarity index 100% rename from compiler/arch.ts rename to compiler/old/arch.ts diff --git a/compiler/assembler.ts b/compiler/old/assembler.ts similarity index 100% rename from compiler/assembler.ts rename to compiler/old/assembler.ts diff --git a/compiler/ast.ts b/compiler/old/ast.ts similarity index 100% rename from compiler/ast.ts rename to compiler/old/ast.ts diff --git a/compiler/ast_visitor.ts b/compiler/old/ast_visitor.ts similarity index 100% rename from compiler/ast_visitor.ts rename to compiler/old/ast_visitor.ts diff --git a/compiler/checker.ts b/compiler/old/checker.ts similarity index 100% rename from compiler/checker.ts rename to compiler/old/checker.ts diff --git a/compiler/compiler.ts b/compiler/old/compiler.ts similarity index 100% rename from compiler/compiler.ts rename to compiler/old/compiler.ts diff --git a/compiler/desugar/array_literal.ts b/compiler/old/desugar/array_literal.ts similarity index 100% rename from compiler/desugar/array_literal.ts rename to compiler/old/desugar/array_literal.ts diff --git a/compiler/desugar/compound_assign.ts b/compiler/old/desugar/compound_assign.ts similarity index 100% rename from compiler/desugar/compound_assign.ts rename to compiler/old/desugar/compound_assign.ts diff --git a/compiler/desugar/special_loop.ts b/compiler/old/desugar/special_loop.ts similarity index 100% rename from compiler/desugar/special_loop.ts rename to compiler/old/desugar/special_loop.ts diff --git a/compiler/desugar/struct_literal.ts b/compiler/old/desugar/struct_literal.ts similarity index 100% rename from compiler/desugar/struct_literal.ts rename to compiler/old/desugar/struct_literal.ts diff --git a/compiler/info.ts b/compiler/old/info.ts similarity index 100% rename from compiler/info.ts rename to compiler/old/info.ts diff --git a/compiler/lexer.ts b/compiler/old/lexer.ts similarity index 100% rename from compiler/lexer.ts rename to compiler/old/lexer.ts diff --git a/compiler/lib.ts b/compiler/old/lib.ts similarity index 100% rename from compiler/lib.ts rename to compiler/old/lib.ts diff --git a/compiler/lowerer.ts b/compiler/old/lowerer.ts similarity index 100% rename from compiler/lowerer.ts rename to compiler/old/lowerer.ts diff --git a/compiler/lowerer_locals.ts b/compiler/old/lowerer_locals.ts similarity index 100% rename from compiler/lowerer_locals.ts rename to compiler/old/lowerer_locals.ts diff --git a/compiler/main.ts b/compiler/old/main.ts similarity index 100% rename from compiler/main.ts rename to compiler/old/main.ts diff --git a/compiler/middle/borrow_checker.ts b/compiler/old/middle/borrow_checker.ts similarity index 100% rename from compiler/middle/borrow_checker.ts rename to compiler/old/middle/borrow_checker.ts diff --git a/compiler/middle/cfg.ts b/compiler/old/middle/cfg.ts similarity index 100% rename from compiler/middle/cfg.ts rename to compiler/old/middle/cfg.ts diff --git a/compiler/middle/elim_blocks.ts b/compiler/old/middle/elim_blocks.ts similarity index 100% rename from compiler/middle/elim_blocks.ts rename to compiler/old/middle/elim_blocks.ts diff --git a/compiler/middle/elim_unused_local.ts b/compiler/old/middle/elim_unused_local.ts similarity index 100% rename from compiler/middle/elim_unused_local.ts rename to compiler/old/middle/elim_unused_local.ts diff --git a/compiler/middle/explicit_move_copy.ts b/compiler/old/middle/explicit_move_copy.ts similarity index 100% rename from compiler/middle/explicit_move_copy.ts rename to compiler/old/middle/explicit_move_copy.ts diff --git a/compiler/middle/lower_ast.ts b/compiler/old/middle/lower_ast.ts similarity index 100% rename from compiler/middle/lower_ast.ts rename to compiler/old/middle/lower_ast.ts diff --git a/compiler/middle/mir.ts b/compiler/old/middle/mir.ts similarity index 100% rename from compiler/middle/mir.ts rename to compiler/old/middle/mir.ts diff --git a/compiler/mod.ts b/compiler/old/mod.ts similarity index 100% rename from compiler/mod.ts rename to compiler/old/mod.ts diff --git a/compiler/mono.ts b/compiler/old/mono.ts similarity index 100% rename from compiler/mono.ts rename to compiler/old/mono.ts diff --git a/compiler/parser.ts b/compiler/old/parser.ts similarity index 100% rename from compiler/parser.ts rename to compiler/old/parser.ts diff --git a/compiler/resolver.ts b/compiler/old/resolver.ts similarity index 100% rename from compiler/resolver.ts rename to compiler/old/resolver.ts diff --git a/compiler/resolver_syms.ts b/compiler/old/resolver_syms.ts similarity index 100% rename from compiler/resolver_syms.ts rename to compiler/old/resolver_syms.ts diff --git a/compiler/token.ts b/compiler/old/token.ts similarity index 100% rename from compiler/token.ts rename to compiler/old/token.ts diff --git a/compiler/vtype.ts b/compiler/old/vtype.ts similarity index 100% rename from compiler/vtype.ts rename to compiler/old/vtype.ts