mtomwing/purplex — pull request #8 by mtomwing (2014-06-28 21:58:21+00:00)
Title: Fix #7 Lexer using OrderedDict for TokenDef is slow

Since we can't introspect a classes attributes in the order in which
they were defined, I need to use an OrderedDict a second time to keep
track of any new TokenDefs that were added by a subclass.

In Python 3.4 class attributes will retain their ordering by default.