搜集用 LLVM 创造动态语言的例子

很想能自己造一门完整的语言, 一直关注这些东西, 现在还是出在收集阶段.
思路是将不写类型声明的代码解析跟推断, 生成 LLVM IR, 然后交给 LLVM 处理.
如果你看到其他可以作为教程的例子, 欢迎评论在下边 :)


Python

Let's Write an LLVM Specializer for Python!

http://dev.stephendiehl.com/numpile/

Kaleidoscope

Implementing a JIT Compiled Language with Haskell and LLVM

http://www.stephendiehl.com/llvm/

crisp-compiler

A compiler for Crisp (Lisp/Scheme-inspired language) in Haskell, with an LLVM backend

https://github.com/talw/crisp-compiler

taylor

Swift programming language compiler written in Haskell.

https://github.com/penberg/taylor

Brainfuck

Building a Brainfuck compiler with LLVM

https://www.jeremyroman.com/2012/12/11/building-a-brainfuck-compiler-with-llvm/

simple C

My First LLVM Compiler

http://www.wilfred.me.uk/blog/2015/02/21/my-first-llvm-compiler/

Clasp

Clasp is a Common Lisp implementation that interoperates with C++ and uses LLVM for just-in-time (JIT) compilation to native code

https://github.com/drmeister/clasp

Hue

Hue — a functional programming language for fun & play

http://rsms.me/2012/05/14/hue.html

kaleidoscope.coffee

Node.js Bindings for the LLVM compiler infrastructure

https://github.com/guangwong/node-llvm-x/blob/master/examples/kaleidoscope.coffee

corvus

A statically-typed, low-level dialect of Lisp that targets LLVM.

https://github.com/eudoxia0/corvus

rhine-ml

Rhine is a Clojure-inspired Lisp on LLVM JIT featuring variable-length untyped arrays, first-class functions, closures, and macros.

https://github.com/artagnon/rhine-ml

llvm-clojure-bindings

LLVM Clojure Bindings and Toy Language.

https://github.com/jasonjckn/llvm-clojure-bindings

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值