~/talk

Semantics-preserving Transformation of Context-free Grammars into LL(1) Form

Talkat Onward! 2025 · 2025-10-12..10-18· [compilers-and-language-design]
links:none on file
slides:none on file

Proposes a concrete method to convert any context-free grammar into LL(1) while keeping the original semantics by encoding rules as typed tree nodes and pairing each node with a semantic function and a parsing function written in continuation-passing style. Demonstrates on an EQL subset: left recursion and common-prefix conflicts become function-returning nodes that are later applied to the saved prefix so the generated fluent API and parser preserve original AST structure. Prototype and paper provide working implementation; performance remains future work.

AI-written summary · about

  1. 0:00Introduction
  2. 1:10Fluent APIs and DSLs in Java
  3. 4:00Generating DSLs from grammars
  4. 8:46Fluent API limitations
  5. 12:08Fluent API generation state
  6. 13:54Transforming grammars to LL(1)
  7. 16:02Preserving semantics
  8. 17:05Semantic-preserving example
  9. 23:28Building APIs and parsers
  10. 27:27Summary
  11. 28:10Q&A
~/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.