More incremental refactoring in plpgsql: get rid of gram.y dependencies on
Tom Lane <tgl@sss.pgh.pa.us>
More incremental refactoring in plpgsql: get rid of gram.y dependencies on yytext. This is a necessary change if we're going to have a lexer interface layer that does lookahead, since yytext won't necessarily be in step with what the grammar thinks is the current token. yylval and yylloc should be the only side-variables that we need to manage when doing lookahead.
Files
| Path | Change | +/− |
|---|---|---|
| src/pl/plpgsql/src/gram.y | modified | +275 −269 |
| src/pl/plpgsql/src/pl_comp.c | modified | +239 −307 |
| src/pl/plpgsql/src/plpgsql.h | modified | +26 −6 |
| src/pl/plpgsql/src/scan.l | modified | +1 −11 |