vpelletier/ply — Issue #6: Allow querying token type in grammar functions
Author: vpelletier
Created: 2012-01-14 11:00:02+00:00
State: open

It would be very handy to access token type when deciding of the output to generate.
It is not always possible to just decide this based on the number of token matching a grammar rule, so "len(p)" is only a partial workaround.