[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Fabrice Marchant <fabrice.marchant@o...> |
| Subject: | Please a simple Camlp5 example |
Hi ! Aware that this belongs to beginners-list, I first posted there three weeks ago, but without any answer : I bet this kind of code should be rather common : let string_of_piece_type = function King -> "King" | Queen -> "Queen" | Rook -> "Rook" | Bishop -> "Bishop" | Knight -> "Knight" | Pawn -> "Pawn" Please have you got an example where the macro helps to implement such kind of "string_of_type" function ? Thanks, Fabrice