finished creation of parser, needs some bugfixes