P
P
Popou2020-09-05 17:12:43
C++ / C#
Popou, 2020-09-05 17:12:43

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

2 answer(s)
D
Daniil Demidko, 2020-09-05
@Popou

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.

V
Vladimir Korotenko, 2020-09-05
@firedragon

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 question

Ask a Question

731 491 924 answers to any question