static_old_syntax.ml:
type t1 = A | B type t2 = Foo of string * t1 module Gram = Grammar.GMake(...) let foo = Gram.Entry.mk "foo" let bar = Gram.Entry.mk "bar" GEXTEND Gram GLOBAL: foo bor; foo: [ [ "foo"; i = LIDENT; b = bar -> Foo(i, b) ] ]; bar: [ [ "?" -> A | "." -> B ] ]; END;; Gram.Entry.parse foo (Stream.of_string "foo x?") = Foo("x", A) GDELETE_RULE Gram foo: "foo"; LIDENT; bar END
What is Grammar.GMake(...)? Is that real syntax, some camlp4 sugar, or something that means fill in something mysterious?