[MLton] mllex fails when actions include unbalanced parentheses

Matthew Fluet fluet@cs.cornell.edu
Thu, 21 Jul 2005 08:32:52 -0400 (EDT)


On Thu, 21 Jul 2005, Neophytos Michael wrote:
> It's a bug in mllex.  I fixed this bug and sent a patch to Matthias Blume a few
> years ago.  I am pretty sure he incorporated it in SML/NJ's version of lex. 
> Mlton's MLLex was perhaps forked before that time.  Maybe we should update our
> mllex with the current one is SML/NJ.

I've synchronized MLton's mllex with SML/NJ's ml-lex, indirectly 
incorporating the patches of Neophytos and Michael.

> --- Michael Norrish <Michael.Norrish@nicta.com.au> wrote:
> 
> > If something like the following is an MLLex action, then it gets
> > confused and complains of a syntax error
> > 
> > "(" => (print "("; lex());
> > 
> > The version of MLlex from SML/NJ that I also have installed on my
> > system doesn't have this problem. 
> > 
> > Michael.
> >