7 ms·
Author here. A parser combinator library is used to do the parsing.
by orangeduck 12y ago
Author here. A parser combinator library is used to do the parsing.
- SneakerXZ 12y agoToo bad, always everyone who teaches how to write a programming language uses generators but actual production programming languages never use them. Except of a few langugages. I wonder why...
- kevinnk 12y agoIt's hard to generate high quality error messages with current generators unfortunately. More common nowadays is building first with a generator and switching to recursive decent when it becomes too unwieldy.
- hamburglar 12y agoMy one criticism is that it's a fairly big leap from learning C from ground zero to being a client of a complex, high-level library like mpc. I feel like the moment you hit the call to mpca_lang, anyone who really was learning C at the beginning shifted from "learning C" mode to "copy and paste C code I don't understand" mode.