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.
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.