This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Look up state subs in the pad
authorFather Chrysostomos <sprout@cpan.org>
Sat, 7 Jul 2012 06:35:15 +0000 (23:35 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 16 Sep 2012 05:44:58 +0000 (22:44 -0700)
commit73f3e22850d9df38d36bbb15f00ded7dcce63f27
tree116c39f147455858e09a704f7d39e6400c33c848
parent4ab466d9a0c010c94b6aec7b9569c75ded3acfb4
Look up state subs in the pad

This commit does just enough to get things compiling.  The padcv op
is still unimplemented (in fact, converting the padany to a padcv is
still not done), so you can’t actually run the code yet.

Bareword lookup in yylex now produces PRIVATEREF tokens for state
subs, so the grammar has been adjusted to accept a ‘subname’ in sub
calls (PRIVATEREF or WORD) where previously only a WORD was permitted.
perly.act
perly.h
perly.tab
perly.y
toke.c