[nem-en] Questions about macros

Alejandro Serrano trupill at yahoo.es
Fri Jun 9 19:02:02 CEST 2006


Hi again,
I've got some more questions about macros.

1) Is there any way to reuse the "where" keyword? I used "syntax 
("from", clause, Optional ("wherex", where_clause), Optional("select", 
select_clause))", it compiles fine, but when used it complains about 
"where on a raw expression".

2) How can I look for expressions? I mean I want to have this string

from x in c where x > 2 select x + 1groupby x, x+1 ascending

to be extracted as:

from (x in c)
where (x > 2) <-- x > 2 as a expression
select (x+1)
groupby (x, (x+1) ascending) <-- I should get some array or list 
containing the expressions

and all these expressions can be on any order, so I should get an array 
with all of them

I don't want to bother, just please point me on the right direction, 
because I feel using the "syntax" syntax (:-) is very limited for this 
case. I've looked in documentation and in the library, and I've only 
found something near what I'm looking for in Alias macro, which rceives 
a list[PExpr]. However, in that case commas delimit the PExpr, in my 
case they do not.

Thanks in advance

	
	
		
______________________________________________ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com




More information about the devel-en mailing list