diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-07-03 14:00:00 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-07-03 14:01:07 -0700 |
commit | a0dffe9bf14c9669153ccc3d5c9341d4864848dd (patch) | |
tree | 87838e61b8b5c8d4a87024b3199a61d135af227d /parser.h | |
parent | 5ed5d9dbd8a43720d09030290212c037a761591e (diff) | |
download | perl-a0dffe9bf14c9669153ccc3d5c9341d4864848dd.tar.gz |
parser.h: Add comments explaining *bufptr
Diffstat (limited to 'parser.h')
-rw-r--r-- | parser.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 */ |