Re-use parser diagnostic levels.

This fixes #116.