antlr3 1.7.2 → 1.7.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,32 @@
1
+ === 1.7.2 / 05-16-10
2
+
3
+ * Minor Enhancements
4
+ - added new #hold convenience method to ANTLR3::CommonTokenStream
5
+
6
+ * Bug Fixes
7
+ - corrected a typo in ANTLR3::Error#FailedPredicate which caused a
8
+ NoMethodError to raise instead of FailedPredicate when semantic
9
+ predicates failed
10
+
11
+ * Documentation
12
+ - added more content to the ruby antlr3 guide
13
+ - set up an official project website at
14
+ http://antlr.ohboyohboyohboy.org
15
+
16
+ === 1.7.0 / 04-20-10
17
+
18
+ * Minor Enhancements
19
+ - added new #each_on_channel and #walk convenience methods to ANTLR3::CommonTokenStream
20
+
21
+ * Bug Fixes
22
+ - discovered and fixed a rare but serious bug in the way the output code evaluates
23
+ syntactic predicates
24
+
25
+ * Documentation
26
+ - began developing a more thorough usage guide for the package
27
+ - the guide is currently available on GitHub at
28
+ http://ohboyohboyohboy.github.com/antlr3
29
+
1
30
  === 1.6.3 / 02-12-10
2
31
 
3
32
  * 4 Minor Enhancements
@@ -82,6 +82,7 @@ templates/Ruby.stg
82
82
  templates/ST.stg
83
83
  templates/Dbg.stg
84
84
  templates/ASTParser.stg
85
+ templates/Support.stg
85
86
  templates/ASTTreeParser.stg
86
87
  samples/CPP.g
87
88
  samples/ANTLRv3Grammar.g
@@ -90,5 +91,4 @@ ANTLR-LICENSE.txt
90
91
  History.txt
91
92
  java/antlr-full-3.2.1.jar
92
93
  java/RubyTarget.java
93
- Manifest.txt
94
- Rakefile
94
+ rakefile
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env ruby
1
+ #! /usr/bin/ruby
2
2
  # encoding: utf-8
3
3
 
4
4
  =begin LICENSE
Binary file
@@ -100,7 +100,13 @@ antlr3/dot.rb::
100
100
  module ANTLR3
101
101
 
102
102
  # :stopdoc:
103
- LIBRARY_PATH = ::File.expand_path(::File.dirname(__FILE__))
103
+ # BEGIN PATHS -- do not modify
104
+
105
+ LIBRARY_PATH = ::File.expand_path( ::File.dirname( __FILE__ ) ).freeze
106
+ PROJECT_PATH = ::File.dirname( LIBRARY_PATH ).freeze
107
+ DATA_PATH = ::File.join( PROJECT_PATH, 'java' ).freeze
108
+
109
+ # END PATHS
104
110
  # :startdoc:
105
111
 
106
112
  # Returns the library path for the module. If any arguments are given,
@@ -108,25 +114,25 @@ module ANTLR3
108
114
  # <tt>File.join</tt>.
109
115
  #
110
116
  def self.library_path( *args )
111
- File.expand_path(::File.join(LIBRARY_PATH, *args))
117
+ ::File.expand_path( ::File.join( LIBRARY_PATH, *args ) )
112
118
  end
113
119
 
114
120
  # Returns the lpath for the module. If any arguments are given,
115
121
  # they will be joined to the end of the path using
116
122
  # <tt>File.join</tt>.
117
123
  #
118
- def self.project_path( *args )
119
- library_path('..', *args)
124
+ def self.data_path( *args )
125
+ ::File.expand_path( ::File.join( DATA_PATH, *args ) )
120
126
  end
121
127
 
122
128
  # This is used internally in a handful of locations in the runtime library
123
129
  # where assumptions have been made that a condition will never happen
124
130
  # under normal usage conditions and thus an ANTLR3::Bug error will be
125
131
  # raised if the condition does occur.
126
- def self.bug!(message = nil)
127
- bug = Bug.new(message)
128
- bug.set_backtrace(caller)
129
- raise(bug)
132
+ def self.bug!( message = nil )
133
+ bug = Bug.new( message )
134
+ bug.set_backtrace( caller )
135
+ raise( bug )
130
136
  end
131
137
 
132
138
  @antlr_jar = nil
@@ -138,11 +144,11 @@ module ANTLR3
138
144
  def self.antlr_jar
139
145
  @antlr_jar and return( @antlr_jar )
140
146
 
141
- path = project_path "java/antlr-full-#{ ANTLR_VERSION_STRING }.jar"
147
+ path = data_path "antlr-full-#{ ANTLR_VERSION_STRING }.jar"
142
148
  if env_path = ENV[ 'RUBY_ANTLR_JAR' ]
143
149
  if File.file?( env_path ) then return File.expand_path( env_path ) end
144
150
 
