hafriedlander / php-peg

PEG (parsing expression grammar) compiler for PHP
Other
191 stars 53 forks source link

Exceptions if process ends prematurely #26

Open th3n3rd opened 11 years ago

th3n3rd commented 11 years ago

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.