Skip to content

SD10/swift-compiler-stuff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 

Repository files navigation

swift-compiler-stuff

A scraped list of resources/inspiration for learning programming lang implementation in Swift

Why?

I've become fascinated with programming language implementation and design and I think it would be amazing to make a contribution to an open source language one day 😅. Just a list of random resources and inspiration for me as I begin this exploration. Most references are related to Swift, as it's the language I'm most comfortable with.

Repositories



https://github.com/marciok/Mu - It's a Swift playground explaining how to create a tiny programming language named Mu



https://github.com/louisdh/lioness - The Lioness Programming Language



https://github.com/louisdh/cub - The Cub Programming Language



https://github.com/silt-lang/silt - An ML-like programming language.



https://github.com/trill-lang - A type safe, compiled language inspired by (and written in) Swift



https://github.com/trill-lang/Kaleidoscope - Kaleidoscope is an LLVM language for writing tutorials.



https://github.com/harlanhaskins/Kaleidoscope-Swift - A compiler for the Kaleidoscope sample project, written in Swift



https://github.com/bencochran/Kaleidoscope - Simple programming language written in Swift and compiled with LLVM



https://github.com/kai-language/kai - An expressive low level programming language http://docs.kai-lang.org



https://github.com/joewillsher/Vist - The Vist programming language



https://github.com/dcutting/Song - Song is a terse functional programming language.



https://github.com/alexito4/slox - Swift implementation of a Lox interpreter



https://github.com/hashemi/slox - Lox tree-walking interpreter written in Swift - Based on Part II of Bob Nystrom's Book "Crafting Interpreters"



https://github.com/hashemi/bslox - Lox bytecode VM written in Swift - Based on Part III of Bob Nystrom's Book "Crafting Interpreters"



https://github.com/eirikvaa/slox - Swift implementation of the Lox programming language as seen in the Crafting Interpreters book by Bob Nystrom



https://github.com/yanagiba/swift-transform - A source-to-source compiler that transforms Swift code and produces the equivalent source code in other programming languages. http://yanagiba.org/swift-transform



https://github.com/SlayterDev/DeafShark - The DeafShark Programming Language implemented in Swift, Objective-C++, and LLVM http://slayterdev.github.io/DeafShark



https://github.com/kyouko-taiga/anzen - The Anzen programming language.



https://github.com/bencochran/Kaleidoscope - Simple programming language written in Swift and compiled with LLVM



https://github.com/orbit-lang/Orbit - Orbit programming language



https://github.com/jweinst1/Pigeon - A streamable, fast interpreted programming language



https://github.com/BrettRToomey/Llama - A programming language made in Swift 3



https://github.com/marciok/Fabienne - Fabienne is a programming language, inspired by kaleidoscope.



https://github.com/caosuyang/Swizzle - Swizzle - The Swift Programming Language, Started in the Swift, version 3.1



https://github.com/michaelkent94/willow - willow is a programming language



https://github.com/vinivendra/jokr - The Jokr Programming Language.



https://github.com/jweinst1/fenon - The abstract programming language



https://github.com/kyouko-taiga/void-lang - The void programming language



https://github.com/josephessin/Mindnumb - Mindnumb Compiler for the Mindfudge Programming Language



https://github.com/jweinst1/CornFlake - A small programming language interpreted in Swift



https://github.com/ZidPlan/zid-swift - ZID implementation in Swift programming language



https://github.com/luosheng/HQ9Plus - HQ9+ is a joke programming language.



https://github.com/emlai/gaia - A statically duck-typed functional programming language. Pre-alpha. https://emlai.github.io/gaia/



https://github.com/jpeinelt/kopke - Programming language implemented in Swift for the LLVM



https://github.com/anayini/swiftlox - Implementation of the Lox programming language in Swift



https://github.com/ninguid-owl/Invocat - A nondeterministic, generative programming language for aleatory text.



https://github.com/dcutting/song - Song is a terse, functional programming language with a Ruby-like syntax.



