Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* camlp4 3.10: What should this look like?
@ 2007-05-21  8:43 Joel Reymont
  2007-05-21  9:26 ` [Caml-list] " Nicolas Pouillard
  0 siblings, 1 reply; 4+ messages in thread
From: Joel Reymont @ 2007-05-21  8:43 UTC (permalink / raw)
  To: OCaml List

What should this look like in the new camlp4 syntax?

EXTEND
   Pcaml.expr: LEVEL "expr1" [
     [ "PGSQL"; "("; dbh = Pcaml.expr; ")"; extras = LIST1 STRING ->
         let query, flags =
           match List.rev extras with
           | [] -> assert false
           | query :: flags -> query, flags in
         pgsql_expand ~flags loc dbh (Token.eval_string loc query)
     ]
   ];
END

	Thanks, Joel

--
http://wagerlabs.com/






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-05-21 10:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-21  8:43 camlp4 3.10: What should this look like? Joel Reymont
2007-05-21  9:26 ` [Caml-list] " Nicolas Pouillard
2007-05-21  9:56   ` Joel Reymont
2007-05-21 10:44     ` Nicolas Pouillard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox