convert regex to token names; change grammar: (ID) must be ( ID )