summaryrefslogtreecommitdiffstats
path: root/perl_checker.src/common.ml
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-04-17 11:38:51 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-04-17 11:38:51 +0000
commit599c7e0ed6b95c9f77500d54fc4d06d9991adeef (patch)
treeb336f8fd7355adcad43b612bc2f359ec1d999f11 /perl_checker.src/common.ml
parentacbffb9049c80b31ac1c59eaadd1e7811a07b785 (diff)
downloadperl_checker-599c7e0ed6b95c9f77500d54fc4d06d9991adeef.tar
perl_checker-599c7e0ed6b95c9f77500d54fc4d06d9991adeef.tar.gz
perl_checker-599c7e0ed6b95c9f77500d54fc4d06d9991adeef.tar.bz2
perl_checker-599c7e0ed6b95c9f77500d54fc4d06d9991adeef.tar.xz
perl_checker-599c7e0ed6b95c9f77500d54fc4d06d9991adeef.zip
basic "number of arguments" checking
Diffstat (limited to 'perl_checker.src/common.ml')
-rw-r--r--perl_checker.src/common.ml4
1 files changed, 4 insertions, 0 deletions
diff --git a/perl_checker.src/common.ml b/perl_checker.src/common.ml
index c9991b7..7afbd00 100644
--- a/perl_checker.src/common.ml
+++ b/perl_checker.src/common.ml
@@ -21,6 +21,10 @@ let sndfst ((_, e), _) = e
let fstsnd (_, (e, _)) = e
let sndsnd (_, (_, e)) = e
+let fst3 (e, _, _) = e
+let snd3 (_, e, _) = e
+let ter3 (_, _, e) = e
+let sndter3 (_, a, b) = (a, b)
let o f g x = f (g x)
let curry f x y = f (x,y)