Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
dabeaz committed Nov 29, 2007
1 parent d84f56a commit 616ca1b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
Version 2.4
-----------------------------
11/29/07: beazley
Modification of ply.lex to allow token functions to aliased.
This is subtle, but it makes it easier to create libraries and
to reuse token specifications. For example, suppose you defined
a function like this:

def number(t):
r'\d+'
t.value = int(t.value)
return t

This change would allow you to define a token rule as follows:

t_NUMBER = number

In this case, the token type will be set to 'NUMBER'.

11/28/07: beazley
Slight modification to lex and yacc to grab symbols from both
the local and global dictionaries of the caller. This
Expand Down

0 comments on commit 616ca1b

Please sign in to comment.