crazy tuple ideas.
Sean Kelly
sean at f4.ca
Fri Mar 2 11:16:35 PST 2007
Knud Soerensen wrote:
> With people starting to write compiler time parsers,
> maybe it would be a good idea to have a standard way for
> representing syntax trees.
>
> By allowing tuples to contain tuples we will have something
> very similar to the lisp list expression.
> Example:
> Tuple!(=,E,Tuple!(*,m,Tuple!(^,c,2))); // E=m*c^2;
> or maybe allowing the programmer to write just
> (=,E,(*,m,(^,c,2)))
mixin( Parse( "(=,E,(*,m,(^,c,2)))" ) );
:-P
Sean
More information about the Digitalmars-d
mailing list