> All great points (although I'm not entirely sure what you have against PEGs),

For beginners PEGs are much like regexes:

  1. "Language in a language" problem: The syntax is not like Nim's and you 
would be learning two languages at the same time.
  2. Either not powerful enough to do any real parsing or you have to mix two 
languages, see problem 1.
  3. Regexes hide too much of what's going on (non-deterministic regexes) and 
PEGs pretend to be "declarative" when they are not ("ordered choice", "after .* 
nothing matches because it's greedy").
  4. For whatever reasons, beginners simply tend to misuse them. So I tell them 
to avoid them.


Reply via email to