Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

精读《手写 SQL 编译器 - 语法分析》 #95

Closed
ascoders opened this issue Jul 17, 2018 · 3 comments
Closed

精读《手写 SQL 编译器 - 语法分析》 #95

ascoders opened this issue Jul 17, 2018 · 3 comments

Comments

@ascoders
Copy link
Owner

又进入精读连载的季节!前端也学一点编译原理,通过几期的文章,一步步介绍如何手写一个 SQL 编译器。

系列文章分为:
手写 SQL 编译器 - 词法分析
手写 SQL 编译器 - 文法介绍
手写 SQL 编译器 - 语法分析 new !
手写 SQL 编译器 - 分支预测

@YuYang019
Copy link

写的真好

@sp42
Copy link

sp42 commented Jun 2, 2021

太深奥了。小白表示看不懂

@zgww
Copy link

zgww commented Dec 11, 2021

我发现所谓的左递归,只是因为会陷入死循环,导致栈溢出。
我的思路是:左递归用尝试法。 尝试0到n+1次递归, 当第n+1次递归,匹配失败,或者不能匹配更多的token, 就会认为最大匹配递归次数为 n。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants