[MLton] parser generation using mlton

Lukasz S Ziarek lziarek@cs.purdue.edu
Wed, 7 Jul 2004 14:20:01 -0500 (EST)


Hey everyone,

so in sml/nj i would code up my lexer and grammar compiler both using
mllex and mlyacc, write a "driver" file that produces a function that will
lex and parse which then is exported with exportFn to produced a heap
image that I can run from my shell.

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?

thanks,
Luke