Skip to content

Commit

Permalink
Fixed token order
Browse files Browse the repository at this point in the history
  • Loading branch information
dabeaz committed Feb 15, 2018
1 parent e8c6af0 commit 17a726c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Version 3.11
---------------------
02/15/18 beazley
Fixed some minor bugs related to re flags and token order.
Github pull requests #151 and #153.

02/15/18 beazley
Added a set_lexpos() method to grammar symbols. Github issue #148.

Expand Down
2 changes: 1 addition & 1 deletion ply/lex.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def writetab(self, lextab, outputdir=''):
with open(filename, 'w') as tf:
tf.write('# %s.py. This file automatically created by PLY (version %s). Don\'t edit!\n' % (basetabmodule, __version__))
tf.write('_tabversion = %s\n' % repr(__tabversion__))
tf.write('_lextokens = set(%s)\n' % repr(tuple(self.lextokens)))
tf.write('_lextokens = set(%s)\n' % repr(tuple(sorted(self.lextokens))))
tf.write('_lexreflags = %s\n' % repr(int(self.lexreflags)))
tf.write('_lexliterals = %s\n' % repr(self.lexliterals))
tf.write('_lexstateinfo = %s\n' % repr(self.lexstateinfo))
Expand Down

0 comments on commit 17a726c

Please sign in to comment.