~/talk

Do Parsers dream of Electric Guitars?

Talkat Oslo Elm Day 2019 · on Saturday, 2019-02-16· [compilers-and-language-design]
name:Ju Liu
slides:none on file

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

  1. 0:00Introduction and setup
  2. 1:07Goal of parsing guitar chords
  3. 4:02Parsing with regular expressions
  4. 8:00Introducing Elm parser
  5. 10:35Building note and quality parsers
  6. 14:18Parsing the full sheet music
  7. 21:50Advantages of parser over regex
  8. 22:33Live demo and future work
  9. 23:15Q&A and closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.