Make Parsers Compatible Using Automata Learning
summary
Two Ruby parsers (parsed.y ~16,000 lines and Prism) get modeled as automata by using active learning and a VPA approximation; a Ruby library called Lernen learns over a restricted alphabet (a, :, [, ]) with visibly pushdown automata and exports graphs. The learned models are compared via symmetric difference and the library’s findSeparatingWord returns concrete inputs; this process discovers a real Prism vs parsed.y discrepancy which is reported and fixed.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 2:17Ruby parsers Prism and parsed.y
- 8:14Automaton theory basics
- 14:37Automata learning L-star
- 22:39Visibly pushdown automata
- 23:04Lernen library demo
- 26:44Finding parser compatibility bug
- 27:27Practical applications of learning
- 28:37Future research goals
- 30:30Q&A and conclusion
related talks
32mTime flies like an arrow; Fruit flies like a banana: Parsers for Great Good
43mGrammars, Parsers, and Interpreters, In Ruby
31mTime flies like an arrow, fruit flies like a banana
32mParsing Ruby
26mLiberating Ruby's Parser from Lexer Hacks
31mTime flies like an arrow; Fruit flies like a banana: Parsers for Great Good
29mHow does Lrama make the Ruby parser grammar G.O.A.T.?
46mGrammar a BNF like Ruby DSL Parsing
