Java中的Java编译器 [英] Java compiler in java

查看:28
本文介绍了Java中的Java编译器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能的重复:
在自身"中实现编译器

我正在阅读有关 Java 编译器的信息,并意识到它是用 Java 编写的.这怎么可能?

I was reading about the Java compiler and realized that it was written in Java. How can that be possible?

我的意思是,这不是像鸡和鸡蛋"的问题吗?我们如何用相同的语言编写编译器?

I mean, isnt this like "Chicken and egg" problem? How can we write the compiler in the same language?

推荐答案

原创已写在 C. 然后你可以用 Java 编写下一个版本.:)

The original was written in C. Then you can write the next version in Java. :)

这篇关于Java中的Java编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