On Fri, 2007-05-25 at 17:39 +0000, Martin Percossi wrote:
> Erick Tryzelaar wrote:
> > #syntax light
> > whilst x do
> > x = 1
> > y = 2
> > done
> > #endsyntax
>
> I don't like this because users will forget about the one on the bottom,
> if, as I suspect they will, they surround the entire file with the
> directives. Also, why is the "done" at the end necessary?
It wouldn't be, however the current $$ implementation ONLY
works with { ; } and not do .. done.
do .. done is also used in conditionals:
if .. do ..
elif .. then ..
elif .. then ..
else ..
done;
This is a wart really. I agree indenting should handle do/done
as well as {}.
--
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Felix-language mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/felix-language