initial checkin to new repository
fixed invalid token reporting and handling of errors occurring in optimization pass