summaryrefslogtreecommitdiff
path: root/parser.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-07-03 14:00:00 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-07-03 14:01:07 -0700
commita0dffe9bf14c9669153ccc3d5c9341d4864848dd (patch)
tree87838e61b8b5c8d4a87024b3199a61d135af227d /parser.h
parent5ed5d9dbd8a43720d09030290212c037a761591e (diff)
downloadperl-a0dffe9bf14c9669153ccc3d5c9341d4864848dd.tar.gz
parser.h: Add comments explaining *bufptr
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/parser.h b/parser.h
index de69a2dba2..1d5a7a876b 100644
--- a/parser.h
+++ b/parser.h
@@ -64,9 +64,11 @@ typedef struct yy_parser {
I32 lex_allbrackets;/* (), [], {}, ?: bracket count */
SUBLEXINFO sublex_info;
SV *linestr; /* current chunk of src text */
- char *bufptr;
- char *oldbufptr;
- char *oldoldbufptr;
+ char *bufptr; /* carries the cursor (current parsing
+ position) from one invocation of yylex
+ to the next */
+ char *oldbufptr; /* in yylex, beginning of current token */
+ char *oldoldbufptr; /* in yylex, beginning of previous token */
char *bufend;
char *linestart; /* beginning of most recently read line */
char *last_uni; /* position of last named-unary op */