TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Chumsky: A Tutorial

78 点作者 surrTurr大约 3 年前

10 条评论

marginalia_nu大约 3 年前
A few years back I ported Haskell style monadic parsing to Java, basically as a shit post entry to an event at work. I sadly don&#x27;t have the code since it was a work thing, but I got it to work.<p>... at tremendous cost to my sanity. I&#x27;ve later been told I may have inadvertently broken two of the seven seals.
评论 #31006917 未加载
kaz-inc大约 3 年前
There&#x27;s a lot more to writing a compiler&#x2F;interpreter than parsing, and I would almost posit that parsing is the _least_ interesting part of writing a compiler.
评论 #31008061 未加载
评论 #31006760 未加载
评论 #31006441 未加载
评论 #31006506 未加载
评论 #31008033 未加载
评论 #31012702 未加载
评论 #31008332 未加载
评论 #31006450 未加载
jakearmitage大约 3 年前
Now do indentation-based. All parser libraries tend to trip on this small, yet widely relevant, feature. To be honest, most parser libraries should at least include a Python sample as some sort of acid test.
评论 #31009315 未加载
brundolf大约 3 年前
Wow, Chumsky (and Ariadne!) looks really powerful. Got me wondering if I should port my language off of my hand-written parser; I haven&#x27;t even begun to wrestle with parsing-error recovery.
评论 #31012730 未加载
ponow大约 3 年前
Apparently, expertise with Rust is a pre-requisite.
jonpalmisc大约 3 年前
Likely controversial opinion: Parser combinators are fun but feel a little too magic for me.<p>Maybe I’m being stubborn, but I prefer to write lexers and parsers by hand. Although, I would like to get around to writing a “common lexer and parser utility library” one day to abstract away some common patterns while simultaneously not forcing design decisions. Perhaps I’ll end up with a parser combinator library by the time I’m done and I’ll have to eat my words.
评论 #31007637 未加载
评论 #31007557 未加载
评论 #31012742 未加载
formerly_proven大约 3 年前
Naming something after Chomsky, a difficult choice. Though I understand his reception has been largely uncritical in the US for some reason...
评论 #31007902 未加载
评论 #31007959 未加载
评论 #31012766 未加载
评论 #31007861 未加载
leobg大约 3 年前
Chumsky is a funny name for a tool to make a language. The old man would like it, I think.
评论 #31007288 未加载
standardly大约 3 年前
numb chumsky
DylanSp大约 3 年前
The title here on HN seems kinda misleading; this is a parser library (and describes itself as that in the readme and github description), which isn&#x27;t the only thing needed for writing a language.
评论 #31008177 未加载
评论 #31009154 未加载