https://github.com/paulgriffiths/calclang - Implementation of a simple mathematical programming language environment for OS X.



https://github.com/xebia/xtime-ios - An experiment in (at least one) monkey(s), typewriter(s) and the Swift programming language.



https://github.com/hashemi/FlyingMonkey - Monkey interpreter written in Swift - Based on Thorsten Ball's Book "Writing an Interpreter in Go"



https://github.com/DJBen/ShakespearePL-Swift - An implementation of the parser of Shakespeare programming language, in Swift.



https://github.com/fferri/ND.swift - A minimal interpreted programming language inspired by Algol, LISP, Golog, and others.



https://github.com/agisilaos/CompilerSwift - Building a compiler in Swift with LLVM



https://github.com/olenhad/sisp - A Simple Lisp LLVM Compiler. Implemented in Swift



https://github.com/S2dentik/Cobain - Simple language built on top of LLVM



https://github.com/jtrivedi/Teddy-Compiler - A simple, educational compiler implemented in Swift.



https://github.com/mkchoi212/LBAC-Swift - Let's Build a Compiler by Jack Crenshaw translated to Swift Playgrounds



https://github.com/apbendi/bitsy-swift - A small compiler, written in Swift, compiling the Bitsy language



https://github.com/evanjhopkins/Compiler - A compiler written in Swift to compile Alan++ into machine code



https://github.com/rsrbk/Compiler - Simple compiler written on swift



https://github.com/apbendi/bitsyspec - Bitsy: The best language to implement when writing your first compiler or interpreter



https://github.com/livioso/cpib - 🦄 A tiny compiler written in Swift.



https://github.com/yanagiba/swift-transform - A source-to-source compiler that transforms Swift code and produces the equivalent source code in other programming languages. http://yanagiba.org/swift-transform



https://github.com/HaniKazmi/swift-compiler - A compiler for a small turing complete language, written in Swift.



https://github.com/JadenGeller/CS-81-Project - Compiler Project



https://github.com/andrewcb/swiftemplate - A compile-time HTML templating system for Swift, consisting of a compiler that produces Swift code



https://github.com/gwk/ploy - Ploy language compiler (ongoing experiment, in Swift).



https://github.com/vinivendra/Tiger - Repository for storing the Tiger exercises (modern compiler implementation in ML) in Swift/C



https://github.com/Krillere/Expressions - Compiler for the Expression language in Swift. Expression is a simple functional programming language, explained in the readme



https://github.com/jweinst1/Noodle - A small, interpreted programmling language written in Swift

LLVM



https://github.com/llvm-swift/LLVMSwift - A Swift wrapper for the LLVM C API (version 5.0)

Transpiler

https://github.com/jweinst1/Peryton - A Python to Swift Transpiler



https://github.com/shift-js/shift-js - Swift to JavaScript transpiler



https://github.com/ankurp/swift-js - Swift to JS Transpiler



https://github.com/moshbit/Kotlift - Kotlift is the first source-to-source language transpiler from Kotlin to Swift



https://github.com/BenchR267/Get-Schwifty - Get Schwifty is a self-hosted Swift transpiler and was originally build for my WWDC scholarship application.



https://github.com/BenchR267/SwiftTranspiler - Example implementation for a Swift -> Javascript transpiler with ParserCombinator.

Resources



https://tomassetti.me/resources-create-programming-languages/ - 68 Resources To Help You To Create Programming Languages



https://github.com/aalhour/awesome-compilers - 😎 Curated list of awesome resources on Compilers, Interpreters and Runtimes.



https://www.skilled.io/u/playgroundscon/building-a-compiler - How to Clang Your Dragon 🐉 Building a Compiler with LLVM - by Harlan Haskins



http://craftinginterpreters.com/contents.html - A handbook for making programming languages



https://beautifulracket.com - beautiful racket, how to make your own programming languages with racket



https://www.microsoft.com/en-us/research/publication/implementing-functional-languages-a-tutorial/ - Implementing functional languages: a tutorial

About

A scraped list of resources/inspiration for learning programming lang implementation in Swift

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published