Prolog DCG to match string patterns | Hacker News Reader