English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
How can I generate an AST?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-08-19 (17:39)
From: Loup Vaillant <loup.vaillant@g...>
Subject: How can I generate an AST?

I would like to write a preprocessor of my own (to make a lisp
syntax). In the process, I am slowly catching up with the Ocaml AST.

However, I am clueless about how I should feed the compiler with my
generated AST. Should I use Marshall? should I output the same as the
option -dparsetree? Should I use some "purple magic"?

Can anybody give me a pointer about how to do this?

Loup Vaillant