Version française
Home     About     Download     Resources     Contact us    
Browse thread
camlp4: From AST to shortcuts
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ 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