蒐集用 LLVM 創造動態語言的例子

很想能本身造一門完整的語言, 一直關注這些東西, 如今仍是出在收集階段.
思路是將不寫類型聲明的代碼解析跟推斷, 生成 LLVM IR, 而後交給 LLVM 處理.
若是你看到其餘能夠做爲教程的例子, 歡迎評論在下邊 :)html


Python

Let's Write an LLVM Specializer for Python!node

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

Kaleidoscope

Implementing a JIT Compiled Language with Haskell and LLVMgithub

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

crisp-compiler

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

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

taylor

Swift programming language compiler written in Haskell.blog

https://github.com/penberg/taylor教程

Brainfuck

Building a Brainfuck compiler with LLVMci

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

相關文章
相關標籤/搜索