summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-12-05 21:28:06 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-12-05 21:28:06 +0000
commit0b3da9d4f0cf344b679b98373f5c2e4ef0d8146c (patch)
treebdeaf2f49c5e6a34b7e30fb7d5e775bb6e4afe02
parent6ff69cc07e7753e2727ddbb915bf862c0bf18689 (diff)
downloadperl-MDK-Common-0b3da9d4f0cf344b679b98373f5c2e4ef0d8146c.tar
perl-MDK-Common-0b3da9d4f0cf344b679b98373f5c2e4ef0d8146c.tar.gz
perl-MDK-Common-0b3da9d4f0cf344b679b98373f5c2e4ef0d8146c.tar.bz2
perl-MDK-Common-0b3da9d4f0cf344b679b98373f5c2e4ef0d8146c.tar.xz
perl-MDK-Common-0b3da9d4f0cf344b679b98373f5c2e4ef0d8146c.zip
fix precedence issue
-rw-r--r--perl_checker.src/parser.mly2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl_checker.src/parser.mly b/perl_checker.src/parser.mly
index b47eb3d..46c859a 100644
--- a/perl_checker.src/parser.mly
+++ b/perl_checker.src/parser.mly
@@ -325,7 +325,7 @@ term:
| ONE_SCALAR_PARA parenthesized {call_one_scalar_para $1 $2.any.expr $1 $2}
| ONE_SCALAR_PARA BRACKET lines BRACKET_END {sp_n($2); new_pesp M_unknown P_tok (call(Deref(I_func, Ident(None, $1.any, raw_pos2pos $1.pos)), [anonymous_sub None $3 $4])) $1 $4} /* eval { foo } */
| ONE_SCALAR_PARA diamond {call_one_scalar_para $1 [$2.any] $1 $2}
-| ONE_SCALAR_PARA {call_one_scalar_para $1 [] $1 $1}
+| ONE_SCALAR_PARA %prec PREC_LOW {call_one_scalar_para $1 [] $1 $1}
| ONE_SCALAR_PARA word argexpr {check_parenthesized_first_argexpr_with_Ident $2.any $3; call_one_scalar_para $1 [call(Deref(I_func, $2.any), $3.any.expr)] $1 $3} /* ref foo $a, $b */
| ONE_SCALAR_PARA hash PKG_SCOPE {sp_0($3); call_one_scalar_para $1 [ Call(Too_complex, [$2.any]) ] $1 $3} /* keys %main:: */
| ONE_SCALAR_PARA BAREWORD {if $2.any = "_" && $1.any.[0] = '-' then new_pesp M_bool P_mul Too_complex $1 $2 else die_rule "syntax error"} /* -e "foo" && -f _ */