working towards unifying lexgen and bnfc output