summaryrefslogtreecommitdiff
path: root/support/syngen/src/syngen.m
blob: b7b413530d6bd3875e41b492ae4e8d8af7a38f74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
.TH SYNGEN 1

.SH NAME
syngen \- a syntax diagram generator


.SH SYNOPSIS
.B syngen
[
.BI \-c \ connect-length
]
[
.BI \-o \ character-length
]
[
.BI \-a \ length-offset
]
[
.BI \-h \ box-height
]
[
.BI \-f \ box-sep-frac
]
[
.BI \-version
]
[
.BI files...
]

.SH DESCRIPTION

.B syngen
is a generator for syntax diagrams. It takes files 
.IR xxx \&.ara,
written in a special 
language similar to BNF, and produces the corresponding output 
files
.IR xxx \&.syn,
which can be included directly (without additional macros) 
in LaTeX documents.

.SH OPTIONS

The following options are interpreted by 
.BR syngen . 
If an option is unused, then the predefined value for a 10pt 
typewriter type font will be taken.

.TP
.B \-c
The length of connect lines on basic boxes.

.TP
.B \-o
The length of a character.

.TP
.B \-a 
Additional offset to the box length.

.TP
.B \-h
The height of the basic boxes.

.TP
.B \-f
Vertically stacked boxes are separated by
.eq 
box-height * box-sep-frac.
.en

.TP
.B \-version
Print a version info.

.SH SEE ALSO

.br
.I
The SYNGEN user's manual.

.SH AUTHOR

SYNGEN was written by Jens Kloecker, University of Wuerzburg, FRG.