What does HackerNews think of the-super-tiny-compiler?

:snowman: Possibly the smallest compiler ever

Language: JavaScript

You could start here:

https://github.com/jamiebuilds/the-super-tiny-compiler

That converts from lisp-like to javascript. Really though this is a big field, and there are lots of resources out there.

To get started look at your input language; you'll need to lex and parse that. Then massage the parsed structure into the appropriate output.

You can see me convert brainfuck to C, or x86 assembly language here:

https://github.com/skx/bfcc

You may want to have a look at an "MVP" compiler one of such projects is The Super Tiny Compiler[0]

[0]https://github.com/jamiebuilds/the-super-tiny-compiler

There is a GitHub project I've used as reference a couple of times, written in JS.

https://github.com/jamiebuilds/the-super-tiny-compiler