是否有益于程序员学习如何构建一个编译器? [英] Is it beneficial for a programmer to learn how to build a compiler?
问题描述
当涉及到不同类型的程序员时,有很多种类。一般来说,有益于程序员学习如何构建一个编译器?在什么情况下编译器编程需要或不需要?
There is a lot of variety when it comes to the different types of programmers. In general, is beneficial for a programmer to learn how to build a compiler? In what cases would compiler programming be, or not be, needed?
推荐答案
编译器编程是一个有趣的话题,它有一些很大的价值。在学院,我去了它是一个选修,语言设计和实施。我个人感激已经采取它。我们学习了实现词法分析器,解析器和字节码发射器的各种方法。
Compiler programming is an interesting topic and there is some great value to it. At the college I went to it was an elective, Language Design and Implementation. I'm personally grateful to have taken it. We learned the various ways to implement lexers, parsers, and bytecode emitters.
我看到的真正价值在于它照亮了我依赖的黑盒让我的程序运行。它让我更好地了解编译器如何工作,并帮助我更好地了解编译器错误。
The real value that I've seen is that it illuminated the black box that I depend on to get my program up and running. It gave me a better insight into how the compiler works, and helped me better understand compiler errors.
将源代码编译为代码的过程实际上是一般的方式,程序做,采取一些输入,执行一些过程,并输出结果。编译器有一些非常明确的想法,如何最好地这样做。
The process of compiling source into code is actually in a general way what most programs do, take some input, perform some process, and output the result. A compiler has some very well-defined ideas on how this should best be done.
我认为在所有这是对我有好处,目前我在基于Java的Web应用程式。
I think in all it was beneficial to me, and currently I work on Java based web apps.
这篇关于是否有益于程序员学习如何构建一个编译器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!