~/talk

Parsing Parsers

Talkat JSConf Hawaiʻi 2020 · 2020-02-05..02-07· [javascript, developer-experience]
slides:none on file

Builds a small search-query parser in JavaScript that actually tokenizes with regular expressions, wraps lexemes into tokens, and produces a navigable parse tree used to drive a visualizer. Regular-expression lexing works for the initial regular-grammar (terms, phrases, simple filters) but breaks when filters split into modifier+entity, so parser logic steps in to implement a context-free grammar production and the resulting parser and UI demonstrator run and produce the expected trees.

AI-written summary · about

  1. 0:00Start
  2. 2:18the abcs of language
  3. 5:17syntax city
  4. 7:03moving parse
  5. 12:42parse for the course
  6. 22:46real world: parsers
~/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.