Add generic parse result interface to enhance Go Yacc integration.