+ 20

New languages

How new languages are made? In what language code their implementation works? Please give basic knowledge about it.

12th Jul 2019, 5:23 PM
Tushar
Tushar - avatar
5 Réponses
+ 7
A lot of languages are made by supporting a subset of the language in one language. Then, write your full support of your language using that subset. The final result is the Java compiler is written in Java, but the original subset was provided by C. The subset would skip as much of the language as possible maybe even dropping error checking to make the code as small as possible. The first version in the new language would also support only the subset. Once it can compile itself, it is time to expand.
14th Jul 2019, 3:07 AM
John Wells
John Wells - avatar
+ 11
It is written in Java, but it can generate both the lexer and the parser in languages as varied as C#, C++, Python, Javascript, Go, etc. Your own lexer and parser. If you need the best performance and you can create your own parser. You just need to have the necessary computer science knowledge.
12th Jul 2019, 6:19 PM
Muaz Ahmad
Muaz Ahmad - avatar
+ 5
New languages are made using already existing languages.
13th Jul 2019, 10:59 AM
Manoj
Manoj - avatar
+ 4
New langs are created in C++, Python, Java, C... Of course, you have cross-platforms, which works on existing langs, for example, QT is cross-platform based on GUI apps which is created in C++.
13th Jul 2019, 10:54 PM
Baltazarus
Baltazarus - avatar