Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
From: Andre Nathan <andre@d...>
Subject: Processing an Ast.expr list in Camlp4
Hello

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?

Thanks,
Andre