Hi.

> 3. DEFMACRO is going in as an experimental tool. We want to have this to
> simplify the compiler and to better understand what syntactic forms are
> compelling from a convenience perspective. The goal is to reduce the
> size of the parser and the semantic specification.

I took part in writing the compiler for the Nemerle language (www.nemerle.org).
We decided to go for an extensive macro system just because we wanted to
simplify the parser and it was a success. It is also possible and practical to
add simple syntax definitions to macros so it can handle usual if, while or
for statements. You can take a look at how it works on 
http://nemerle.org/macros.html - although now we are making a switch to
an even more extendable and simpler parser. It's not perfect, but useful.

- lk
_______________________________________________
bitc-dev mailing list
[email protected]
http://www.coyotos.org/mailman/listinfo/bitc-dev

Reply via email to