summaryrefslogtreecommitdiff
path: root/perly.tab
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2016-12-04 08:10:27 +0000
committerDavid Mitchell <davem@iabyn.com>2016-12-05 11:54:03 +0000
commit0f8490d1d7ad76cac844fc2ae882994e38aaf2ef (patch)
tree25fea4e29ac14105e7b8cc46b37d7c90142c05a3 /perly.tab
parentb2c9b6ee5d402c923568f214f2e2606287c912d3 (diff)
downloadperl-0f8490d1d7ad76cac844fc2ae882994e38aaf2ef.tar.gz
yyparse: only calculate yytoken on yychar change
yytoken is a translated (via lookup table) version of parser->yychar. So we only need to recalculate it when yychar changes (usually by assigning the result of yylex() to it). This means when multiple reductions are done without shifting another token, we skip the extra overhead each time.
Diffstat (limited to 'perly.tab')
-rw-r--r--perly.tab2
1 files changed, 1 insertions, 1 deletions
diff --git a/perly.tab b/perly.tab
index 0d0b607421..e4065de3ea 100644
--- a/perly.tab
+++ b/perly.tab
@@ -1109,6 +1109,6 @@ static const toketypes yy_type_tab[] =
};
/* Generated from:
- * 5646c76b3536061de3b69eb5df829f5643d09247aa0d249bf2d2e050594b3679 perly.y
+ * a8b5527eacb1205d15c8c01acb4a8f99b494e5b453ddd68a2a2e7fca4be3302a perly.y
* 153cba5d215c1a083a0459c43f4d55c45fd0a7093c197d7247a456dcde21ea53 regen_perly.pl
* ex: set ro: */