Do Parsers dream of Electric Guitars?
summary
Builds an Elm program that reads a guitar chord sheet and actually parses tokens like [Am-7] into a Chord record with Note and Quality types instead of relying on a giant regex. Uses elm/parser, runs P.run on a chord parser, composes note and quality parsers, uses lookahead with chomp/jumpIf and accumulator looping with P.loop, then generates guitar fretboard voicings live from the parsed data. Repo is alpha on packages and the demo works.
AI-written summary · about
chapters (9)
- 0:00Introduction and setup
- 1:07Goal of parsing guitar chords
- 4:02Parsing with regular expressions
- 8:00Introducing Elm parser
- 10:35Building note and quality parsers
- 14:18Parsing the full sheet music
- 21:50Advantages of parser over regex
- 22:33Live demo and future work
- 23:15Q&A and closing
related talks
29mMy Little Parser: Tooling is Magic
37mThe Elixir parser under the microscope
32mTime flies like an arrow; Fruit flies like a banana: Parsers for Great Good
44mPretty Parsing
58mParsing in C# from first principles
52mBuilding a parser in C#, from first principles
01h 10mParsing from first principles
44mParsing Text with a Virtual Machine
