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

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