Permalink
Browse files

eschew built-in lazy patterns

  • Loading branch information...
1 parent 461e962 commit e321fce9d69d974e44d1a0e0a12a23e852e8bbaf Jake Donham committed Sep 7, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 applications/lazy/pa_lazy.ml
@@ -2,6 +2,9 @@
open Camlp4.PreCast.Syntax
+(* OCaml > 3.10.2 has built-in lazy patterns *)
+DELETE_RULE Gram patt: "lazy"; SELF END
+
EXTEND Gram
patt: LEVEL "simple"
[LEFTA ["lazy"; p = SELF -> <:patt< $uid:"lazy"$ $p$ >>]];

0 comments on commit e321fce

Please sign in to comment.