ocaml-attic / ocaml-cstruct

Map OCaml arrays onto C-like structs via a syntax extension, and generate functions to convert to-and-from native OCaml values.
http://www.openmirage.org/
10 stars 2 forks source link

pass-through comments #17

Closed mor1 closed 10 years ago

mor1 commented 10 years ago

would be nice if (ocamldoc?) comments attached to fields in cstruct or cenum declarations could be passed through in some manner to the generated code. would enable ocamldoc generation for autogenerated code.

avsm commented 10 years ago

This is hard to do as cstruct doesnt propagate ocamldoc -- @lpw25 might have some ideas with his new bindoc though.

avsm commented 10 years ago

Not going to happen with the current camlp4, but we can revisit when extension points occur