summaryrefslogtreecommitdiff
path: root/embed.fnc
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2010-10-24 05:44:43 +0100
committerFather Chrysostomos <sprout@cpan.org>2010-10-25 12:29:47 -0700
commit361d9b557e615b7530c603ebd123b12506c9406b (patch)
tree5a6ef220e84ce6aa671de8e48bb0b54f082edcfe /embed.fnc
parent8359b381d0e4b7d1489abafb919f3c2a465401a4 (diff)
downloadperl-361d9b557e615b7530c603ebd123b12506c9406b.tar.gz
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.
Diffstat (limited to 'embed.fnc')
-rw-r--r--embed.fnc1
1 files changed, 1 insertions, 0 deletions
diff --git a/embed.fnc b/embed.fnc
index 43d2a17c7d..340d86d635 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -625,6 +625,7 @@ AMpd |void |lex_read_space |U32 flags
: Public parser API
AMpd |OP* |parse_block |U32 flags
AMpd |OP* |parse_barestmt |U32 flags
+AMpd |SV* |parse_label |U32 flags
AMpd |OP* |parse_fullstmt |U32 flags
AMpd |OP* |parse_stmtseq |U32 flags
: Used in various files