Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Processing an Ast.expr list in Camlp4
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-03-30 (16:22)
From: Andre Nathan <andre@d...>
Subject: Processing an Ast.expr list in Camlp4

Currently I have a function that basically does simply this:

  let foo _loc seq =
    <:expr< do { $list:seq$ } >>

where seq has type `Camlp4.PreCast.Syntax.Ast.expr list'.

Is it possible to iterate over this list and process each expr manually,
for example, doing pattern matching on them, instead of just feeding it
to the do{} block?