There is a bug in lex.py (version 3.2). When compiling the lexer from the source file, it uses the re.VERBOSE flag. But when reading the regexps from the tables file, it does not use this flag (see lex.py, line 239). Thus, regexps that use extra spacing for readability work when run without a precompiled lextab file, but fail when lextab is used.
Also (related bug), setting the 'reflags' param on the lex function does not work either because this parameter is not stored into the compiled lextab file. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ply-hack" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ply-hack?hl=en -~----------~----~----~----~------~----~------~--~---
