HCoop backport of SML/NJ for ml-nlffigen
[hcoop/zz_old/debian/smlnj.git] / debian / nowhere.1
CommitLineData
4dd335d4
JM
1.TH nowhere 1 "July 21, 2004"
2.SH NAME
3nowhere \- a tree parser generator for Standard ML
4.SH SYNOPSIS
5.B nowhere
6.I file
7.br
8.SH DESCRIPTION
9This manual page documents briefly the
10.B nowhere
11command.
12This manual page was written for the Debian distribution
13because the original program does not have a manual page.
14
15The
16.B nowhere
17program is a simple source to source translation tool that expands out
18case expressions with conditional patterns.
19
20Conditional patterns use the "where" keyword. For example:
21
22 case l of
23 [x,y,z] where x=1 => 1
24 | _ => 2
25
26means the same as:
27
28 case l of
29 [1,y,z] => 1
30 | _ => 2
31
32Currently, the input file must be of the following form:
33
34 local
35 <definitions>
36 in
37 <body>
38 end
39 <definitions>
40
41should include all datatypes definitions that are used inside the
42.IR body .
43It is only for the tool's benefit and does not appear in the output.
44Only
45.I body
46appears at the output. You can use the special declaration
47
48 include "filename"
49
50to import extra definitions.
51
52The tool translates all case expressions with guards into the appropriate code.
53
54.SH SEE ALSO
55.I /usr/share/doc/nowhere/README
56.br
57.SH AUTHOR
58This manual page was written by Aaron Read <amread@nyx.net>. for the
59Debian GNU/Linux system (but may be used by others)