~/talk

A Semantic Framework for PEGs

Talkat SLE 2020 · 2020-11-16..11-17· [compilers-and-language-design]
links:none on file
links:none on file
slides:none on file

Presents an executable formalization that uses a rewriting logic executable specification (Maude) to add a throw operator (cut) to PEGs so failing certain subexpressions signals an error and prevents useless backtracking. Implements cuts by hand on JSON C and Titan grammars, measures parser rule applications, finds small overhead on valid inputs and savings on invalid ones (C tests show 2%–11% fewer rules). Provides a prototype parser and a repository and claims the framework can prove cuts preserve the language.

AI-written summary · about

  1. 0:00Intro
  2. 0:37Parsing Expression Grammars (PEGs) (2)
  3. 1:35PEGs Semantics (excerpt)
  4. 3:41PEGs Cons: What is the language?
  5. 4:59PEGs Cons: How to Control the Backtracking?
  6. 6:30Using Rewriting Logic to reason about PEGS
  7. 7:35Rewriting Logic Specification
  8. 8:47Semantics Considering Global Errors
  9. 10:46Catching Local Errors
  10. 12:50Evaluation Results
  11. 13:27Conclusion
  12. 13:53Future Work
~/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.