Browse thread
Question on camlp4 3.10
- Benedikt Grundmann
[
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: | Benedikt Grundmann <benedikt@c...> |
| Subject: | Question on camlp4 3.10 |
How can I get the name of the module where my syntax extension is applied? For simplicity assume that I would like to write a MODULE macro similar to __FILE__ in c. shell> cat > test.ml let _ = print_endline MODULE shell> ./test Test shell> cat > test2.ml module M = struct let _ = print_endline MODULE end shell> ./test2 Test.M Cheers, Bene -- Calvin: I try to make everyone's day a little more surreal. (From Calvin & Hobbes)