|
From: <gr...@us...> - 2002-12-05 09:17:41
|
On Wed, 4 Dec 2002, Brett Cannon wrote: > [David Goodger] > > > So, is there any prior art out there? Any pointers or advice? > > > > How does PyChecker do it? I would guess by reading the bytecode, but you > never know. > > I would guess using regexes would be the best if you just want to read the > source. The ``tokenize`` module has all the regexes and they might be > available independently from the methods in the module. from ancient times when i did crossreferencing on modula or later pretty printing newtonscript. i have to things on mind: * when using regexes nultiline statements are not so easy. * when using a lexer, association with the line might get lost (the lexer would probably merge the lines) but whome do i tell this david, you should know more than i ever will after parsing reST. what is the intention: * read doc-strings * pretty print * check the code * reformat the code -- BINGO: innovative solutions --- Engelbert Gruber -------+ SSG Fintl,Gruber,Lassnig / A6410 Telfs Untermarkt 9 / Tel. ++43-5262-64727 ----+ |