mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-11-30 09:54:33 -06:00
Adds **RazorForge** (https://github.com/dj-lumiere/razorforge-suflae), an open-source (MIT) compiled language with an LLVM backend. - Scoping issue: #8977 - Paired infra install recipe: compiler-explorer/infra#2259 ### What it shows LLVM IR. `RazorForgeCompiler` runs the compiler's `codegen` verb (tokenize → parse → semantic analysis → codegen, writing `<file>.ll`) with **no external toolchain invoked** — no opt/clang/link. The language entry sets `monacoDisassembly: 'llvm-ir'`. (Native assembly and an Execute pane could follow later; the release bundles the toolchain.) ### Changes - `lib/languages.ts` — RazorForge entry (`.rf`, custom monaco mode, `monacoDisassembly: 'llvm-ir'`). - `lib/compilers/razorforge.ts` + `lib/compilers/_all.ts` — the compiler class. - `types/languages.interfaces.ts` — language key. - `static/modes/razorforge-mode.ts` + `static/modes/_all.ts` — Monaco mode (no existing grammar). - `etc/config/razorforge.{defaults,amazon}.properties` — config for the released 0.1.0–0.3.0 tarballs (default 0.3.0). - `examples/razorforge/default.rf` — example (verified compiling under 0.3.0). Compilers are installed by the paired infra PR from the public GitHub release tarballs. Open to any adjustments per the scoping issue (s3 mirror vs direct tarballs, the custom Monaco mode, IR-only first landing). --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> Co-authored-by: Patrick Quist <partouf@gmail.com>