Re: C String recognizer in Python?

Guido.van.Rossum@cwi.nl
Sat, 17 Sep 1994 10:12:01 +0200

> escaped " and newline characters) from Python. Anybody got a snippet of
> Python code that does the trick? The input will be cpp output.

The standard module tokenizer contains a Python parser with regular
expressions for Python strings. This should get youstarted, at least.
(You simply *must* use regular expressions for problems like this --
a loop looking at every character in Python code will be way too
slow...)

--Guido van Rossum, CWI, Amsterdam <mailto:Guido.van.Rossum@cwi.nl>
<http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>