Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2007-10-09 (21:41)
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