News for hackers. Stuff that matters.
Re:Chumsky: A Tutorial by DylanSp on Tuesday April 12, 2022 @04:43PM (#31008015)
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't the only thing needed for writing a language.
Re:Chumsky: A Tutorial by lolinder on Tuesday April 12, 2022 @05:01PM (#31008177)
Yes, the library is only a parser, but the tutorial does cover using the parsed structure for interpretation as well. I think it's mostly a fair title but could probably use the word "tiny" in it (as in, "write your own tiny programming...").
Re:Chumsky: A Tutorial by emteycz on Tuesday April 12, 2022 @06:46PM (#31009154)
Don't let that mislead you: This is much more than a simple parser library. It's really a big chunk of what a compiler does, as the title advertises. Yeah, you need to handle the actual runtime part, of course.
Re:Chumsky: A Tutorial by DylanSp on Tuesday April 12, 2022 @09:09PM (#31010113)
I'm looking at the API docs and just seeing parser combinators and parsing-related stuff, like reporting/handling/recovering from parse errors. That's very handy to have, certainly, but I feel like I'm missing something if there's supposed to be support for implementing type-checking, nontrivial semantics, optimization, codegen, etc.