parse canonical lexfile