diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-05-26 13:55:19 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-05-26 13:55:19 +0000 |
commit | cb79314a713769a18a76dddeb1eb393452e584ef (patch) | |
tree | 8d1548732b13af4520a291ddfd052d9fcac1a493 /perl_checker.src/parser.mly | |
parent | 3d38c96f5f50aac80b7352b9d2129db93ecde002 (diff) | |
download | perl_checker-cb79314a713769a18a76dddeb1eb393452e584ef.tar perl_checker-cb79314a713769a18a76dddeb1eb393452e584ef.tar.gz perl_checker-cb79314a713769a18a76dddeb1eb393452e584ef.tar.bz2 perl_checker-cb79314a713769a18a76dddeb1eb393452e584ef.tar.xz perl_checker-cb79314a713769a18a76dddeb1eb393452e584ef.zip |
add a special case to handle "arch => 1" without going through word_alone()
Diffstat (limited to 'perl_checker.src/parser.mly')
-rw-r--r-- | perl_checker.src/parser.mly | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/perl_checker.src/parser.mly b/perl_checker.src/parser.mly index 2ed8a0b..3f042ae 100644 --- a/perl_checker.src/parser.mly +++ b/perl_checker.src/parser.mly @@ -195,8 +195,9 @@ expr: /* Ordinary expressions; logical combinations */ argexpr: /* Expressions are a list of terms joined by commas */ | argexpr comma { new_pesp M_list P_comma $1.any.expr $1 $2} -| argexpr comma term {if not_simple ($3.any.expr) then sp_p($3); new_pesp M_list P_comma (followed_by_comma $1 $2 @ [$3.any.expr]) $1 $3} -| argexpr comma BRACKET expr BRACKET_END {sp_p($3); sp_p($5); new_pesp M_list P_comma (followed_by_comma $1 $2 @ [ Ref(I_hash, $4.any.expr) ]) $1 $5} +| bareword RIGHT_ARROW term {if not_simple ($3.any.expr) then sp_p($3); new_pesp M_list P_comma (followed_by_comma [$1.any] false @ [$3.any.expr]) $1 $3} +| argexpr comma term {if not_simple ($3.any.expr) then sp_p($3); new_pesp M_list P_comma (followed_by_comma $1.any.expr $2.any @ [$3.any.expr]) $1 $3} +| argexpr comma BRACKET expr BRACKET_END {sp_p($3); sp_p($5); new_pesp M_list P_comma (followed_by_comma $1.any.expr $2.any @ [ Ref(I_hash, $4.any.expr) ]) $1 $5} | term %prec PREC_LOW { new_1pesp $1.any.priority [$1.any.expr] $1 } /********************************************************************************/ |