Using PLY

Maurice LING mauriceling at acm.org
Fri Sep 17 00:48:36 EDT 2004


Hi,

I know that PLY lex is able to do line counting. I am wondering if there 
is a way to count the number of each keywords (tokens) in a given file? 
For example, how many IF tokens etc?

Thanks
Maurice



More information about the Python-list mailing list