Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > d07d7ab417d79053e7e0155c99e1a1c8 > files > 2432

mlton-20100608-3.fc15.i686.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta name="robots" content="index,nofollow">



<title>SMLofNJStructure - MLton Standard ML Compiler (SML Compiler)</title>
<link rel="stylesheet" type="text/css" charset="iso-8859-1" media="all" href="common.css">
<link rel="stylesheet" type="text/css" charset="iso-8859-1" media="screen" href="screen.css">
<link rel="stylesheet" type="text/css" charset="iso-8859-1" media="print" href="print.css">


<link rel="Start" href="Home">


</head>

<body lang="en" dir="ltr">

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-833377-1";
urchinTracker();
</script>
<table bgcolor = lightblue cellspacing = 0 style = "border: 0px;" width = 100%>
  <tr>
    <td style = "
		border: 0px;
		color: darkblue; 
		font-size: 150%;
		text-align: left;">
      <a class = mltona href="Home">MLton MLTONWIKIVERSION</a>
    <td style = "
		border: 0px;
		font-size: 150%;
		text-align: center;
		width: 50%;">
      SMLofNJStructure
    <td style = "
		border: 0px;
		text-align: right;">
      <table cellspacing = 0 style = "border: 0px">
        <tr style = "vertical-align: middle;">
      </table>
  <tr style = "background-color: white;">
    <td colspan = 3
	style = "
		border: 0px;
		font-size:70%;
		text-align: right;">
      <a href = "Home">Home</a>
      &nbsp;<a href = "TitleIndex">Index</a>
      &nbsp;
</table>
<div id="content" lang="en" dir="ltr">

<pre class=code>
<B><FONT COLOR="#0000FF">signature</FONT></B> SML_OF_NJ =
   <B><FONT COLOR="#0000FF">sig</FONT></B>
      <B><FONT COLOR="#0000FF">structure</FONT></B> Cont:
         <B><FONT COLOR="#0000FF">sig</FONT></B>
            <B><FONT COLOR="#A020F0">type</FONT></B><B><FONT COLOR="#228B22"> 'a cont
            </FONT></B><B><FONT COLOR="#A020F0">val</FONT></B> callcc: ('a cont -&gt; 'a) -&gt; 'a
            <B><FONT COLOR="#A020F0">val</FONT></B> isolate: ('a -&gt; unit) -&gt; 'a cont
            <B><FONT COLOR="#A020F0">val</FONT></B> throw: 'a cont -&gt; 'a -&gt; 'b
         <B><FONT COLOR="#0000FF">end</FONT></B>
      <B><FONT COLOR="#0000FF">structure</FONT></B> SysInfo:
         <B><FONT COLOR="#0000FF">sig</FONT></B>
            <B><FONT COLOR="#A020F0">exception</FONT></B><B><FONT COLOR="#228B22"> <FONT COLOR="#B8860B">UNKNOWN</FONT>
            </FONT></B><B><FONT COLOR="#A020F0">datatype</FONT></B><B><FONT COLOR="#228B22"> os_kind </FONT></B>=<B><FONT COLOR="#228B22"> <FONT COLOR="#B8860B">BEOS</FONT> </FONT></B>|<B><FONT COLOR="#228B22"> <FONT COLOR="#B8860B">MACOS</FONT> </FONT></B>|<B><FONT COLOR="#228B22"> <FONT COLOR="#B8860B">OS2</FONT> </FONT></B>|<B><FONT COLOR="#228B22"> <FONT COLOR="#B8860B">UNIX</FONT> </FONT></B>|<B><FONT COLOR="#228B22"> <FONT COLOR="#B8860B">WIN32</FONT>

            </FONT></B><B><FONT COLOR="#A020F0">val</FONT></B> getHostArch: unit -&gt; string
            <B><FONT COLOR="#A020F0">val</FONT></B> getOSKind: unit -&gt; os_kind
            <B><FONT COLOR="#A020F0">val</FONT></B> getOSName: unit -&gt; string
         <B><FONT COLOR="#0000FF">end</FONT></B>

      <B><FONT COLOR="#A020F0">val</FONT></B> exnHistory: exn -&gt; string list
      <B><FONT COLOR="#A020F0">val</FONT></B> exportFn: string * (string * string list -&gt; OS.Process.status) -&gt; unit
      <B><FONT COLOR="#A020F0">val</FONT></B> exportML: string -&gt; bool
      <B><FONT COLOR="#A020F0">val</FONT></B> getAllArgs: unit -&gt; string list
      <B><FONT COLOR="#A020F0">val</FONT></B> getArgs: unit -&gt; string list
      <B><FONT COLOR="#A020F0">val</FONT></B> getCmdName: unit -&gt; string
   <B><FONT COLOR="#0000FF">end</FONT></B>
</PRE>
<p>
 
</p>
<p>
<tt>SMLofNJ</tt> implements a subset of the structure of the same name provided in Standard ML of New Jersey.  It is included to make it easier to port programs between the two systems.  The semantics of these functions may be different than in SML/NJ. 
</p>

    <ul>

    <li>
<p>
 <tt>structure&nbsp;Cont</tt>  <br>
implements continuations. 
</p>
</li>
    <li class="gap">
<p>
 <tt>SysInfo.getHostArch&nbsp;()</tt>  <br>
returns the string for the architecture. 
</p>
</li>
    <li class="gap">
<p>
 <tt>SysInfo.getOSKind</tt>  <br>
returns the OS kind. 
</p>
</li>
    <li class="gap">
<p>
 <tt>SysInfo.getOSName&nbsp;()</tt>  <br>
returns the string for the host. 
</p>
</li>
    <li class="gap">
<p>
 <tt>exnHistory</tt>  <br>
the same as <tt>MLton.Exn.history</tt>. 
</p>
</li>
    <li class="gap">
<p>
 <tt>getCmdName&nbsp;()</tt>  <br>
the same as <tt>CommandLine.name&nbsp;()</tt>. 
</p>
</li>
    <li class="gap">
<p>
 <tt>getArgs&nbsp;()</tt>  <br>
the same as <tt>CommandLine.arguments&nbsp;()</tt>. 
</p>
</li>
    <li class="gap">
<p>
 <tt>getAllArgs&nbsp;()</tt>  <br>
the same as <tt>getCmdName()::getArgs()</tt>. 
</p>
</li>
    <li class="gap">
<p>
 <tt>exportFn&nbsp;f</tt>  <br>
saves the state of the computation to a file that will apply <tt>f</tt>  to the command-line arguments upon restart. 
</p>
</li>
    <li class="gap">
<p>
 <tt>exportML&nbsp;f</tt>  <br>
saves the state of the computation to file <tt>f</tt> and continue.  Returns <tt>true</tt> in the restarted computation and <tt>false</tt> in  the continuing computation. 
</p>
</li>
</ul>

</div>



<p>
<hr>
Last edited on 2008-05-10 11:43:49 by <span title="c-71-57-91-146.hsd1.il.comcast.net"><a href="MatthewFluet">MatthewFluet</a></span>.
</body></html>