~/talk

The Art of Parsing

Talkat Devoxx US 2017 · 2017-03-21..03-23· [compilers-and-language-design]
links:none on file
slides:none on file

SonarSource explains why compiler teams handwrite parsers: generator-friendly grammars are hard to maintain, give poor error recovery, and won’t match the performance or diagnostics needed by javac/GCC/Clang. SonarSource uses parsing expression grammars for about 22 of 24 languages (works well for Java, Python, COBOL), finds PEG a dead end for C/C++, and resorts to generalized parsing (GLL) to handle C/C++ ambiguity. The team builds internal parser generators (not yet open source) and reports GLL yields acceptable performance and preserves all parse alternatives for semantic disambiguation.

AI-written summary · about

  1. 0:00Introduction
  2. 0:14Who are we
  3. 1:34Todays topic
  4. 2:45Why handwritten parsers
  5. 3:08Why so many grammars
  6. 4:34What is grammar
  7. 14:42Java
  8. 15:38L1 parsers
  9. 16:53L1 recap
  10. 18:16Parsing Expressions
  11. 19:58Parsing Grammar
  12. 20:37Break
  13. 20:51Jar Program
  14. 22:56Java Program
  15. 26:14Semantic Analysis
  16. 26:47Generalized parsers
  17. 29:23C grammar
  18. 30:52Recap
  19. 32:26Questions
~/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.