From a0dffe9bf14c9669153ccc3d5c9341d4864848dd Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Tue, 3 Jul 2012 14:00:00 -0700 Subject: parser.h: Add comments explaining *bufptr --- parser.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'parser.h') 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 */ -- cgit v1.2.1