Answer the question
In order to leave comments, you need to log in
How to compile one file, or what languages can do it?
I would like to create my own language (purely for the sake of experience), but I would like my program to be not an interpreter, but something like a compiler that will translate my language into another. Just so that there is no direct huge assembly.
Well, or are there any "light" low-level languages that are not difficult to compile. I'm at the height of the Dunning-Kruger effect at the moment, so forgive me.
Answer the question
In order to leave comments, you need to log in
You need any compilable language, for example the gcc compiler for C++ easily compiles the files individually. You will translate your language into this language, and then give the file to the compiler.
The technology is called transpilation. At the input, your language at the output is what any of the languages understands. If you are interested, you can delve into SQLite, where the amount of code is small and everything is clear.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question