This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #95546] Allow () after __FILE__, etc.
authorFather Chrysostomos <sprout@cpan.org>
Mon, 8 Aug 2011 15:40:44 +0000 (08:40 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 12 Aug 2011 16:11:25 +0000 (09:11 -0700)
commit7eb971ee54c13db586d1afe434b0fa7d3fb759af
tree09697b122ec54e4b91c6adb45408027bd39ea8f8
parentf4ef369354bb1dbebc128000108d3c4964e1cbf0
[perl #95546] Allow () after __FILE__, etc.

This commit makes the __FILE__, __LINE__ and __PACKAGE__ token parse
the same way as nullary functions.

It adds two extra rules to perly.y to allow the op to be created in
toke.c, instead of directly inside the parser.
perly.act
perly.h
perly.tab
perly.y
toke.c