paint-brush
Applicative Parsing I: Building the Foundationby@james_32022
277 reads

Applicative Parsing I: Building the Foundation

by James Bowen5mFebruary 10th, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

<a href="https://mmhaskell.com/blog/2018/2/5/parsing-primer-gherkin-syntax" target="_blank">Last week</a> we prepared ourselves for parsing by going over the basics of the Gherkin Syntax. In this article and the next, we’ll be using the <a href="https://hackage.haskell.org/package/regex-applicative-0.3.3/docs/Text-Regex-Applicative.html#t:RE" target="_blank">applicative parsing</a> library to parse that syntax. This week, we’ll focus on the fundamentals of this library, and build up a vocabulary of combinators to use. We’ll make heavy use of the <code class="markup--code markup--p-code">Applicative</code> typeclass. If you need a refresher on that, check out <a href="https://mmhaskell.com/blog/2017/2/6/applicatives-one-step-further" target="_blank">this article</a>. As we start coding, you can also follow along with the examples on <a href="https://github.com/jhb563/GherkinParsing" target="_blank">Github here</a>! Most of the code here is in <a href="https://github.com/jhb563/GherkinParsing/blob/master/src/Parser.hs" target="_blank">Parser.hs</a>.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Applicative Parsing I: Building the Foundation
James Bowen HackerNoon profile picture
James Bowen

James Bowen

@james_32022

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite