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
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