Chapter 10: Definite Clause Grammars (DCGs)
Modern SWI-Prolog (2026 Edition) Second...
VOLUME II: Parsing & The Offline Library
A regular expression is a finite automaton description encoded as a write-only string. The engineer who writes ^(\d{1,3}\.){3}\d{1,3}$ cannot debug it by reading it. The engineer who inherits it cannot modify it without first reverse-engineering what it was at...