~/talk

A Verified Packrat Parser Interpreter for Parsing Expression Grammars

Talkat CPP 2020 · 2020-01-20..01-21· [compilers-and-language-design]
links:none on file
slides:none on file

A mechanically verified packrat parser interpreter for PEGs implements a small-step semantics and a static termination analysis (computing the P0/nullable/dangerous properties) and proves soundness and completeness by building a simple reference parser and proving equivalence with an optimized packrat memoization yields linear time implementation. The development uses PVS with 329 proofs and ~4,000 input commands (88% TCCs). Semantic actions are supported via an interpretation of full parse trees, and the optimized parser is proved equivalent and practical.

AI-written summary · about

  1. 0:00Introduction
  2. 0:22Contents
  3. 1:03What is parsing
  4. 2:00The passing expression grammar
  5. 2:55The choice operator
  6. 3:25The data type
  7. 3:42Operators
  8. 4:01Properties
  9. 6:32Failure
  10. 7:38Semantics
  11. 8:17Specification
  12. 9:05Wellformed
  13. 12:00Example
  14. 12:43Semantic Action
  15. 13:51Semantic Interpretation
  16. 14:58Parse
  17. 15:24Proof Statistics
  18. 17:03References
  19. 18:36Questions
~/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.