summaryrefslogtreecommitdiffstats
path: root/perl_checker.src/parser_helper.ml
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-01-05 10:17:08 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-01-05 10:17:08 +0000
commit0a55fab4fbefb84ac3095cdacd018c649b67453c (patch)
tree4b7bc4fe9a34cbc0ac802d39343cb7bb083b04ad /perl_checker.src/parser_helper.ml
parent702be6559becb9d1d37e6f8e9a9bd76d917e263b (diff)
downloadperl_checker-0a55fab4fbefb84ac3095cdacd018c649b67453c.tar
perl_checker-0a55fab4fbefb84ac3095cdacd018c649b67453c.tar.gz
perl_checker-0a55fab4fbefb84ac3095cdacd018c649b67453c.tar.bz2
perl_checker-0a55fab4fbefb84ac3095cdacd018c649b67453c.tar.xz
perl_checker-0a55fab4fbefb84ac3095cdacd018c649b67453c.zip
use hash_ref() to check priority of the arguments
Diffstat (limited to 'perl_checker.src/parser_helper.ml')
-rw-r--r--perl_checker.src/parser_helper.ml4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl_checker.src/parser_helper.ml b/perl_checker.src/parser_helper.ml
index 76bd171..c52dadc 100644
--- a/perl_checker.src/parser_helper.ml
+++ b/perl_checker.src/parser_helper.ml
@@ -245,12 +245,14 @@ let prio_lo_check pri_out pri_in pos expr =
| _ -> warn pos "missing parentheses (needed for clarity)")
let prio_lo pri_out in_ = prio_lo_check pri_out in_.any.priority in_.pos in_.any.expr ; in_.any.expr
-
+
let prio_lo_after pri_out in_ =
if in_.any.priority = P_call_no_paren then in_.any.expr else prio_lo pri_out in_
let prio_lo_concat esp = prio_lo P_mul { esp with any = { esp.any with priority = P_paren_wanted esp.any.priority } }
+let hash_ref esp = Ref(I_hash, prio_lo P_loose esp)
+
let sp_0 esp =
match esp.spaces with
| Space_none -> ()