Generating tokens in Python
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1444961/is-there-a-good-python-library-that-can-parse-c">Is there a good Python library that can parse C++?</a>  </p>
</blockquote>



<p>I want Python to scan through a file (a .cpp file) and generate tokens from it using the in-built Python tokeniser.How can this be achieved?</p>
