DEV Community

Discussion on: Passing Command-Line Arguments in Node.js

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀 • Edited

I have been working on a JavaScript subset in rust like you do.. Anyway I needed to learn about parsing theory. There are a couple of ways you could go about it but building a parser combinator (a series of tiny parsers you map together) could take arg parsing way beyond the normal. I stumbled across a pretty fantastic JavaScript library (FP style) Arcsecond, you may not be into libraries, but for parser combinators I wouldn't make my own. Anyway if your interested, the author does a pretty good tutorial series on YouTube. I feel like I want to write a post about this stuff soon. 😅

Collapse
 
isalevine profile image
Isa Levine

Ooo this sounds really interesting Adam--can you send me a link to that YouTube tutorial series?

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