php-peg
php-peg copied to clipboard
Exceptions if process ends prematurely
There should be some hooks to give user the chance to throw an Exception if the process of parsing is premuterely completed, es. Syntax Error. At the moment the process just stop and return an imcomplete tree without any hint about why is incomplete, what characters stopped the process and at wich position occurred.