Using PEGs in Janet
22 points by veqq
22 points by veqq
PEGs are great and I wish that there were more easily available parser interpreters for them in general; but I think entirely replacing regexes with them is a mistake, because there are some (fairly common) things that regexes can parse fine but PEGs fail on. In particular there are many tame configurations of a greedy match followed by several optional suffixes where an intuitively written PEG will fail but a regex will succeed.