On Sun, 2006-09-10 at 12:58 -0700, Erick Tryzelaar wrote:
> Peter Tanski wrote:
> I would choose the first if anything. Oh this reminds me, what about
> making the syntax between 'fun's, 'proc's, and 'gen's consistent, so
> that they're either all "keyword f()={}" or "keyword f() {}"? Oh, and
> maybe also allowing "(proc (x) => print x)" as an anonymous function as
> well.
In fact,
(proc(x)=>print x)
cannot work but
(proc(x)=> print x;)
CAN work, for the same reason:
{ f x } // lazy expression
{ f x; } // lazy statement
There's no ambiguity here because of the semicolon. In fact
{ return x; }
is also an expression .. which is done with the 'trick' of checking
for a terminating 'return' statement .. and doesn't work with
{ if x do return y; done; }
> >>
> >> I'm thinking
> >>
> >> we require fred
> >>
> >> for the global version :)
>
> For the module, we could do the whole "module M requires xyz = {}" as
> well. Not crazy about making "we" a keyword as well :)
Yeah but then you'd also want
module M inherits A { .. }
instead of
module M { inherit A; }
What we actually need is a 'generic grammar':
adjective name binder qualifiers = definition properties
or something, and then drive the parsing with a lexicon
and dictionary plus 'user defined syntax'.
--
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Felix-language mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/felix-language