@@ -25,48 +25,63 @@ class ParseError < StandardError; end
25
25
# == Command-line Reference
26
26
#
27
27
# racc [-o<var>filename</var>] [--output-file=<var>filename</var>]
28
- # [-e<var>rubypath</var>] [--executable=<var>rubypath</var>]
28
+ # [-t] [--debug]
29
+ # [-g]
29
30
# [-v] [--verbose]
30
31
# [-O<var>filename</var>] [--log-file=<var>filename</var>]
31
- # [-g ] [--debug ]
32
+ # [-e<var>rubypath</var> ] [--executable=<var>rubypath</var> ]
32
33
# [-E] [--embedded]
34
+ # [-F] [--frozen]
35
+ # [--line-convert-all]
33
36
# [-l] [--no-line-convert]
34
- # [-c] [--line-convert-all]
35
37
# [-a] [--no-omit-actions]
38
+ # [--superclass=<var>classname</var>]
36
39
# [-C] [--check-only]
37
40
# [-S] [--output-status]
38
- # [--version] [--copyright] [--help] <var>grammarfile</var>
41
+ # [-P]
42
+ # [-D<var>flags</var>]
43
+ # [--version] [--runtime-version] [--copyright] [--help] <var>grammarfile</var>
39
44
#
40
45
# [+grammarfile+]
41
46
# Racc grammar file. Any extension is permitted.
42
47
# [-o+outfile+, --output-file=+outfile+]
43
48
# A filename for output. default is <+filename+>.tab.rb
49
+ # [-t, --debug]
50
+ # Add debug code to parser class. To display debugging information,
51
+ # use this '-t' option and set @yydebug true in parser class.
52
+ # [-g]
53
+ # This option is obsolete. Use '-t' instead.
54
+ # [-v, --verbose]
55
+ # Verbose mode. create +filename+.output file, like yacc's y.output file.
44
56
# [-O+filename+, --log-file=+filename+]
45
57
# Place logging output in file +filename+.
46
58
# Default log file name is <+filename+>.output.
47
59
# [-e+rubypath+, --executable=+rubypath+]
48
- # output executable file(mode 755). where +path+ is the Ruby interpreter.
49
- # [-v, --verbose]
50
- # verbose mode. create +filename+.output file, like yacc's y.output file.
51
- # [-g, --debug]
52
- # add debug code to parser class. To display debugging information,
53
- # use this '-g' option and set @yydebug true in parser class.
60
+ # Output executable file(mode 755). where +path+ is the Ruby interpreter.
54
61
# [-E, --embedded]
55
62
# Output parser which doesn't need runtime files (racc/parser.rb).
56
63
# [-F, --frozen]
57
64
# Output parser which declares frozen_string_literals: true
65
+ # [--line-convert-all]
66
+ # Convert line number of actions, inner, header and footer.
67
+ # [-l, --no-line-convert]
68
+ # Turns off line number converting.
69
+ # [-a, --no-omit-actions]
70
+ # Call all actions, even if an action is empty.
71
+ # [--superclass=+classname+]
72
+ # Uses +classname+ instead of Racc::Parser as the superclass of the generated parser.
58
73
# [-C, --check-only]
59
74
# Check syntax of racc grammar file and quit.
60
75
# [-S, --output-status]
61
76
# Print messages time to time while compiling.
62
- # [-l, --no-line-convert]
63
- # turns off line number converting.
64
- # [-c, --line-convert-all]
65
- # Convert line number of actions, inner, header and footer.
66
- # [-a, --no-omit-actions]
67
- # Call all actions, even if an action is empty.
77
+ # [-P]
78
+ # Enables generator profile mode.
79
+ # [-D +flags+]
80
+ # Do not use this option. Flags for Racc debugging.
68
81
# [--version]
69
- # print Racc version and quit.
82
+ # Print Racc version and quit.
83
+ # [--runtime-version]
84
+ # Print Racc runtime version and quit.
70
85
# [--copyright]
71
86
# Print copyright and quit.
72
87
# [--help]
@@ -129,14 +144,14 @@ class ParseError < StandardError; end
129
144
#
130
145
# == Debugging
131
146
#
132
- # When debugging, "-v" or/and the "-g " option is helpful.
147
+ # When debugging, "-v" or/and the "-t " option is helpful.
133
148
#
134
149
# "-v" creates verbose log file (.output).
135
- # "-g " creates a "Verbose Parser".
150
+ # "-t " creates a "Verbose Parser".
136
151
# Verbose Parser prints the internal status when parsing.
137
152
# But it's _not_ automatic.
138
- # You must use -g option and set +@yydebug+ to +true+ in order to get output.
139
- # -g option only creates the verbose parser.
153
+ # You must use -t option and set +@yydebug+ to +true+ in order to get output.
154
+ # -t option only creates the verbose parser.
140
155
#
141
156
# === Racc reported syntax error.
142
157
#
@@ -152,7 +167,7 @@ class ParseError < StandardError; end
152
167
#
153
168
# === Generated parsers does not work correctly
154
169
#
155
- # Try "racc -g xxxx.y".
170
+ # Try "racc -t xxxx.y".
156
171
# This command let racc generate "debugging parser".
157
172
# Then set @yydebug=true in your parser.
158
173
# It produces a working log of your parser.
0 commit comments