diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-04-28 09:37:11 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-04-28 09:37:11 +0000 |
commit | 4acf514f4c50acfc9d09ea141c7485459b133325 (patch) | |
tree | 5bbaf24ec67465d88e415685ab780d9bf2541354 | |
parent | 8a01fcef8fc8b9af657c2301fd171d0bd242d485 (diff) | |
download | perl_checker-4acf514f4c50acfc9d09ea141c7485459b133325.tar perl_checker-4acf514f4c50acfc9d09ea141c7485459b133325.tar.gz perl_checker-4acf514f4c50acfc9d09ea141c7485459b133325.tar.bz2 perl_checker-4acf514f4c50acfc9d09ea141c7485459b133325.tar.xz perl_checker-4acf514f4c50acfc9d09ea141c7485459b133325.zip |
handle: -e "foo" && -f _
-rw-r--r-- | perl_checker.src/parser.mly | 1 |
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 */ |