parser: introduce NewError() and ErrPlusPosition() #8

Merged
amery merged 3 commits from pr-amery-error into main 2 years ago