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:
You may want to have a look at an "MVP" compiler
one of such projects is The Super Tiny Compiler[0]
There is a GitHub project I've used as reference a couple of times, written in JS.
I enjoyed Kyle James' "The Super Tiny Compiler."
Build Your Own React https://github.com/hexacta/didact
Create Your Own Programming Language http://createyourproglang.com/
Build Your Own Sinatra: https://getgood.at/build-your-own/sinatra (disclaimer: I'm the author of this)
Vanilla JS series https://javascript30.com/
Super Tiny Compiler https://github.com/jamiebuilds/the-super-tiny-compiler