Hi,
thanks for your replies (I was busy with uni all week). I’ve looked at the Mesa source and they are using their own specification language it seems, so it’s not straight forward to port.
I’m going to try pdftohtml next and if it’s okay I’m also going to upload the grammar as text file.
Cheers,
Andreas

Okay, a late update: I’ve tried pdftohtml and it didn’t work very well.
I’ve decided not to use a GLSL grammar for now but more general text parsing rules in my project.
Thanks for your help.
Cheers,
Andreas