parser: Add more parser context accessors The only thing remaining is access to parser input, see #762.