Allow for sensible syntax error reporting

Signed-off-by: Christoph Höger <christoph.hoeger@tu-berlin.de>