Get the latest tech news

Writing a Lisp compiler (Lisp to assembly) from scratch in JavaScript (2018)


Writing a lisp compiler from scratch in JavaScript: 1. lisp to assembly

The parser should produce an Abstract Syntax Tree (AST), a data structure representing the input program. For a more helpful compiler we could check that the entire program was actually parsed by failing if the second element of the return result is not the empty string. Parameters are stored (in order) in the RDI, RSI, and RDX registers We won't support passing more than three arguments

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Scratch

Scratch

Photo of javascript

javascript

Photo of assembly

assembly

Related news:

News photo

JavaScript, Python, Java: Redmonk's Programming Language Ranking Sees Lack of Change

News photo

Understanding Concurrency, Parallelism and JavaScript

News photo

Writing an HTTP Server in Go from Scratch: Part 1