E-Ink News Daily

← Back to list

Parsing Expression Grammar vs. regexes: Building Org parser in Lisp that exports to HTML (via SXML)

The article describes OrgWebAlchemy, a Guile Scheme library that uses Parsing Expression Grammar (via ice-9 peg) to parse Org mode documents into an abstract syntax tree and render them to HTML through SXML conversion, enabling Org export without Emacs.

Background

Guile Scheme's ice-9 peg module provides a PEG parsing implementation for Scheme programs, allowing complex grammars to be defined directly in code rather than relying on regular expressions or external tools.

Source
Lobsters
Published
Sep 24, 2026 at 08:11 PM
Score
5.0 / 10