Explore >> Select a destination


You are here

myme.no
| | gilmi.me
9.5 parsecs away

Travel
| | ?m.me - Compiling Lisp to JavaScript from scratch in 350 LOC
| | kndrck.co
11.2 parsecs away

Travel
| | Prelude State monads, introduced to me during the data61 functional programming course was one of my most memorable encounter with a monad. This was mainly because things only started to clicked and made a tiny bit of sense after a couple of weeks of frustration. This article is my attempt to explain the underlying mechanics of the State Monad to try and relief the frustration of whomever who was in my position.
| | nabeelvalley.co.za
13.7 parsecs away

Travel
| | A short introduction to Parser Combinators
| | blog.drewolson.org
50.2 parsecs away

Travel
| Delving into the world of pure functional programming caused me to learn about parser combinators. Upon returning to Elixir, I was excited to see that nimble_parsec is a great example of a parser combinator library for the Elixir ecosystem. Parser combinators can be notoriously confusing when first learned. In this post I'll provide a gentle introduction to parser combinators via nimble_parsec. What is a Parser Combinator? Have you ever found yourself writing a regular expression to parse input? I know I have. You finally have the syntax correct and then new requirements get added. Suddenly you need to support optional tokens, lists of values and other complicated types of input. When regular expressions start to break down because of complexity, it's time to reach for a more powerful abstraction. Enter parser combinators.