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
Or read this on Hacker News