42

从无到有用Python创造一门属于自己的编程语言1-又耳笔记

 4 years ago
source link: https://blog.51cto.com/youerning/2471655
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
前言如果你会编译原理,对其中的词法分析算法,语法分析算法足够了解,那么用什么语言来做这样的一件事情都是可以的,之所以使用Python只是因为本人会的编程语言中,Python的使用时间最长,也最得心应手。所谓性能什么的不在本文的考虑范围内,本文主要重点是语法分析的表达式的解析,语法解析使用的是普拉特分析法,一种自顶向下的语法解析方法。文章目录如下:四则运算的问题词法分析语法分析与解释执行参考链接这有

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK