summaryrefslogtreecommitdiffstats
path: root/perl_checker.src
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-04-28 09:37:11 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-04-28 09:37:11 +0000
commit864b3ba1d6249a1afd17aa1f482fcd07dd3c2f4e (patch)
treed72c64321fdef85439e53dc12997575ea7441d9e /perl_checker.src
parent24d70926e1d7b47d701b767c187f6d37ee722b58 (diff)
downloadperl-MDK-Common-864b3ba1d6249a1afd17aa1f482fcd07dd3c2f4e.tar
perl-MDK-Common-864b3ba1d6249a1afd17aa1f482fcd07dd3c2f4e.tar.gz
perl-MDK-Common-864b3ba1d6249a1afd17aa1f482fcd07dd3c2f4e.tar.bz2
perl-MDK-Common-864b3ba1d6249a1afd17aa1f482fcd07dd3c2f4e.tar.xz
perl-MDK-Common-864b3ba1d6249a1afd17aa1f482fcd07dd3c2f4e.zip
handle: -e "foo" && -f _
Diffstat (limited to 'perl_checker.src')
-rw-r--r--perl_checker.src/parser.mly1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl_checker.src/parser.mly b/perl_checker.src/parser.mly
index d8127da..234982b 100644
--- a/perl_checker.src/parser.mly
+++ b/perl_checker.src/parser.mly
@@ -318,6 +318,7 @@ term:
| ONE_SCALAR_PARA {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 _ */
| func parenthesized {sp_0($2); call_func $1 $2} /* &foo(@args) */
| word argexpr {check_parenthesized_first_argexpr_with_Ident $1.any $2; call_no_paren $1 $2} /* foo $a, $b */