+ 4

What programming language is used for developing a compiler?

Let's say..you have written a program in C..the compiler compiles and produces the Output.. let's say the compiler is developed in some X language..so, you need a compiler to compile the code written for developing a compiler...this goes infinitely..Can someone explain me on this?

10th Jan 2017, 6:37 AM
Venkat Subramanian
Venkat Subramanian - avatar
2 Respostas
+ 8
You can use any language to make a compiler but there are tools that exist to create one. Like YACC (Yet Another Compiler Compiler) for example and Lex that analyzes the code lexically.
10th Jan 2017, 6:54 AM
Karl T.
Karl T. - avatar