Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我最近在玩 Racket,目前正在为脚本语言的一个子集实现词法分析器......并且想知道是否有更多示例来展示如何在 Racket 中使用词法分析器生成器?
我了解文档中的计算器示例,但是显示全部功能太简单了……我特别好奇如何参考每个字符的位置……
PLaneT 的库是提供更详细示例的绝佳资源。尝试例如Infix Parser。