Parsing Expression Grammar in Lisp: Converting Org to HTML with (ice-9 peg) in Guile
Summary
This article explains using Parsing Expression Grammars (PEG) in Guile Scheme with the ice-9 peg module to parse Org-mode and export HTML via SXML. It argues PEGs outperforms regex-based parsing for complex Org constructs and demonstrates an end-to-end pipeline, including a sample grammar and AST-to-HTML rendering. It also highlights the open-source OrgWebAlchemy project and its GPL licensing.