Skip to content

Instantly share code, notes, and snippets.

View mwolicki's full-sized avatar

Marcin Wolicki mwolicki

View GitHub Profile
@neildanson
neildanson / FizzBuzzLLVM.fs
Created December 2, 2017 09:11
Example of a fizzbuzz specific AST that emits LLVM bytecode that can be run through clang
module AST =
type Name = string
type TypeName = string
type Literal = Int of int | Bool of bool | String of string | Void
type Expr =
| Literal of Literal
| Rem of Expr * Expr