News for hackers. Stuff that matters.
Re:Ask HN: If Unix is written in C, how did they run C befor... by tetha on Tuesday April 04, 2023 @01:53PM (#35443498)
A lot, if not all of this, was based on the Dragon Book[1]

https://en.wikipedia.org/wiki/Compilers:_Principles,_Techniq...

Re:Ask HN: If Unix is written in C, how did they run C befor... by bb88 on Tuesday April 04, 2023 @02:20PM (#35443877)
A lot of people build toy languages too -- to the point that some become self hosting.

But there are also just an absolute ton of parsers out there to define a grammar and parse the language into an AST (Abstract Syntax Tree).

Once you have an AST then you can build an interpreter that runs the code directly in a JVM, or you can build a compiler that translates AST into LLVM, say.