This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
function to parse isolated label
authorZefram <zefram@fysh.org>
Sun, 24 Oct 2010 04:44:43 +0000 (05:44 +0100)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 25 Oct 2010 19:29:47 +0000 (12:29 -0700)
commit361d9b557e615b7530c603ebd123b12506c9406b
tree5a6ef220e84ce6aa671de8e48bb0b54f082edcfe
parent8359b381d0e4b7d1489abafb919f3c2a465401a4
function to parse isolated label

New API function parse_label() parses a label, separate from statements.
If a label has not already been lexed and queued up, it does not use
yylex(), but parses the label itself at the character level, to avoid
unwanted lexing past an absent optional label.
12 files changed:
MANIFEST
embed.fnc
embed.h
ext/XS-APItest/APItest.pm
ext/XS-APItest/APItest.xs
ext/XS-APItest/t/labelconst.aux [new file with mode: 0644]
ext/XS-APItest/t/labelconst.t [new file with mode: 0644]
ext/XS-APItest/t/swaplabel.t [new file with mode: 0644]
global.sym
parser.h
proto.h
toke.c