rs2007 / lisp-compiler Goto Github PK
View Code? Open in Web Editor NEWLearning about llvm ir by building a lisp compiler
Learning about llvm ir by building a lisp compiler
Function of the following kind:
(def print_char (c) (sys_write 1 &c 1))
return 1 as the exit code. The reason 1 is being returned is because the sideffect syscall on success returns 1 to the corresponding symbol in LLVM IR. On unix systems 1 usually denotes an error, hence this has to be fixed with some additional logic within the compiled IR(Bitwise NOT maybe?)
Nested if is not supported currently.
The compiler currently crashes when if expressions are provided without an else block. For example:
(if (< n 9) (+ 2 3))
Normally languages shift execution to the rest of the function body in case the condition is not met and an else block is not provided
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.