Skip to content
0:00 / 0:00

#haskell#megaparsec#grep

Coding in Haskell | Writing and debugging megaparsec parsers for grep

Impure Pics

3.8K subscribers • 7 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.

Intermediate. Assumes working knowledge.

3.5K views2 years ago1 recommendation

Programming languagesSystems programmingHaskellCompilers and interpreters

A live-coding session building a grep clone from scratch in Haskell using the Megaparsec library.

Try building your own smth using CodeCrafters, my affiliate link: app.codecrafters.io/join?via=Zelenya In this tutorial, we build grep from "scratch" by following a CodeCrafters challenge: we work with megaparsec, debug parsers, and rewrite the same things multiple times. #fp #functionalprogramming #haskell Subscribe to Impure Pics: bit.ly/impure-youtube *How to think like a functional programmer* 🎓 impurepics.thinkific.com/courses/functional-thinking *More Impure Pics* 🐣 twitter.com/impurepics 📦 impurepics.com 👕 merch.impurepics.com *Functional Alphabet book* 📗 Softcover: bit.ly/fp-abc-soft-cover 📘 Hardcover: bit.ly/fp-abc-hard-cover *Watch more Impure Pics* youtube.com/watch?v=c7FncTzvpUQ&list=UULF9-egQYdpElHtvVM-t9q… *About Impure Pics* FP Advocat. Distilling functional programming for the good of all Get in touch: zelenya.com Intro Hurdle 1. Stack and GHC version Match literal char, digit, alphanumeric Splitting pattern, parsing, and matching 1st (regex) parser. Introducing megaparsec 2nd (matcher) parser. Parsing many characters. Some debugging Start and End of string anchors. 1st attempt Start and End of string anchors. 2nd attempt Quantifiers. 1st attempt Wildcard. Realizing that quantifiers don't work Quantifiers. Debugging and refactoring Quantifiers. Adding State More debugging Alternations Recap

Why it's here

1 person recommends this

u/Axman6in r/haskell • Recommends

Writing and debugging Megaparsec parsers for grep - Impure Pics YouTube