Does anyone know where the FLEX or LEX specification file for Python exists? For example, this is the lex specification for the ANSI C programming language: http://www.quut.com/c/ANSI-C-grammar-l-1998.html
FYI, I'm trying to write code highlighting in a Cocoa application. Regex will not do this because I also want the parsing to collapse the code and recognize the blocks.
python lex syntax-highlighting lexical-analysis
pokstad
source share