> works with any token type tok. Sorry. You are right. You can customize the error position depending on token type. Eg when parsing command line arguments tracking a line number doesn't make sense. Some time has passed since having done this .. ;( Marc