[MLton] can mlbasis rename the top-level?

Neophytos Michael nmichael@yahoo.com
Wed, 7 Sep 2005 09:56:52 -0700 (PDT)


I was thinking exactly the same thing.  I was going to suggest [ ] but { } is
just as good.

Neophytos

--- "Wesley W. Terpstra" <wesley@terpstra.ca> wrote:

> On Sep 7, 2005, at 3:51 PM, Matthew Fluet wrote:
> > Another thought: we could push even closer to the 'here-document'  
> > approach and allow the opening/closing delimiters be chosen on a  
> > per-instance basis.  For example, I don't imagine it is that much  
> > harder to allow an opening delimiter that matches the reg-exp:
> >  {<+{
> > and a closing delimeter that matches the reg-exp:
> >  }>+}
> > with the additional requirement that the number of < in the opening  
> > is equal to the number of > in the closing.  Now you can always  
> > find an opening/closing pair that doesn't conflict with any finite  
> > amount of SML code.
> 
> Forgive me for being stupid, but why not just use { and } ?
> 
> It's easy to keep a count of the opening and closing {}s in the lexer.
> The only detail would be (afaics) to watch out for nested comments
> (since they could have unmatched {}s), but that just needs another
> state in the lexer.
> 
> _______________________________________________
> MLton mailing list
> MLton@mlton.org
> http://mlton.org/mailman/listinfo/mlton
> 



	
		
______________________________________________________
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/