smlyacc command only takes an input file name .grm.
The output file name can be specified with the following
environment variable:
SMLYACC_OUTPUT=
The specification of the output file includes its suffix (.sml).
With this environment variable is set, smlyacc generates
the token signature at the top of the output file.