Put a small pan on medium heat and add the walnuts. Let the nuts toast for 2 minutes, shaking the pan often to move them around. Add the nuts to a food processor along with the basil, garlic, parmesan and olive oil. Add a pinch of salt and pulse a dozen or so times until the pesto reaches a uniform and just slightly chunky consistency.