145
- warn(
151
+ warn(
146
152
  "#{ __FILE__ }:#{ __LINE__ }: " <<
147
153
  "ignoring environmental variable RUBY_ANTLR_JAR (=%p) " % env_path <<
148
154
  "as it is not the path to an existing file\n" <<
@@ -162,7 +168,7 @@ module ANTLR3
162
168
  # are autoloaded on-demand
163
169
  autoload :AST, 'antlr3/tree'
164
170
 
165
- tree_classes = [
171
+ tree_classes = [
166
172
  :Tree, :TreeAdaptor, :BaseTree, :BaseTreeAdaptor,
167
173
  :CommonTree, :CommonErrorNode, :CommonTreeAdaptor,
168
174
  :TreeNodeStream, :CommonTreeNodeStream, :TreeParser,
@@ -187,7 +193,7 @@ module ANTLR3
187
193
 
188
194
  autoload :Template, 'antlr3/template'
189
195
 
190
- $LOAD_PATH.include?(library_path) or $LOAD_PATH.unshift(library_path)
196
+ $LOAD_PATH.include?( library_path ) or $LOAD_PATH.unshift( library_path )
191
197
 
192
198
  end # module ANTLR3
193
199
 
@@ -451,14 +451,16 @@ class ParserMain < Main
451
451
 
452
452
  def present( return_value )
453
453
  ASTBuilder > @parser_class and return_value = return_value.tree
454
- text =
455
- begin
456
- require 'pp'
457
- return_value.pretty_inspect
458
- rescue LoadError, NoMethodError
459
- return_value.inspect
460
- end
461
- puts( text )
454
+ if return_value
455
+ text =
456
+ begin
457
+ require 'pp'
458
+ return_value.pretty_inspect
459
+ rescue LoadError, NoMethodError
460
+ return_value.inspect
461
+ end
462
+ puts( text )
463
+ end
462
464
  end
463
465
 
464
466
  end
@@ -2,6 +2,7 @@
2
2
  # encoding: utf-8
3
3
 
4
4
  require 'antlr3'
5
+ require 'set'
5
6
  require 'rake'
6
7
  require 'rake/tasklib'
7
8
  require 'shellwords'
@@ -76,11 +77,19 @@ class CompileTask < Rake::TaskLib
76
77
  Rake::Task[ full_name ]
77
78
  end
78
79
 
80
+ def compile!
81
+ compile_task.invoke
82
+ end
83
+
79
84
  def clobber_task
80
85
  full_name = ( @namespace + [ @name, 'clobber' ] ).join( ':' )
81
86
  Rake::Task[ full_name ]
82
87
  end
83
88
 
89
+ def clobber!
90
+ clobber_task.invoke
91
+ end
92
+
84
93
  def define
85
94
  namespace( @name ) do
86
95
  desc( "trash all ANTLR-generated source code" )
@@ -100,7 +109,8 @@ class CompileTask < Rake::TaskLib
100
109
  end
101
110
 
102
111
 
103
- class CompileTask::GrammarSet
112
+ #class CompileTask::GrammarSet
113
+ class GrammarSet
104
114
  attr_accessor :antlr_jar, :debug,
105
115
  :trace, :profile, :compile_options,
106
116
  :java_options
@@ -462,7 +472,7 @@ class GrammarFile::FormatError < StandardError
462
472
  message << "could not locate a grammar name and type declaration matching\n"
463
473
  message << "/^\s*(lexer|parser|tree)?\s*grammar\s*(\S+)\s*;/"
464
474
  else
465
- message << 'bad grammar source in file %p' % @file
475
+ message << 'bad grammar source in file %p\n' % @file
466
476
  message << ( "-" * 80 ) << "\n"
467
477
  message << @source
468
478
  message[ -1 ] == ?\n or message << "\n"
@@ -2,21 +2,21 @@
2
2
  #
3
3
  # GroupFile.g
4
4
  #
5
- # Generated using ANTLR version: 3.2.1-SNAPSHOT Dec 18, 2009 04:29:28
6
- # Ruby runtime library version: 1.6.3
5
+ # Generated using ANTLR version: 3.2.1-SNAPSHOT Apr 29, 2010 11:36:19
6
+ # Ruby runtime library version: 1.7.3
7
7
  # Input grammar file: GroupFile.g
8
- # Generated at: 2010-03-19 19:43:54
8
+ # Generated at: 2010-05-16 18:30:21
9
9
  #
10
10
 
11
11
  # ~~~> start load path setup
12
12
  this_directory = File.expand_path( File.dirname( __FILE__ ) )
13
- $:.unshift( this_directory ) unless $:.include?( this_directory )
13
+ $LOAD_PATH.unshift( this_directory ) unless $LOAD_PATH.include?( this_directory )
14
14
 
15
15
  antlr_load_failed = proc do
16
16
  load_path = $LOAD_PATH.map { |dir| ' - ' << dir }.join( $/ )
17
17
  raise LoadError, <<-END.strip!
18
18
 
19
- Failed to load the ANTLR3 runtime library (version 1.6.3):
19
+ Failed to load the ANTLR3 runtime library (version 1.7.3):
20
20
 
21
21
  Ensure the library has been installed on your system and is available
22
22
  on the load path. If rubygems is available on your system, this can
@@ -46,7 +46,7 @@ rescue LoadError
46
46
 
47
47
  # 3: try to activate the antlr3 gem
48
48
  begin
49
- Gem.activate( 'antlr3', '~> 1.6.3' )
49
+ Gem.activate( 'antlr3', '~> 1.7.3' )
50
50
  rescue Gem::LoadError
51
51
  antlr_load_failed.call
52
52
  end
@@ -70,7 +70,7 @@ module GroupFile
70
70
  # TokenData defines all of the token type integer values
71
71
  # as constants, which will be included in all
72
72
  # ANTLR-generated recognizers.
73
- const_defined?(:TokenData) or TokenData = ANTLR3::TokenScheme.new
73
+ const_defined?( :TokenData ) or TokenData = ANTLR3::TokenScheme.new
74
74
 
75
75
  module TokenData
76
76
 
@@ -87,31 +87,33 @@ module GroupFile
87
87
  @grammar_home = GroupFile
88
88
  include TokenData
89
89
 
90
+
90
91
  begin
91
- generated_using( "GroupFile.g", "3.2.1-SNAPSHOT Dec 18, 2009 04:29:28", "1.6.3" )
92
+ generated_using( "GroupFile.g", "3.2.1-SNAPSHOT Apr 29, 2010 11:36:19", "1.7.3" )
92
93
  rescue NoMethodError => error
93
- error.name.to_sym == :generated_using or raise
94
+ # ignore
94
95
  end
95
96
 
96
- RULE_NAMES = ["T__10", "T__11", "T__12", "T__13", "T__14", "T__15",
97
- "T__16", "T__17", "T__18", "T__19", "CONSTANT", "ID",
98
- "TEMPLATE", "STRING", "COMMENT", "WS"].freeze
99
- RULE_METHODS = [:t__10!, :t__11!, :t__12!, :t__13!, :t__14!, :t__15!,
100
- :t__16!, :t__17!, :t__18!, :t__19!, :constant!, :id!,
101
- :template!, :string!, :comment!, :ws!].freeze
97
+ RULE_NAMES = [ "T__10", "T__11", "T__12", "T__13", "T__14", "T__15",
98
+ "T__16", "T__17", "T__18", "T__19", "CONSTANT", "ID",
99
+ "TEMPLATE", "STRING", "COMMENT", "WS" ].freeze
100
+ RULE_METHODS = [ :t__10!, :t__11!, :t__12!, :t__13!, :t__14!, :t__15!,
101
+ :t__16!, :t__17!, :t__18!, :t__19!, :constant!, :id!,
102
+ :template!, :string!, :comment!, :ws! ].freeze
102
103
 
103
104
 
104
- def initialize(input=nil, options = {})
105
- super(input, options)
105
+ def initialize( input=nil, options = {} )
106
+ super( input, options )
106
107
 
107
108
  end
108
109
 
110
+
109
111
  # - - - - - - - - - - - lexer rules - - - - - - - - - - - -
110
112
  # lexer rule t__10! (T__10)
111
113
  # (in GroupFile.g)
112
114
  def t__10!
113
115
  # -> uncomment the next line to manually enable rule tracing
114
- # trace_in(__method__, 1)
116
+ # trace_in( __method__, 1 )
115
117
 
116
118
  type = T__10
117
119
  channel = ANTLR3::DEFAULT_CHANNEL
@@ -119,7 +121,7 @@ module GroupFile
119
121
 
120
122
  # - - - - main rule block - - - -
121
123
  # at line 16:9: 'group'
122
- match("group")
124
+ match( "group" )
123
125
 
124
126
 
125
127
  @state.type = type
@@ -127,7 +129,7 @@ module GroupFile
127
129
 
128
130
  ensure
129
131
  # -> uncomment the next line to manually enable rule tracing
130
- # trace_out(__method__, 1)
132
+ # trace_out( __method__, 1 )
131
133
 
132
134
  end
133
135
 
@@ -135,7 +137,7 @@ module GroupFile
135
137
  # (in GroupFile.g)
136
138
  def t__11!
137
139
  # -> uncomment the next line to manually enable rule tracing
138
- # trace_in(__method__, 2)
140
+ # trace_in( __method__, 2 )
139
141
 
140
142
  type = T__11
141
143
  channel = ANTLR3::DEFAULT_CHANNEL
@@ -143,7 +145,7 @@ module GroupFile
143
145
 
144
146
  # - - - - main rule block - - - -
145
147
  # at line 17:9: '::'
146
- match("::")
148
+ match( "::" )
147
149
 
148
150
 
149
151
  @state.type = type
@@ -151,7 +153,7 @@ module GroupFile
151
153
 
152
154
  ensure
153
155
  # -> uncomment the next line to manually enable rule tracing
154
- # trace_out(__method__, 2)
156
+ # trace_out( __method__, 2 )
155
157
 
156
158
  end
157
159
 
@@ -159,7 +161,7 @@ module GroupFile
159
161
  # (in GroupFile.g)
160
162
  def t__12!
161
163
  # -> uncomment the next line to manually enable rule tracing
162
- # trace_in(__method__, 3)
164
+ # trace_in( __method__, 3 )
163
165
 
164
166
  type = T__12
165
167
  channel = ANTLR3::DEFAULT_CHANNEL
@@ -167,7 +169,7 @@ module GroupFile
167
169
 
168
170
  # - - - - main rule block - - - -
169
171
  # at line 18:9: ';'
170
- match(?;)
172
+ match( ?; )
171
173
 
172
174
 
173
175
  @state.type = type
@@ -175,7 +177,7 @@ module GroupFile
175
177
 
176
178
  ensure
177
179
  # -> uncomment the next line to manually enable rule tracing
178
- # trace_out(__method__, 3)
180
+ # trace_out( __method__, 3 )
179
181
 
180
182
  end
181
183
 
@@ -183,7 +185,7 @@ module GroupFile
183
185
  # (in GroupFile.g)
184
186
  def t__13!
185
187
  # -> uncomment the next line to manually enable rule tracing
186
- # trace_in(__method__, 4)
188
+ # trace_in( __method__, 4 )
187
189
 
188
190
  type = T__13
189
191
  channel = ANTLR3::DEFAULT_CHANNEL
@@ -191,7 +193,7 @@ module GroupFile
191
193
 
192
194
  # - - - - main rule block - - - -
193
195
  # at line 19:9: '::='
194
- match("::=")
196
+ match( "::=" )
195
197
 
196
198
 
197
199
  @state.type = type
@@ -199,7 +201,7 @@ module GroupFile
199
201
 
200
202
  ensure
201
203
  # -> uncomment the next line to manually enable rule tracing
202
- # trace_out(__method__, 4)
204
+ # trace_out( __method__, 4 )
203
205
 
204
206
  end
205
207
 
@@ -207,7 +209,7 @@ module GroupFile
207
209
  # (in GroupFile.g)
208
210
  def t__14!
209
211
  # -> uncomment the next line to manually enable rule tracing
210
- # trace_in(__method__, 5)
212
+ # trace_in( __method__, 5 )
211
213
 
212
214
  type = T__14
213
215
  channel = ANTLR3::DEFAULT_CHANNEL
@@ -215,7 +217,7 @@ module GroupFile
215
217
 
216
218
  # - - - - main rule block - - - -
217
219
  # at line 20:9: '('
218
- match(?()
220
+ match( ?( )
219
221
 
220
222
 
221
223
  @state.type = type
@@ -223,7 +225,7 @@ module GroupFile
223
225
 
224
226
  ensure
225
227
  # -> uncomment the next line to manually enable rule tracing
226
- # trace_out(__method__, 5)
228
+ # trace_out( __method__, 5 )
227
229
 
228
230
  end
229
231
 
@@ -231,7 +233,7 @@ module GroupFile
231
233
  # (in GroupFile.g)
232
234
  def t__15!
233
235
  # -> uncomment the next line to manually enable rule tracing
234
- # trace_in(__method__, 6)
236
+ # trace_in( __method__, 6 )
235
237
 
236
238
  type = T__15
237
239
  channel = ANTLR3::DEFAULT_CHANNEL
@@ -239,7 +241,7 @@ module GroupFile
239
241
 
240
242
  # - - - - main rule block - - - -
241
243
  # at line 21:9: ')'
242
- match(?))
244
+ match( ?) )
243
245
 
244
246
 
245
247
  @state.type = type
@@ -247,7 +249,7 @@ module GroupFile
247
249
 
248
250
  ensure
249
251
  # -> uncomment the next line to manually enable rule tracing
250
- # trace_out(__method__, 6)
252
+ # trace_out( __method__, 6 )
251
253
 
252
254
  end
253
255
 
@@ -255,7 +257,7 @@ module GroupFile
255
257
  # (in GroupFile.g)
256
258
  def t__16!
257
259
  # -> uncomment the next line to manually enable rule tracing
258
- # trace_in(__method__, 7)
260
+ # trace_in( __method__, 7 )
259
261
 
260
262
  type = T__16
261
263
  channel = ANTLR3::DEFAULT_CHANNEL
@@ -263,7 +265,7 @@ module GroupFile
263
265
 
264
266
  # - - - - main rule block - - - -
265
267
  # at line 22:9: ','
266
- match(?,)
268
+ match( ?, )
267
269
 
268
270
 
269
271
  @state.type = type
@@ -271,7 +273,7 @@ module GroupFile
271
273
 
272
274
  ensure
273
275
  # -> uncomment the next line to manually enable rule tracing
274
- # trace_out(__method__, 7)
276
+ # trace_out( __method__, 7 )
275
277
 
276
278
  end
277
279
 
@@ -279,7 +281,7 @@ module GroupFile
279
281
  # (in GroupFile.g)
280
282
  def t__17!
281
283
  # -> uncomment the next line to manually enable rule tracing
282
- # trace_in(__method__, 8)
284
+ # trace_in( __method__, 8 )
283
285
 
284
286
  type = T__17
285
287
  channel = ANTLR3::DEFAULT_CHANNEL
@@ -287,7 +289,7 @@ module GroupFile
287
289
 
288
290
  # - - - - main rule block - - - -
289
291
  # at line 23:9: '*'
290
- match(?*)
292
+ match( ?* )
291
293
 
292
294
 
293
295
  @state.type = type
@@ -295,7 +297,7 @@ module GroupFile
295
297
 
296
298
  ensure
297
299
  # -> uncomment the next line to manually enable rule tracing
298
- # trace_out(__method__, 8)
300
+ # trace_out( __method__, 8 )
299
301
 
300
302
  end
301
303
 
@@ -303,7 +305,7 @@ module GroupFile
303
305
  # (in GroupFile.g)
304
306
  def t__18!
305
307
  # -> uncomment the next line to manually enable rule tracing
306
- # trace_in(__method__, 9)
308
+ # trace_in( __method__, 9 )
307
309
 
308
310
  type = T__18
309
311
  channel = ANTLR3::DEFAULT_CHANNEL
@@ -311,7 +313,7 @@ module GroupFile
311
313
 
312
314
  # - - - - main rule block - - - -
313
315
  # at line 24:9: '&'
314
- match(?&)
316
+ match( ?& )
315
317
 
316
318
 
317
319
  @state.type = type
@@ -319,7 +321,7 @@ module GroupFile
319
321
 
320
322
  ensure
321
323
  # -> uncomment the next line to manually enable rule tracing
322
- # trace_out(__method__, 9)
324
+ # trace_out( __method__, 9 )
323
325
 
324
326
  end
325
327
 
@@ -327,7 +329,7 @@ module GroupFile
327
329
  # (in GroupFile.g)
328
330
  def t__19!
329
331
  # -> uncomment the next line to manually enable rule tracing
330
- # trace_in(__method__, 10)
332
+ # trace_in( __method__, 10 )
331
333
 
332
334
  type = T__19
333
335
  channel = ANTLR3::DEFAULT_CHANNEL
@@ -335,7 +337,7 @@ module GroupFile
335
337
 
336
338
  # - - - - main rule block - - - -
337
339
  # at line 25:9: '='
338
- match(?=)
340
+ match( ?= )
339
341
 
340
342
 
341
343
  @state.type = type
@@ -343,7 +345,7 @@ module GroupFile
343
345
 
344
346
  ensure
345
347
  # -> uncomment the next line to manually enable rule tracing
346
- # trace_out(__method__, 10)
348
+ # trace_out( __method__, 10 )
347
349
 
348
350
  end
349
351
 
@@ -351,7 +353,7 @@ module GroupFile
351
353
  # (in GroupFile.g)
352
354
  def constant!
353
355
  # -> uncomment the next line to manually enable rule tracing
354
- # trace_in(__method__, 11)
356
+ # trace_in( __method__, 11 )
355
357
 
356
358
  type = CONSTANT
357
359
  channel = ANTLR3::DEFAULT_CHANNEL
@@ -359,24 +361,24 @@ module GroupFile
359
361
 
360
362
  # - - - - main rule block - - - -
361
363
  # at line 125:5: 'A' .. 'Z' ( 'a' .. 'z' | '_' | 'A' .. 'Z' | '0' .. '9' )*
362
- match_range(?A, ?Z)
364
+ match_range( ?A, ?Z )
363
365
  # at line 125:14: ( 'a' .. 'z' | '_' | 'A' .. 'Z' | '0' .. '9' )*
364
366
  while true # decision 1
365
367
  alt_1 = 2
366
- look_1_0 = @input.peek(1)
368
+ look_1_0 = @input.peek( 1 )
367
369
 
368
- if (look_1_0.between?(?0, ?9) || look_1_0.between?(?A, ?Z) || look_1_0 == ?_ || look_1_0.between?(?a, ?z))
370
+ if ( look_1_0.between?( ?0, ?9 ) || look_1_0.between?( ?A, ?Z ) || look_1_0 == ?_ || look_1_0.between?( ?a, ?z ) )
369
371
  alt_1 = 1
370
372
 
371
373
  end
372
374
  case alt_1
373
375
  when 1
374
376
  # at line
375
- if @input.peek(1).between?(?0, ?9) || @input.peek(1).between?(?A, ?Z) || @input.peek(1) == ?_ || @input.peek(1).between?(?a, ?z)
377
+ if @input.peek( 1 ).between?( ?0, ?9 ) || @input.peek( 1 ).between?( ?A, ?Z ) || @input.peek(1) == ?_ || @input.peek( 1 ).between?( ?a, ?z )
376
378
  @input.consume
377
379
  else
378
- mse = MismatchedSet(nil)
379
- recover(mse)
380
+ mse = MismatchedSet( nil )
381
+ recover mse
380
382
  raise mse
381
383
  end
382
384
 
@@ -393,7 +395,7 @@ module GroupFile
393
395
 
394
396
  ensure
395
397
  # -> uncomment the next line to manually enable rule tracing
396
- # trace_out(__method__, 11)
398
+ # trace_out( __method__, 11 )
397
399
 
398
400
  end
399
401
 
@@ -401,7 +403,7 @@ module GroupFile
401
403
  # (in GroupFile.g)
402
404
  def id!
403
405
  # -> uncomment the next line to manually enable rule tracing
404
- # trace_in(__method__, 12)
406
+ # trace_in( __method__, 12 )
405
407
 
406
408
  type = ID
407
409
  channel = ANTLR3::DEFAULT_CHANNEL
@@ -409,11 +411,11 @@ module GroupFile
409
411
 
410
412
  # - - - - main rule block - - - -
411
413
  # at line 129:5: ( 'a' .. 'z' | '_' ) ( 'a' .. 'z' | '_' | 'A' .. 'Z' | '0' .. '9' )*
412
- if @input.peek(1) == ?_ || @input.peek(1).between?(?a, ?z)
414
+ if @input.peek(1) == ?_ || @input.peek( 1 ).between?( ?a, ?z )
413
415
  @input.consume
414
416
  else
415
- mse = MismatchedSet(nil)
416
- recover(mse)
417
+ mse = MismatchedSet( nil )
418
+ recover mse
417
419
  raise mse
418
420
  end
419
421
 
@@ -421,20 +423,20 @@ module GroupFile
421
423
  # at line 130:5: ( 'a' .. 'z' | '_' | 'A' .. 'Z' | '0' .. '9' )*
422
424
  while true # decision 2
423
425
  alt_2 = 2
424
- look_2_0 = @input.peek(1)
426
+ look_2_0 = @input.peek( 1 )
425
427
 
426
- if (look_2_0.between?(?0, ?9) || look_2_0.between?(?A, ?Z) || look_2_0 == ?_ || look_2_0.between?(?a, ?z))
428
+ if ( look_2_0.between?( ?0, ?9 ) || look_2_0.between?( ?A, ?Z ) || look_2_0 == ?_ || look_2_0.between?( ?a, ?z ) )
427
429
  alt_2 = 1
428
430
 
429
431
  end
430
432
  case alt_2
431
433
  when 1
432
434
  # at line
433
- if @input.peek(1).between?(?0, ?9) || @input.peek(1).between?(?A, ?Z) || @input.peek(1) == ?_ || @input.peek(1).between?(?a, ?z)
435
+ if @input.peek( 1 ).between?( ?0, ?9 ) || @input.peek( 1 ).between?( ?A, ?Z ) || @input.peek(1) == ?_ || @input.peek( 1 ).between?( ?a, ?z )
434
436
  @input.consume
435
437
  else
436
- mse = MismatchedSet(nil)
437
- recover(mse)
438
+ mse = MismatchedSet( nil )
439
+ recover mse
438
440
  raise mse
439
441
  end
440
442
 
@@ -451,7 +453,7 @@ module GroupFile
451
453
 
452
454
  ensure
453
455
  # -> uncomment the next line to manually enable rule tracing
454
- # trace_out(__method__, 12)
456
+ # trace_out( __method__, 12 )
455
457
 
456
458
  end
457
459
 
@@ -459,7 +461,7 @@ module GroupFile
459
461
  # (in GroupFile.g)
460
462
  def template!
461
463
  # -> uncomment the next line to manually enable rule tracing
462
- # trace_in(__method__, 13)
464
+ # trace_in( __method__, 13 )
463
465
 
464
466
  type = TEMPLATE
465
467
  channel = ANTLR3::DEFAULT_CHANNEL
@@ -467,47 +469,47 @@ module GroupFile
467
469
 
468
470
  # - - - - main rule block - - - -
469
471
  # at line 134:5: '<<<' ( options {greedy=false; } : '\\\\' . | . )* '>>>'
470
- match("<<<")
472
+ match( "<<<" )
471
473
  # at line 135:5: ( options {greedy=false; } : '\\\\' . | . )*
472
474
  while true # decision 3
473
475
  alt_3 = 3
474
- look_3_0 = @input.peek(1)
476
+ look_3_0 = @input.peek( 1 )
475
477
 
476
- if (look_3_0 == ?>)
477
- look_3_1 = @input.peek(2)
478
+ if ( look_3_0 == ?> )
479
+ look_3_1 = @input.peek( 2 )
478
480
 
479
- if (look_3_1 == ?>)
480
- look_3_4 = @input.peek(3)
481
+ if ( look_3_1 == ?> )
482
+ look_3_4 = @input.peek( 3 )
481
483
 
482
- if (look_3_4 == ?>)
484
+ if ( look_3_4 == ?> )
483
485
  alt_3 = 3
484
- elsif (look_3_4.between?(0x0000, ?=) || look_3_4.between?(??, 0xFFFF))
486
+ elsif ( look_3_4.between?( 0x0000, ?= ) || look_3_4.between?( ??, 0xFFFF ) )
485
487
  alt_3 = 2
486
488
 
487
489
  end
488
- elsif (look_3_1.between?(0x0000, ?=) || look_3_1.between?(??, 0xFFFF))
490
+ elsif ( look_3_1.between?( 0x0000, ?= ) || look_3_1.between?( ??, 0xFFFF ) )
489
491
  alt_3 = 2
490
492
 
491
493
  end
492
- elsif (look_3_0 == ?\\)
493
- look_3_2 = @input.peek(2)
494
+ elsif ( look_3_0 == ?\\ )
495
+ look_3_2 = @input.peek( 2 )
494
496
 
495
- if (look_3_2 == ?>)
497
+ if ( look_3_2 == ?> )
496
498
  alt_3 = 1
497
- elsif (look_3_2 == ?\\)
499
+ elsif ( look_3_2 == ?\\ )
498
500
  alt_3 = 1
499
- elsif (look_3_2.between?(0x0000, ?=) || look_3_2.between?(??, ?[) || look_3_2.between?(?], 0xFFFF))
501
+ elsif ( look_3_2.between?( 0x0000, ?= ) || look_3_2.between?( ??, ?[ ) || look_3_2.between?( ?], 0xFFFF ) )
500
502
  alt_3 = 1
501
503
 
502
504
  end
503
- elsif (look_3_0.between?(0x0000, ?=) || look_3_0.between?(??, ?[) || look_3_0.between?(?], 0xFFFF))
505
+ elsif ( look_3_0.between?( 0x0000, ?= ) || look_3_0.between?( ??, ?[ ) || look_3_0.between?( ?], 0xFFFF ) )
504
506
  alt_3 = 2
505
507
 
506
508
  end
507
509
  case alt_3
508
510
  when 1
509
511
  # at line 135:35: '\\\\' .
510
- match(?\\)
512
+ match( ?\\ )
511
513
  match_any
512
514
 
513
515
  when 2
@@ -518,7 +520,7 @@ module GroupFile
518
520
  break # out of loop for decision 3
519
521
  end
520
522
  end # loop for decision 3
521
- match(">>>")
523
+ match( ">>>" )
522
524
 
523
525
 
524
526
  @state.type = type
@@ -526,7 +528,7 @@ module GroupFile
526
528
 
527
529
  ensure
528
530
  # -> uncomment the next line to manually enable rule tracing
529
- # trace_out(__method__, 13)
531
+ # trace_out( __method__, 13 )
530
532
 
531
533
  end
532
534
 
@@ -534,7 +536,7 @@ module GroupFile
534
536
  # (in GroupFile.g)
535
537
  def string!
536
538
  # -> uncomment the next line to manually enable rule tracing
537
- # trace_in(__method__, 14)
539
+ # trace_in( __method__, 14 )
538
540
 
539
541
  type = STRING
540
542
  channel = ANTLR3::DEFAULT_CHANNEL
@@ -543,39 +545,38 @@ module GroupFile
543
545
  # - - - - main rule block - - - -
544
546
  # at line 140:3: ( '\"' (~ ( '\\\\' | '\"' ) | '\\\\' . )* '\"' | '\\'' (~ ( '\\\\' | '\\'' ) | '\\\\' . )* '\\'' )
545
547
  alt_6 = 2
546
- look_6_0 = @input.peek(1)
548
+ look_6_0 = @input.peek( 1 )
547
549
 
548
- if (look_6_0 == ?")
550
+ if ( look_6_0 == ?" )
549
551
  alt_6 = 1
550
- elsif (look_6_0 == ?\')
552
+ elsif ( look_6_0 == ?\' )
551
553
  alt_6 = 2
552
554
  else
553
- nvae = NoViableAlternative("", 6, 0)
554
- raise nvae
555
+ raise NoViableAlternative( "", 6, 0 )
555
556
  end
556
557
  case alt_6
557
558
  when 1
558
559
  # at line 140:5: '\"' (~ ( '\\\\' | '\"' ) | '\\\\' . )* '\"'
559
- match(?")
560
+ match( ?" )
560
561
  # at line 140:10: (~ ( '\\\\' | '\"' ) | '\\\\' . )*
561
562
  while true # decision 4
562
563
  alt_4 = 3
563
- look_4_0 = @input.peek(1)
564
+ look_4_0 = @input.peek( 1 )
564
565
 
565
- if (look_4_0.between?(0x0000, ?!) || look_4_0.between?(?#, ?[) || look_4_0.between?(?], 0xFFFF))
566
+ if ( look_4_0.between?( 0x0000, ?! ) || look_4_0.between?( ?#, ?[ ) || look_4_0.between?( ?], 0xFFFF ) )
566
567
  alt_4 = 1
567
- elsif (look_4_0 == ?\\)
568
+ elsif ( look_4_0 == ?\\ )
568
569
  alt_4 = 2
569
570
 
570
571
  end
571
572
  case alt_4
572
573
  when 1
573
574
  # at line 140:12: ~ ( '\\\\' | '\"' )
574
- if @input.peek(1).between?(0x0000, ?!) || @input.peek(1).between?(?#, ?[) || @input.peek(1).between?(?], 0x00FF)
575
+ if @input.peek( 1 ).between?( 0x0000, ?! ) || @input.peek( 1 ).between?( ?#, ?[ ) || @input.peek( 1 ).between?( ?], 0x00FF )
575
576
  @input.consume
576
577
  else
577
- mse = MismatchedSet(nil)
578
- recover(mse)
578
+ mse = MismatchedSet( nil )
579
+ recover mse
579
580
  raise mse
580
581
  end
581
582
 
@@ -583,37 +584,37 @@ module GroupFile
583
584
 
584
585
  when 2
585
586
  # at line 140:31: '\\\\' .
586
- match(?\\)
587
+ match( ?\\ )
587
588
  match_any
588
589
 
589
590
  else
590
591
  break # out of loop for decision 4
591
592
  end
592
593
  end # loop for decision 4
593
- match(?")
594
+ match( ?" )
594
595
 
595
596
  when 2
596
597
  # at line 141:5: '\\'' (~ ( '\\\\' | '\\'' ) | '\\\\' . )* '\\''
597
- match(?\')
598
+ match( ?\' )
598
599
  # at line 141:10: (~ ( '\\\\' | '\\'' ) | '\\\\' . )*
599
600
  while true # decision 5
600
601
  alt_5 = 3
601
- look_5_0 = @input.peek(1)
602
+ look_5_0 = @input.peek( 1 )
602
603
 
603
- if (look_5_0.between?(0x0000, ?&) || look_5_0.between?(?(, ?[) || look_5_0.between?(?], 0xFFFF))
604
+ if ( look_5_0.between?( 0x0000, ?& ) || look_5_0.between?( ?(, ?[ ) || look_5_0.between?( ?], 0xFFFF ) )
604
605
  alt_5 = 1
605
- elsif (look_5_0 == ?\\)
606
+ elsif ( look_5_0 == ?\\ )
606
607
  alt_5 = 2
607
608
 
608
609
  end
609
610
  case alt_5
610
611
  when 1
611
612
  # at line 141:12: ~ ( '\\\\' | '\\'' )
612
- if @input.peek(1).between?(0x0000, ?&) || @input.peek(1).between?(?(, ?[) || @input.peek(1).between?(?], 0x00FF)
613
+ if @input.peek( 1 ).between?( 0x0000, ?& ) || @input.peek( 1 ).between?( ?(, ?[ ) || @input.peek( 1 ).between?( ?], 0x00FF )
613
614
  @input.consume
614
615
  else
615
- mse = MismatchedSet(nil)
616
- recover(mse)
616
+ mse = MismatchedSet( nil )
617
+ recover mse
617
618
  raise mse
618
619
  end
619
620
 
@@ -621,14 +622,14 @@ module GroupFile
621
622
 
622
623
  when 2
623
624
  # at line 141:31: '\\\\' .
624
- match(?\\)
625
+ match( ?\\ )
625
626
  match_any
626
627
 
627
628
  else
628
629
  break # out of loop for decision 5
629
630
  end
630
631
  end # loop for decision 5
631
- match(?\')
632
+ match( ?\' )
632
633
 
633
634
  end
634
635
 
@@ -637,7 +638,7 @@ module GroupFile
637
638
 
638
639
  ensure
639
640
  # -> uncomment the next line to manually enable rule tracing
640
- # trace_out(__method__, 14)
641
+ # trace_out( __method__, 14 )
641
642
 
642
643
  end
643
644
 
@@ -645,7 +646,7 @@ module GroupFile
645
646
  # (in GroupFile.g)
646
647
  def comment!
647
648
  # -> uncomment the next line to manually enable rule tracing
648
- # trace_in(__method__, 15)
649
+ # trace_in( __method__, 15 )
649
650
 
650
651
  type = COMMENT
651
652
  channel = ANTLR3::DEFAULT_CHANNEL
@@ -654,67 +655,64 @@ module GroupFile
654
655
  # - - - - main rule block - - - -
655
656
  # at line 146:3: ( ( '#' | '//' ) (~ '\\n' )* | '/*' ( . )* '*/' )
656
657
  alt_10 = 2
657
- look_10_0 = @input.peek(1)
658
+ look_10_0 = @input.peek( 1 )
658
659
 
659
- if (look_10_0 == ?#)
660
+ if ( look_10_0 == ?# )
660
661
  alt_10 = 1
661
- elsif (look_10_0 == ?/)
662
- look_10_2 = @input.peek(2)
662
+ elsif ( look_10_0 == ?/ )
663
+ look_10_2 = @input.peek( 2 )
663
664
 
664
- if (look_10_2 == ?/)
665
+ if ( look_10_2 == ?/ )
665
666
  alt_10 = 1
666
- elsif (look_10_2 == ?*)
667
+ elsif ( look_10_2 == ?* )
667
668
  alt_10 = 2
668
669
  else
669
- nvae = NoViableAlternative("", 10, 2)
670
- raise nvae
670
+ raise NoViableAlternative( "", 10, 2 )
671
671
  end
672
672
  else
673
- nvae = NoViableAlternative("", 10, 0)
674
- raise nvae
673
+ raise NoViableAlternative( "", 10, 0 )
675
674
  end
676
675
  case alt_10
677
676
  when 1
678
677
  # at line 146:5: ( '#' | '//' ) (~ '\\n' )*
679
678
  # at line 146:5: ( '#' | '//' )
680
679
  alt_7 = 2
681
- look_7_0 = @input.peek(1)
680
+ look_7_0 = @input.peek( 1 )
682
681
 
683
- if (look_7_0 == ?#)
682
+ if ( look_7_0 == ?# )
684
683
  alt_7 = 1
685
- elsif (look_7_0 == ?/)
684
+ elsif ( look_7_0 == ?/ )
686
685
  alt_7 = 2
687
686
  else
688
- nvae = NoViableAlternative("", 7, 0)
689
- raise nvae
687
+ raise NoViableAlternative( "", 7, 0 )
690
688
  end
691
689
  case alt_7
692
690
  when 1
693
691
  # at line 146:7: '#'
694
- match(?#)
692
+ match( ?# )
695
693
 
696
694
  when 2
697
695
  # at line 146:13: '//'
698
- match("//")
696
+ match( "//" )
699
697
 
700
698
  end
701
699
  # at line 146:20: (~ '\\n' )*
702
700
  while true # decision 8
703
701
  alt_8 = 2
704
- look_8_0 = @input.peek(1)
702
+ look_8_0 = @input.peek( 1 )
705
703
 
706
- if (look_8_0.between?(0x0000, ?\t) || look_8_0.between?(0x000B, 0xFFFF))
704
+ if ( look_8_0.between?( 0x0000, ?\t ) || look_8_0.between?( 0x000B, 0xFFFF ) )
707
705
  alt_8 = 1
708
706
 
709
707
  end
710
708
  case alt_8
711
709
  when 1
712
710
  # at line 146:20: ~ '\\n'
713
- if @input.peek(1).between?(0x0000, ?\t) || @input.peek(1).between?(0x000B, 0x00FF)
711
+ if @input.peek( 1 ).between?( 0x0000, ?\t ) || @input.peek( 1 ).between?( 0x000B, 0x00FF )
714
712
  @input.consume
715
713
  else
716
- mse = MismatchedSet(nil)
717
- recover(mse)
714
+ mse = MismatchedSet( nil )
715
+ recover mse
718
716
  raise mse
719
717
  end
720
718
 
@@ -727,22 +725,22 @@ module GroupFile
727
725
 
728
726
  when 2
729
727
  # at line 147:5: '/*' ( . )* '*/'
730
- match("/*")
728
+ match( "/*" )
731
729
  # at line 147:10: ( . )*
732
730
  while true # decision 9
733
731
  alt_9 = 2
734
- look_9_0 = @input.peek(1)
732
+ look_9_0 = @input.peek( 1 )
735
733
 
736
- if (look_9_0 == ?*)
737
- look_9_1 = @input.peek(2)
734
+ if ( look_9_0 == ?* )
735
+ look_9_1 = @input.peek( 2 )
738
736
 
739
- if (look_9_1 == ?/)
737
+ if ( look_9_1 == ?/ )
740
738
  alt_9 = 2
741
- elsif (look_9_1.between?(0x0000, ?.) || look_9_1.between?(?0, 0xFFFF))
739
+ elsif ( look_9_1.between?( 0x0000, ?. ) || look_9_1.between?( ?0, 0xFFFF ) )
742
740
  alt_9 = 1
743
741
 
744
742
  end
745
- elsif (look_9_0.between?(0x0000, ?)) || look_9_0.between?(?+, 0xFFFF))
743
+ elsif ( look_9_0.between?( 0x0000, ?) ) || look_9_0.between?( ?+, 0xFFFF ) )
746
744
  alt_9 = 1
747
745
 
748
746
  end
@@ -755,7 +753,7 @@ module GroupFile
755
753
  break # out of loop for decision 9
756
754
  end
757
755
  end # loop for decision 9
758
- match("*/")
756
+ match( "*/" )
759
757
 
760
758
  end
761
759
 
@@ -766,7 +764,7 @@ module GroupFile
766
764
  # <-- action
767
765
  ensure
768
766
  # -> uncomment the next line to manually enable rule tracing
769
- # trace_out(__method__, 15)
767
+ # trace_out( __method__, 15 )
770
768
 
771
769
  end
772
770
 
@@ -774,7 +772,7 @@ module GroupFile
774
772
  # (in GroupFile.g)
775
773
  def ws!
776
774
  # -> uncomment the next line to manually enable rule tracing
777
- # trace_in(__method__, 16)
775
+ # trace_in( __method__, 16 )
778
776
 
779
777
  type = WS
780
778
  channel = ANTLR3::DEFAULT_CHANNEL
@@ -786,20 +784,20 @@ module GroupFile
786
784
  match_count_11 = 0
787
785
  while true
788
786
  alt_11 = 2
789
- look_11_0 = @input.peek(1)
787
+ look_11_0 = @input.peek( 1 )
790
788
 
791
- if (look_11_0.between?(?\t, ?\n) || look_11_0.between?(?\f, ?\r) || look_11_0 == ?\s)
789
+ if ( look_11_0.between?( ?\t, ?\n ) || look_11_0.between?( ?\f, ?\r ) || look_11_0 == ?\s )
792
790
  alt_11 = 1
793
791
 
794
792
  end
795
793
  case alt_11
796
794
  when 1
797
795
  # at line
798
- if @input.peek(1).between?(?\t, ?\n) || @input.peek(1).between?(?\f, ?\r) || @input.peek(1) == ?\s
796
+ if @input.peek( 1 ).between?( ?\t, ?\n ) || @input.peek( 1 ).between?( ?\f, ?\r ) || @input.peek(1) == ?\s
799
797
  @input.consume
800
798
  else
801
- mse = MismatchedSet(nil)
802
- recover(mse)
799
+ mse = MismatchedSet( nil )
800
+ recover mse
803
801
  raise mse
804
802
  end
805
803
 
@@ -825,7 +823,7 @@ module GroupFile
825
823
 
826
824
  ensure
827
825
  # -> uncomment the next line to manually enable rule tracing
828
- # trace_out(__method__, 16)
826
+ # trace_out( __method__, 16 )
829
827
 
830
828
  end
831
829
 
@@ -839,7 +837,7 @@ module GroupFile
839
837
  def token!
840
838
  # at line 1:8: ( T__10 | T__11 | T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | CONSTANT | ID | TEMPLATE | STRING | COMMENT | WS )
841
839
  alt_12 = 16
842
- alt_12 = @dfa12.predict(@input)
840
+ alt_12 = @dfa12.predict( @input )
843
841
  case alt_12
844
842
  when 1
845
843
  # at line 1:10: T__10
@@ -911,45 +909,45 @@ module GroupFile
911
909
 
912
910
  # - - - - - - - - - - DFA definitions - - - - - - - - - - -
913
911
  class DFA12 < ANTLR3::DFA
914
- EOT = unpack(1, -1, 1, 11, 14, -1, 1, 11, 1, 20, 1, 11, 2, -1, 1,
915
- 11, 1, 23, 1, -1)
916
- EOF = unpack(24, -1)
917
- MIN = unpack(1, 9, 1, 114, 1, 58, 13, -1, 1, 111, 1, 61, 1, 117, 2,
918
- -1, 1, 112, 1, 48, 1, -1)
919
- MAX = unpack(1, 122, 1, 114, 1, 58, 13, -1, 1, 111, 1, 61, 1, 117,
920
- 2, -1, 1, 112, 1, 122, 1, -1)
921
- ACCEPT = unpack(3, -1, 1, 3, 1, 5, 1, 6, 1, 7, 1, 8, 1, 9, 1, 10,
922
- 1, 11, 1, 12, 1, 13, 1, 14, 1, 15, 1, 16, 3, -1, 1,
923
- 4, 1, 2, 2, -1, 1, 1)
924
- SPECIAL = unpack(24, -1)
912
+ EOT = unpack( 1, -1, 1, 11, 14, -1, 1, 11, 1, 20, 1, 11, 2, -1, 1,
913
+ 11, 1, 23, 1, -1 )
914
+ EOF = unpack( 24, -1 )
915
+ MIN = unpack( 1, 9, 1, 114, 1, 58, 13, -1, 1, 111, 1, 61, 1, 117,
916
+ 2, -1, 1, 112, 1, 48, 1, -1 )
917
+ MAX = unpack( 1, 122, 1, 114, 1, 58, 13, -1, 1, 111, 1, 61, 1, 117,
918
+ 2, -1, 1, 112, 1, 122, 1, -1 )
919
+ ACCEPT = unpack( 3, -1, 1, 3, 1, 5, 1, 6, 1, 7, 1, 8, 1, 9, 1, 10,
920
+ 1, 11, 1, 12, 1, 13, 1, 14, 1, 15, 1, 16, 3, -1,
921
+ 1, 4, 1, 2, 2, -1, 1, 1 )
922
+ SPECIAL = unpack( 24, -1 )
925
923
  TRANSITION = [
926
- unpack(2, 15, 1, -1, 2, 15, 18, -1, 1, 15, 1, -1, 1, 13, 1, 14,
927
- 2, -1, 1, 8, 1, 13, 1, 4, 1, 5, 1, 7, 1, -1, 1, 6, 2, -1,
928
- 1, 14, 10, -1, 1, 2, 1, 3, 1, 12, 1, 9, 3, -1, 26, 10, 4,
929
- -1, 1, 11, 1, -1, 6, 11, 1, 1, 19, 11),
930
- unpack(1, 16),
931
- unpack(1, 17),
932
- unpack(),
933
- unpack(),
934
- unpack(),
935
- unpack(),
936
- unpack(),
937
- unpack(),
938
- unpack(),
939
- unpack(),
940
- unpack(),
941
- unpack(),
942
- unpack(),
943
- unpack(),
944
- unpack(),
945
- unpack(1, 18),
946
- unpack(1, 19),
947
- unpack(1, 21),
948
- unpack(),
949
- unpack(),
950
- unpack(1, 22),
951
- unpack(10, 11, 7, -1, 26, 11, 4, -1, 1, 11, 1, -1, 26, 11),
952
- unpack()
924
+ unpack( 2, 15, 1, -1, 2, 15, 18, -1, 1, 15, 1, -1, 1, 13, 1, 14,
925
+ 2, -1, 1, 8, 1, 13, 1, 4, 1, 5, 1, 7, 1, -1, 1, 6, 2, -1,
926
+ 1, 14, 10, -1, 1, 2, 1, 3, 1, 12, 1, 9, 3, -1, 26, 10, 4,
927
+ -1, 1, 11, 1, -1, 6, 11, 1, 1, 19, 11 ),
928
+ unpack( 1, 16 ),
929
+ unpack( 1, 17 ),
930
+ unpack( ),
931
+ unpack( ),
932
+ unpack( ),
933
+ unpack( ),
934
+ unpack( ),
935
+ unpack( ),
936
+ unpack( ),
937
+ unpack( ),
938
+ unpack( ),
939
+ unpack( ),
940
+ unpack( ),
941
+ unpack( ),
942
+ unpack( ),
943
+ unpack( 1, 18 ),
944
+ unpack( 1, 19 ),
945
+ unpack( 1, 21 ),
946
+ unpack( ),
947
+ unpack( ),
948
+ unpack( 1, 22 ),
949
+ unpack( 10, 11, 7, -1, 26, 11, 4, -1, 1, 11, 1, -1, 26, 11 ),
950
+ unpack( )
953
951
  ].freeze
954
952
 
955
953
  ( 0 ... MIN.length ).zip( MIN, MAX ) do | i, a, z |
@@ -973,12 +971,12 @@ module GroupFile
973
971
 
974
972
  def initialize_dfas
975
973
  super rescue nil
976
- @dfa12 = DFA12.new(self, 12)
974
+ @dfa12 = DFA12.new( self, 12 )
977
975
 
978
976
  end
979
977
  end # class Lexer < ANTLR3::Lexer
980
978
 
981
- at_exit { Lexer.main(ARGV) } if __FILE__ == $0
979
+ at_exit { Lexer.main( ARGV ) } if __FILE__ == $0
982
980
  end
983
981
  # - - - - - - begin action @lexer::footer - - - - - -
984
982
  # GroupFile.g