兼容 C99 的多遍编译器,使用 TypeScript 编写,支持 GCC 扩展。具备手工编写的左递归解析器、自定义 IR、基于 SSA 的优化器,以及完整的前端/后端流水线。可编译为 x86 机器码,并集成汇编器和模拟器。
toy-compiler 开源项目推荐(56 个)
toy-compiler 话题在 GitHub 上没有填写简介,这里按 Star 数汇总最相关的热门仓库。
热门项目 前 20
按 Star 数排序展示前 20 个 · GitHub 共 56 个仓库Let's Build a Compiler (in Haskell)
A simple Pascal interpreter written in rust.
Optimizing compiler for a statically-typed C-like language, featuring both an LLVM backend and a fully custom backend targeting x86-64 and ARM64
A Turing complete language 😉
Compiler for a small Scala subset
Compiler and VM(interpreter), Using SSA form and doing some optimizations.
A toy programming language compiled to LLVM IR (<200 LoC, dumbed down for educational)
(WIP) A compiler written in Awk
General purpose, statically typed, functional programming language
Several simple compilers/interpreters implemented in C/C++ or Haskell, e.g. music notation compiler (simple music notation to abc notation), several compilers for toy programming languages, and an interpreter for a JavaScript-like programming language.
An imperative, statically-typed toy language
An other toy compiler in Ocaml, made with Menhir and Ocamlex for 3I018 compilation course at university
[LLM Slop] Trying to make a programming language with interesting features
Vamos construir um compilador. Tradução e adaptação do tutorial Let's Build A Compiler de Jack Crenshaw.
Compiler code of m3k. m3k is a Lisp dialect that was written in TypeScript and compiles to JavaScript.
C subset toy compiler. Self-hosting and retargetable. Generates Linux elf, assembler, pseudo-C, or javascript.
自作Cコンパイラ
该项目在 GitHub 上没有填写描述
A self hosted compiler project
关于这个话题
- 清单取自 GitHub 话题页并按 Star 数排序,每次展示前 20 个项目;原始页面见 https://github.com/topics/toy-compiler。
- 该话题在 GitHub 上共有 56 个仓库, 本站收录的是其中最热门的 20 个,不是全量列表。
- Star / Fork 每日自动刷新一次,实时数据以 GitHub 为准。
- 当前 20 个项目累计 959 Star,覆盖 11 种主要语言,数据更新于 2026-11-11。
- 中文介绍来自 GitHub 官方话题说明(github/explore)的机器翻译,可点「查看原文」对照;译文缺失时会先展示原文。