[MLton] parser generation using mlton

Stephen Weeks MLton@mlton.org
Wed, 7 Jul 2004 12:32:55 -0700


> I was wondering how to do all this in mlton? From poking about in the
> front-end it looks like I need basis library for mlyacc, but I should be
> able to link that in similarly to how sources.cm for the front end relies
> on import.cm.   Instead of using sml/nj's exportFn to produce a heap image
> I simply use "structure Main =" in my driver file which will produce an
> executable correct? Other than that everything should be the same?

Yep.  You just need to make sure and call Main.main or the executable
won't do anything.  And, "Main" is not some special name.  You could
use any name you want.