Debian Codegraph @

doc/guide/src/ManualPage.adoc

raw
1 = ManualPage
2
3 MLton is run from the command line with a collection of options
4 followed by a file name and a list of files to compile, assemble, and
5 link with.
6
7 ----
8 mlton [option ...] file.{c|mlb|o|sml} [file.{c|o|s|S} ...]
9 ----
10
11 The simplest case is to run `mlton foo.sml`, where `foo.sml` contains
12 a valid SML program, in which case MLton compiles the program to
13 produce an executable `foo`. Since MLton does not support separate
14 compilation, the program must be the entire program you wish to
15 compile. However, the program may refer to signatures and structures
16 defined in the <<BasisLibrary#,Basis Library>>.
17
18 Larger programs, spanning many files, can be compiled with the
19 <<MLBasis#,ML Basis system>>. In this case, `mlton foo.mlb` will
20 compile the complete SML program described by the basis `foo.mlb`,
21 which may specify both SML files and additional bases.
22
23 == Next Steps
24
25 * <<CompileTimeOptions#>>
26 * <<RunTimeOptions#>>