Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

eschew built-in lazy patterns

  • Loading branch information...
commit e321fce9d69d974e44d1a0e0a12a23e852e8bbaf 1 parent 461e962
Jake Donham authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  applications/lazy/pa_lazy.ml
View
3  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$ >>]];
Please sign in to comment.
Something went wrong with that request. Please try again.