diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/compat.ml4 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/compat.ml4 b/lib/compat.ml4 index f2994edc67..67d2820a72 100644 --- a/lib/compat.ml4 +++ b/lib/compat.ml4 @@ -227,3 +227,13 @@ let expl_anti loc e = <:expr< $anti:e$ >> ELSE let expl_anti _loc e = e (* FIXME: understand someday if we can do better *) END + +(** Compatibility with Camlp5 6.x *) + +IFDEF CAMLP5_6_00 THEN +let slist0sep x y = Gramext.Slist0sep (x, y, false) +let slist1sep x y = Gramext.Slist1sep (x, y, false) +ELSE +let slist0sep x y = Gramext.Slist0sep (x, y) +let slist1sep x y = Gramext.Slist1sep (x, y) +END |
