From c157a5e6ec0be2c71492b21aacf0e916d31c3866 Mon Sep 17 00:00:00 2001 From: Sam Vervaeck Date: Mon, 15 Jan 2024 13:56:07 +0100 Subject: [PATCH] Move JavaScript-based compiler to bootstrap/js --- {compiler => bootstrap/js/compiler}/.gitignore | 0 {compiler => bootstrap/js/compiler}/package-lock.json | 0 {compiler => bootstrap/js/compiler}/package.json | 0 {compiler => bootstrap/js/compiler}/src/analysis.ts | 0 {compiler => bootstrap/js/compiler}/src/bin/bolt.ts | 0 {compiler => bootstrap/js/compiler}/src/c.ts | 0 {compiler => bootstrap/js/compiler}/src/checker.ts | 0 {compiler => bootstrap/js/compiler}/src/constraints.ts | 0 {compiler => bootstrap/js/compiler}/src/cst.ts | 0 {compiler => bootstrap/js/compiler}/src/diagnostics.ts | 0 {compiler => bootstrap/js/compiler}/src/emitter.ts | 0 {compiler => bootstrap/js/compiler}/src/index.ts | 0 {compiler => bootstrap/js/compiler}/src/js.ts | 0 {compiler => bootstrap/js/compiler}/src/parser.ts | 0 {compiler => bootstrap/js/compiler}/src/passes/BoltToC.ts | 0 {compiler => bootstrap/js/compiler}/src/passes/BoltToJS.ts | 0 .../js/compiler}/src/passes/TypeclassDictPass.ts | 0 {compiler => bootstrap/js/compiler}/src/program.ts | 0 {compiler => bootstrap/js/compiler}/src/scanner.ts | 0 {compiler => bootstrap/js/compiler}/src/scope.ts | 0 .../js/compiler}/src/test/eager-solving-global.bolt | 0 .../js/compiler}/src/test/enum-declaration-app.bolt | 0 .../js/compiler}/src/test/enum-declaration-maybe.bolt | 0 .../js/compiler}/src/test/mutual-recursion-2.bolt | 0 .../js/compiler}/src/test/mutual-recursion.bolt | 0 .../js/compiler}/src/test/nested-definitions.bolt | 0 .../js/compiler}/src/test/return-types-polymorphic.bolt | 0 {compiler => bootstrap/js/compiler}/src/test/tuple-access.bolt | 0 {compiler => bootstrap/js/compiler}/src/test/typecheck.md | 0 .../js/compiler}/src/test/unify-similar-records.bolt | 0 {compiler => bootstrap/js/compiler}/src/types.ts | 0 {compiler => bootstrap/js/compiler}/src/util.ts | 0 {compiler => bootstrap/js/compiler}/tsconfig.json | 0 package-lock.json => bootstrap/js/package-lock.json | 0 package.json => bootstrap/js/package.json | 0 35 files changed, 0 insertions(+), 0 deletions(-) rename {compiler => bootstrap/js/compiler}/.gitignore (100%) rename {compiler => bootstrap/js/compiler}/package-lock.json (100%) rename {compiler => bootstrap/js/compiler}/package.json (100%) rename {compiler => bootstrap/js/compiler}/src/analysis.ts (100%) rename {compiler => bootstrap/js/compiler}/src/bin/bolt.ts (100%) rename {compiler => bootstrap/js/compiler}/src/c.ts (100%) rename {compiler => bootstrap/js/compiler}/src/checker.ts (100%) rename {compiler => bootstrap/js/compiler}/src/constraints.ts (100%) rename {compiler => bootstrap/js/compiler}/src/cst.ts (100%) rename {compiler => bootstrap/js/compiler}/src/diagnostics.ts (100%) rename {compiler => bootstrap/js/compiler}/src/emitter.ts (100%) rename {compiler => bootstrap/js/compiler}/src/index.ts (100%) rename {compiler => bootstrap/js/compiler}/src/js.ts (100%) rename {compiler => bootstrap/js/compiler}/src/parser.ts (100%) rename {compiler => bootstrap/js/compiler}/src/passes/BoltToC.ts (100%) rename {compiler => bootstrap/js/compiler}/src/passes/BoltToJS.ts (100%) rename {compiler => bootstrap/js/compiler}/src/passes/TypeclassDictPass.ts (100%) rename {compiler => bootstrap/js/compiler}/src/program.ts (100%) rename {compiler => bootstrap/js/compiler}/src/scanner.ts (100%) rename {compiler => bootstrap/js/compiler}/src/scope.ts (100%) rename {compiler => bootstrap/js/compiler}/src/test/eager-solving-global.bolt (100%) rename {compiler => bootstrap/js/compiler}/src/test/enum-declaration-app.bolt (100%) rename {compiler => bootstrap/js/compiler}/src/test/enum-declaration-maybe.bolt (100%) rename {compiler => bootstrap/js/compiler}/src/test/mutual-recursion-2.bolt (100%) rename {compiler => bootstrap/js/compiler}/src/test/mutual-recursion.bolt (100%) rename {compiler => bootstrap/js/compiler}/src/test/nested-definitions.bolt (100%) rename {compiler => bootstrap/js/compiler}/src/test/return-types-polymorphic.bolt (100%) rename {compiler => bootstrap/js/compiler}/src/test/tuple-access.bolt (100%) rename {compiler => bootstrap/js/compiler}/src/test/typecheck.md (100%) rename {compiler => bootstrap/js/compiler}/src/test/unify-similar-records.bolt (100%) rename {compiler => bootstrap/js/compiler}/src/types.ts (100%) rename {compiler => bootstrap/js/compiler}/src/util.ts (100%) rename {compiler => bootstrap/js/compiler}/tsconfig.json (100%) rename package-lock.json => bootstrap/js/package-lock.json (100%) rename package.json => bootstrap/js/package.json (100%) diff --git a/compiler/.gitignore b/bootstrap/js/compiler/.gitignore similarity index 100% rename from compiler/.gitignore rename to bootstrap/js/compiler/.gitignore diff --git a/compiler/package-lock.json b/bootstrap/js/compiler/package-lock.json similarity index 100% rename from compiler/package-lock.json rename to bootstrap/js/compiler/package-lock.json diff --git a/compiler/package.json b/bootstrap/js/compiler/package.json similarity index 100% rename from compiler/package.json rename to bootstrap/js/compiler/package.json diff --git a/compiler/src/analysis.ts b/bootstrap/js/compiler/src/analysis.ts similarity index 100% rename from compiler/src/analysis.ts rename to bootstrap/js/compiler/src/analysis.ts diff --git a/compiler/src/bin/bolt.ts b/bootstrap/js/compiler/src/bin/bolt.ts similarity index 100% rename from compiler/src/bin/bolt.ts rename to bootstrap/js/compiler/src/bin/bolt.ts diff --git a/compiler/src/c.ts b/bootstrap/js/compiler/src/c.ts similarity index 100% rename from compiler/src/c.ts rename to bootstrap/js/compiler/src/c.ts diff --git a/compiler/src/checker.ts b/bootstrap/js/compiler/src/checker.ts similarity index 100% rename from compiler/src/checker.ts rename to bootstrap/js/compiler/src/checker.ts diff --git a/compiler/src/constraints.ts b/bootstrap/js/compiler/src/constraints.ts similarity index 100% rename from compiler/src/constraints.ts rename to bootstrap/js/compiler/src/constraints.ts diff --git a/compiler/src/cst.ts b/bootstrap/js/compiler/src/cst.ts similarity index 100% rename from compiler/src/cst.ts rename to bootstrap/js/compiler/src/cst.ts diff --git a/compiler/src/diagnostics.ts b/bootstrap/js/compiler/src/diagnostics.ts similarity index 100% rename from compiler/src/diagnostics.ts rename to bootstrap/js/compiler/src/diagnostics.ts diff --git a/compiler/src/emitter.ts b/bootstrap/js/compiler/src/emitter.ts similarity index 100% rename from compiler/src/emitter.ts rename to bootstrap/js/compiler/src/emitter.ts diff --git a/compiler/src/index.ts b/bootstrap/js/compiler/src/index.ts similarity index 100% rename from compiler/src/index.ts rename to bootstrap/js/compiler/src/index.ts diff --git a/compiler/src/js.ts b/bootstrap/js/compiler/src/js.ts similarity index 100% rename from compiler/src/js.ts rename to bootstrap/js/compiler/src/js.ts diff --git a/compiler/src/parser.ts b/bootstrap/js/compiler/src/parser.ts similarity index 100% rename from compiler/src/parser.ts rename to bootstrap/js/compiler/src/parser.ts diff --git a/compiler/src/passes/BoltToC.ts b/bootstrap/js/compiler/src/passes/BoltToC.ts similarity index 100% rename from compiler/src/passes/BoltToC.ts rename to bootstrap/js/compiler/src/passes/BoltToC.ts diff --git a/compiler/src/passes/BoltToJS.ts b/bootstrap/js/compiler/src/passes/BoltToJS.ts similarity index 100% rename from compiler/src/passes/BoltToJS.ts rename to bootstrap/js/compiler/src/passes/BoltToJS.ts diff --git a/compiler/src/passes/TypeclassDictPass.ts b/bootstrap/js/compiler/src/passes/TypeclassDictPass.ts similarity index 100% rename from compiler/src/passes/TypeclassDictPass.ts rename to bootstrap/js/compiler/src/passes/TypeclassDictPass.ts diff --git a/compiler/src/program.ts b/bootstrap/js/compiler/src/program.ts similarity index 100% rename from compiler/src/program.ts rename to bootstrap/js/compiler/src/program.ts diff --git a/compiler/src/scanner.ts b/bootstrap/js/compiler/src/scanner.ts similarity index 100% rename from compiler/src/scanner.ts rename to bootstrap/js/compiler/src/scanner.ts diff --git a/compiler/src/scope.ts b/bootstrap/js/compiler/src/scope.ts similarity index 100% rename from compiler/src/scope.ts rename to bootstrap/js/compiler/src/scope.ts diff --git a/compiler/src/test/eager-solving-global.bolt b/bootstrap/js/compiler/src/test/eager-solving-global.bolt similarity index 100% rename from compiler/src/test/eager-solving-global.bolt rename to bootstrap/js/compiler/src/test/eager-solving-global.bolt diff --git a/compiler/src/test/enum-declaration-app.bolt b/bootstrap/js/compiler/src/test/enum-declaration-app.bolt similarity index 100% rename from compiler/src/test/enum-declaration-app.bolt rename to bootstrap/js/compiler/src/test/enum-declaration-app.bolt diff --git a/compiler/src/test/enum-declaration-maybe.bolt b/bootstrap/js/compiler/src/test/enum-declaration-maybe.bolt similarity index 100% rename from compiler/src/test/enum-declaration-maybe.bolt rename to bootstrap/js/compiler/src/test/enum-declaration-maybe.bolt diff --git a/compiler/src/test/mutual-recursion-2.bolt b/bootstrap/js/compiler/src/test/mutual-recursion-2.bolt similarity index 100% rename from compiler/src/test/mutual-recursion-2.bolt rename to bootstrap/js/compiler/src/test/mutual-recursion-2.bolt diff --git a/compiler/src/test/mutual-recursion.bolt b/bootstrap/js/compiler/src/test/mutual-recursion.bolt similarity index 100% rename from compiler/src/test/mutual-recursion.bolt rename to bootstrap/js/compiler/src/test/mutual-recursion.bolt diff --git a/compiler/src/test/nested-definitions.bolt b/bootstrap/js/compiler/src/test/nested-definitions.bolt similarity index 100% rename from compiler/src/test/nested-definitions.bolt rename to bootstrap/js/compiler/src/test/nested-definitions.bolt diff --git a/compiler/src/test/return-types-polymorphic.bolt b/bootstrap/js/compiler/src/test/return-types-polymorphic.bolt similarity index 100% rename from compiler/src/test/return-types-polymorphic.bolt rename to bootstrap/js/compiler/src/test/return-types-polymorphic.bolt diff --git a/compiler/src/test/tuple-access.bolt b/bootstrap/js/compiler/src/test/tuple-access.bolt similarity index 100% rename from compiler/src/test/tuple-access.bolt rename to bootstrap/js/compiler/src/test/tuple-access.bolt diff --git a/compiler/src/test/typecheck.md b/bootstrap/js/compiler/src/test/typecheck.md similarity index 100% rename from compiler/src/test/typecheck.md rename to bootstrap/js/compiler/src/test/typecheck.md diff --git a/compiler/src/test/unify-similar-records.bolt b/bootstrap/js/compiler/src/test/unify-similar-records.bolt similarity index 100% rename from compiler/src/test/unify-similar-records.bolt rename to bootstrap/js/compiler/src/test/unify-similar-records.bolt diff --git a/compiler/src/types.ts b/bootstrap/js/compiler/src/types.ts similarity index 100% rename from compiler/src/types.ts rename to bootstrap/js/compiler/src/types.ts diff --git a/compiler/src/util.ts b/bootstrap/js/compiler/src/util.ts similarity index 100% rename from compiler/src/util.ts rename to bootstrap/js/compiler/src/util.ts diff --git a/compiler/tsconfig.json b/bootstrap/js/compiler/tsconfig.json similarity index 100% rename from compiler/tsconfig.json rename to bootstrap/js/compiler/tsconfig.json diff --git a/package-lock.json b/bootstrap/js/package-lock.json similarity index 100% rename from package-lock.json rename to bootstrap/js/package-lock.json diff --git a/package.json b/bootstrap/js/package.json similarity index 100% rename from package.json rename to bootstrap/js/package.json