Add abstract methods to parser

To get type safety and documentation :)