aboutsummaryrefslogtreecommitdiff
path: root/gfsm/gfsm/src/programs/gfsmcompile.gog
blob: e53307b2ec64edaf6ab4ac26233268242f90c1b2 (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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# -*- Mode: Shell-Script -*-
#
# Getopt::Gen specification
#-----------------------------------------------------------------------------
program "gfsmcompile"
#program_version "0.01"

purpose	"Compile text format gfsm files to binary"
author  "Bryan Jurish <moocow@ling.uni-potsdam.de>"
on_reparse "warn"

#-----------------------------------------------------------------------------
# Details
#-----------------------------------------------------------------------------
details ""

#-----------------------------------------------------------------------------
# Files
#-----------------------------------------------------------------------------
#rcfile "/etc/mootrc"
#rcfile "~/.mootrc"

#-----------------------------------------------------------------------------
# Arguments
#-----------------------------------------------------------------------------
argument "TXTFILE" "Input text file" \
    details="
If unspecified, standard input will be read
"

#argument "BINFILE" "Output binary gfsm file" \
#    details="
#If unspecified, output will be written to standard output.
#"

#-----------------------------------------------------------------------------
# Options
#-----------------------------------------------------------------------------
#group "Basic Options"

flag   "acceptor" a "Compile as acceptor (default=transducer)" \
  default=0

string "ilabels" i "Specify input (lower) labels file." \
   arg="LABELS"

string "olabels" o "Specify output (upper) labels file." \
   arg="LABELS"

string "slabels" S "Specify state labels file." \
   arg="LABELS"

string "semiring" s "Specify semiring type." \
   arg="SRTYPE" \
   default="tropical" \
   details="
Specify one of the following:

 boolean
 log
 plog
 real
 trivial
 tropical

"

int "compress" z "Specify compression level of output file." \
    arg="LEVEL" \
    default="-1" \
    details="
Specify zlib compression level of output file. -1 (default) indicates
the default compression level, 0 (zero) indicates no zlib compression at all,
and 9 indicates the best possible compression.
"

string "output" F "Specifiy output file (default=stdout)." \
    arg="FILE" \
    default="-"

#-----------------------------------------------------------------------------
# Addenda
#-----------------------------------------------------------------------------
#addenda ""

#-----------------------------------------------------------------------------
# Bugs
#-----------------------------------------------------------------------------
bugs "

None known.

"

#-----------------------------------------------------------------------------
# Footer
#-----------------------------------------------------------------------------
#acknowledge `cat acknowledge.pod`

seealso "
L<gfsmutils>
"