~/talk

Parboiled2: better parsing in Scala

Talkat Scala.IO 2014 · 2014-10-23..10-24· [scala, compilers-and-language-design]
slides:none on file

parboiled2 is a macro-based parser generator for Scala that claims several hundred times faster parsing than Scala parser combinators and produces type-safe internal DSLs via Scala macros and type-level programming. The demo builds a calculator grammar that generates an AST, runs as inputLine.run returning Success/Failure, and shows precise error locations with an arrow. It accepts Strings, Char arrays or byte arrays, implements PEG semantics, and replaces fragile regexes or external generators while compiling directly into fast parser bytecode.

AI-written summary · about

  1. 0:00Intro
  2. 3:10Benefits
  3. 4:40Environment
  4. 6:00Code
~/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.