title: Parsing Python code from C++
body: <p>I can find a load of information on the reverse, not so much this way around :)</p>
  
  <p>So, the summary is that I want to write some Python code-completion stuff in C++, but I can't figure out the best way of tokenizing the Python code.</p>
  
  <p>Are there any libraries out there that will do this? </p>
  
  <p>I'm leaning towards calling Python's tokenize.tokenize directly from C++... but whenever I look at calling Python code from C++ I go cross-eyed.</p>