Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry BLIND2019-05-03 04:03:48 -0400
committerThierry BLIND2019-05-03 04:03:48 -0400
commit5ddcf895e281670bf90783b82d50fb84dba6c877 (patch)
tree81750b8d99f96e54b306adce4ca6b725c1208e89
parentb81a9a8c2d96ecbd1b53bdec4d6b094918970bd7 (diff)
downloadorg.eclipse.pdt-5ddcf895e281670bf90783b82d50fb84dba6c877.tar.gz
org.eclipse.pdt-5ddcf895e281670bf90783b82d50fb84dba6c877.tar.xz
org.eclipse.pdt-5ddcf895e281670bf90783b82d50fb84dba6c877.zip
No bug - remove unused PHP 7.1 parser rules to avoid "Production
possible_comma never reduced" java CUP generation warnings Signed-off-by: Thierry BLIND <thierryblind@msn.com>
-rw-r--r--plugins/org.eclipse.php.core/Resources/parserTools/parser/php71/php_ast_parser.cup7
-rw-r--r--plugins/org.eclipse.php.core/Resources/parserTools/parser/php71/php_compiler_ast_parser.cup7
2 files changed, 0 insertions, 14 deletions
diff --git a/plugins/org.eclipse.php.core/Resources/parserTools/parser/php71/php_ast_parser.cup b/plugins/org.eclipse.php.core/Resources/parserTools/parser/php71/php_ast_parser.cup
index 6826caa98..80e2829be 100644
--- a/plugins/org.eclipse.php.core/Resources/parserTools/parser/php71/php_ast_parser.cup
+++ b/plugins/org.eclipse.php.core/Resources/parserTools/parser/php71/php_ast_parser.cup
@@ -275,7 +275,6 @@ non terminal VariableBase function_call;
non terminal Expression exit_expr;
non terminal List ctor_arguments;
non terminal Expression scalar;
-non terminal possible_comma;
non terminal Expression expr;
non terminal VariableBase variable_class_name;
non terminal Expression optional_expr;
@@ -2875,12 +2874,6 @@ T_LNUMBER:scalar
:}
;
-/* do nothing */
-possible_comma ::=
-/* empty */
-| T_COMMA
-;
-
expr ::=
variable:var
{: RESULT = var; :}
diff --git a/plugins/org.eclipse.php.core/Resources/parserTools/parser/php71/php_compiler_ast_parser.cup b/plugins/org.eclipse.php.core/Resources/parserTools/parser/php71/php_compiler_ast_parser.cup
index 1af56c493..b8b69ecfe 100644
--- a/plugins/org.eclipse.php.core/Resources/parserTools/parser/php71/php_compiler_ast_parser.cup
+++ b/plugins/org.eclipse.php.core/Resources/parserTools/parser/php71/php_compiler_ast_parser.cup
@@ -263,7 +263,6 @@ non terminal Expression function_call;
non terminal Expression exit_expr;
non terminal PHPCallArgumentsList ctor_arguments;
non terminal Expression scalar;
-non terminal possible_comma;
non terminal Expression expr;
non terminal Expression variable_class_name;
non terminal Expression optional_expr;
@@ -3479,12 +3478,6 @@ T_LNUMBER:scalar
:}
;
-/* do nothing */
-possible_comma ::=
-/* empty */
-| T_COMMA
-;
-
expr ::=
variable:var
{: RESULT = var; :}

Back to the top