+ 3

What is the best language to build a compiler ?

29th Jan 2017, 10:12 PM
Ahmad Naja
Ahmad Naja - avatar
3 odpowiedzi
+ 2
for compiler, you should use assembly languages like c--. But, I have found very few knowledge on internet for c--. You have to buy books to get started
30th Jan 2017, 1:58 AM
Aditya kumar pandey
Aditya kumar pandey - avatar
+ 1
C++ has two sides to it. It has a low-level development side which makes it seem like a natural language for doing low level thing like code generation. It also has a high-level side (which C does not) that lets you structure a complex application (like a compiler) in a logical, object oriented way, while still maintaining performance. Because it has both the low and high level aspects to it, it's a good choice for large application which require low-level features or performance.
29th Jan 2017, 10:24 PM
memol
+ 1
all major compilers are written in c, there is a lesser known language called Ocaml which is also trending for interpreters like python.
3rd Feb 2017, 4:22 PM
Chinmay Bhale
Chinmay Bhale - avatar