Browse thread
camlp4: From AST to shortcuts
- Joel Reymont
[
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: | Joel Reymont <joelr1@g...> |
| Subject: | camlp4: From AST to shortcuts |
Suppose I'm debugging a camlp4 extension and get the following AST Ast.TyId (_loc, Ast.IdLid (_loc, "int")) what's the best way of figuring out that this correspods to this bit? <:ctyp< int >> Do I grep the sources and if so what files? This is a rather simple example but I'm trying to teach myself to fish. Ultimately, I want to add initializer code and fields to the AST resulting from a class declaration. Thanks, Joel -- http://wagerlabs.com