I want to process the token stream generated from PPI. So I want to enumerate and store each of its token types.
Maybe you can enumerate them lazily as you encounter them? Something along these lines:
use Memoize qw(memoize); memoize qw(number_for_class); sub number_for_class { state $i; return ++$i };
In reply to Re^3: getting a list of all subclasses of base class x
by moritz
in thread getting a list of all subclasses of base class x
by hexcoder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |