occi 2.0.6 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/.yardopts +1 -1
- data/Gemfile +3 -20
- data/Gemfile.lock +10 -59
- data/README.md +64 -2
- data/etc/model/infrastructure/compute.json +115 -0
- data/etc/model/infrastructure/ipnetwork.json +43 -0
- data/etc/model/infrastructure/ipnetworkinterface.json +43 -0
- data/etc/model/infrastructure/network.json +56 -0
- data/etc/model/infrastructure/networkinterface.json +40 -0
- data/etc/model/infrastructure/os_template.json +9 -0
- data/etc/model/infrastructure/resource_template.json +9 -0
- data/etc/model/infrastructure/storage.json +75 -0
- data/etc/model/infrastructure/storagelink.json +38 -0
- data/lib/occi/collection.rb +34 -0
- data/lib/occi/core/action.rb +0 -21
- data/lib/occi/core/attribute_properties.rb +0 -21
- data/lib/occi/core/attributes.rb +1 -20
- data/lib/occi/core/category.rb +0 -21
- data/lib/occi/core/entity.rb +7 -28
- data/lib/occi/core/kind.rb +1 -22
- data/lib/occi/core/link.rb +3 -23
- data/lib/occi/core/mixin.rb +0 -22
- data/lib/occi/core/resource.rb +3 -24
- data/lib/occi/log.rb +24 -22
- data/lib/occi/model.rb +102 -0
- data/lib/occi/{parse.rb → parser.rb} +73 -56
- data/lib/occi/version.rb +1 -1
- data/lib/occi.rb +17 -17
- data/lib/{occi/antlr → occiantlr}/.gitignore +0 -0
- data/lib/{occi/antlr/OCCI.g → occiantlr/OCCIANTLR.g} +17 -50
- data/lib/{occi/antlr/OCCI.tokens → occiantlr/OCCIANTLR.tokens} +4 -2
- data/lib/{occi/antlr/OCCILexer.rb → occiantlr/OCCIANTLRLexer.rb} +597 -555
- data/lib/occiantlr/OCCIANTLRParser.rb +2232 -0
- data/lib/{occi/antlr → occiantlr}/README.md +0 -0
- data/occi.gemspec +3 -0
- data/spec/occi/collection_spec.rb +19 -0
- data/spec/occi/log_spec.rb +16 -0
- data/spec/occi/model_spec.rb +26 -0
- data/spec/occi/parser_spec.rb +12 -0
- data/spec/occiantlr/parser_spec.rb +84 -0
- metadata +78 -14
- data/lib/occi/antlr/OCCIParser.rb +0 -2472
- data/lib/occi/core/collection.rb +0 -27
- data/lib/occi/exceptions.rb +0 -59
- data/lib/occi/registry.rb +0 -87
- data/spec/occi/antlr/parser_spec.rb +0 -82
@@ -1,19 +1,19 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
#
|
3
|
-
#
|
3
|
+
# OCCIANTLR.g
|
4
4
|
# --
|
5
5
|
# Generated using ANTLR version: 3.2.1-SNAPSHOT Jul 31, 2010 19:34:52
|
6
6
|
# Ruby runtime library version: 1.8.11
|
7
|
-
# Input grammar file:
|
8
|
-
# Generated at: 2012-
|
7
|
+
# Input grammar file: OCCIANTLR.g
|
8
|
+
# Generated at: 2012-06-09 10:31:15
|
9
9
|
#
|
10
10
|
|
11
11
|
# ~~~> start load path setup
|
12
|
-
this_directory = File.expand_path(File.dirname(__FILE__))
|
13
|
-
$LOAD_PATH.unshift(this_directory) unless $LOAD_PATH.include?(this_directory)
|
12
|
+
this_directory = File.expand_path( File.dirname( __FILE__ ) )
|
13
|
+
$LOAD_PATH.unshift( this_directory ) unless $LOAD_PATH.include?( this_directory )
|
14
14
|
|
15
15
|
antlr_load_failed = proc do
|
16
|
-
load_path = $LOAD_PATH.map { |dir| ' - ' << dir }.join($/)
|
16
|
+
load_path = $LOAD_PATH.map { |dir| ' - ' << dir }.join( $/ )
|
17
17
|
raise LoadError, <<-END.strip!
|
18
18
|
|
19
19
|
Failed to load the ANTLR3 runtime library (version 1.8.11):
|
@@ -30,92 +30,92 @@ Current load path:
|
|
30
30
|
END
|
31
31
|
end
|
32
32
|
|
33
|
-
defined?(ANTLR3) or begin
|
34
|
-
|
35
|
-
|
33
|
+
defined?( ANTLR3 ) or begin
|
34
|
+
|
35
|
+
# 1: try to load the ruby antlr3 runtime library from the system path
|
36
36
|
require 'antlr3'
|
37
|
-
|
37
|
+
|
38
38
|
rescue LoadError
|
39
|
-
|
39
|
+
|
40
40
|
# 2: try to load rubygems if it isn't already loaded
|
41
|
-
defined?(Gem) or begin
|
41
|
+
defined?( Gem ) or begin
|
42
42
|
require 'rubygems'
|
43
43
|
rescue LoadError
|
44
44
|
antlr_load_failed.call
|
45
45
|
end
|
46
|
-
|
46
|
+
|
47
47
|
# 3: try to activate the antlr3 gem
|
48
48
|
begin
|
49
|
-
Gem.activate('antlr3', '~> 1.8.11')
|
49
|
+
Gem.activate( 'antlr3', '~> 1.8.11' )
|
50
50
|
rescue Gem::LoadError
|
51
51
|
antlr_load_failed.call
|
52
52
|
end
|
53
|
-
|
53
|
+
|
54
54
|
require 'antlr3'
|
55
|
-
|
55
|
+
|
56
56
|
end
|
57
57
|
# <~~~ end load path setup
|
58
58
|
|
59
59
|
|
60
|
-
module
|
60
|
+
module OCCIANTLR
|
61
61
|
# TokenData defines all of the token type integer values
|
62
62
|
# as constants, which will be included in all
|
63
63
|
# ANTLR-generated recognizers.
|
64
|
-
const_defined?(:TokenData) or TokenData = ANTLR3::TokenScheme.new
|
64
|
+
const_defined?( :TokenData ) or TokenData = ANTLR3::TokenScheme.new
|
65
65
|
|
66
66
|
module TokenData
|
67
67
|
|
68
68
|
# define the token constants
|
69
|
-
define_tokens(:T__29 => 29, :T__28 => 28, :T__27 => 27, :T__26 => 26,
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
69
|
+
define_tokens( :T__29 => 29, :T__28 => 28, :T__27 => 27, :T__26 => 26,
|
70
|
+
:T__25 => 25, :T__24 => 24, :T__23 => 23, :T__22 => 22,
|
71
|
+
:ESC => 8, :T__21 => 21, :T__20 => 20, :EOF => -1, :T__9 => 9,
|
72
|
+
:T__19 => 19, :T__16 => 16, :T__15 => 15, :T__18 => 18,
|
73
|
+
:T__17 => 17, :T__12 => 12, :T__11 => 11, :T__14 => 14,
|
74
|
+
:T__13 => 13, :T__10 => 10, :DIGIT => 7, :LOALPHA => 5,
|
75
|
+
:T__42 => 42, :T__43 => 43, :T__40 => 40, :T__41 => 41,
|
76
|
+
:T__44 => 44, :T__30 => 30, :T__31 => 31, :T__32 => 32,
|
77
|
+
:T__33 => 33, :WS => 4, :T__34 => 34, :T__35 => 35, :T__36 => 36,
|
78
|
+
:T__37 => 37, :UPALPHA => 6, :T__38 => 38, :T__39 => 39 )
|
79
|
+
|
80
80
|
end
|
81
81
|
|
82
82
|
|
83
83
|
class Lexer < ANTLR3::Lexer
|
84
|
-
@grammar_home =
|
84
|
+
@grammar_home = OCCIANTLR
|
85
85
|
include TokenData
|
86
86
|
|
87
|
-
|
87
|
+
|
88
88
|
begin
|
89
|
-
generated_using("
|
89
|
+
generated_using( "OCCIANTLR.g", "3.2.1-SNAPSHOT Jul 31, 2010 19:34:52", "1.8.11" )
|
90
90
|
rescue NoMethodError => error
|
91
91
|
# ignore
|
92
92
|
end
|
93
|
-
|
94
|
-
RULE_NAMES
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
RULE_METHODS = [:t__9!, :t__10!, :t__11!, :t__12!, :t__13!, :t__14!,
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
def initialize(input=nil, options = {})
|
111
|
-
super(input, options)
|
93
|
+
|
94
|
+
RULE_NAMES = [ "T__9", "T__10", "T__11", "T__12", "T__13", "T__14",
|
95
|
+
"T__15", "T__16", "T__17", "T__18", "T__19", "T__20",
|
96
|
+
"T__21", "T__22", "T__23", "T__24", "T__25", "T__26",
|
97
|
+
"T__27", "T__28", "T__29", "T__30", "T__31", "T__32",
|
98
|
+
"T__33", "T__34", "T__35", "T__36", "T__37", "T__38",
|
99
|
+
"T__39", "T__40", "T__41", "T__42", "T__43", "T__44",
|
100
|
+
"LOALPHA", "UPALPHA", "DIGIT", "WS", "ESC" ].freeze
|
101
|
+
RULE_METHODS = [ :t__9!, :t__10!, :t__11!, :t__12!, :t__13!, :t__14!,
|
102
|
+
:t__15!, :t__16!, :t__17!, :t__18!, :t__19!, :t__20!,
|
103
|
+
:t__21!, :t__22!, :t__23!, :t__24!, :t__25!, :t__26!,
|
104
|
+
:t__27!, :t__28!, :t__29!, :t__30!, :t__31!, :t__32!,
|
105
|
+
:t__33!, :t__34!, :t__35!, :t__36!, :t__37!, :t__38!,
|
106
|
+
:t__39!, :t__40!, :t__41!, :t__42!, :t__43!, :t__44!,
|
107
|
+
:loalpha!, :upalpha!, :digit!, :ws!, :esc! ].freeze
|
108
|
+
|
109
|
+
|
110
|
+
def initialize( input=nil, options = {} )
|
111
|
+
super( input, options )
|
112
112
|
|
113
113
|
end
|
114
|
-
|
115
|
-
|
114
|
+
|
115
|
+
|
116
116
|
# - - - - - - - - - - - lexer rules - - - - - - - - - - - -
|
117
117
|
# lexer rule t__9! (T__9)
|
118
|
-
# (in
|
118
|
+
# (in OCCIANTLR.g)
|
119
119
|
def t__9!
|
120
120
|
# -> uncomment the next line to manually enable rule tracing
|
121
121
|
# trace_in( __method__, 1 )
|
@@ -123,12 +123,12 @@ module OCCI
|
|
123
123
|
type = T__9
|
124
124
|
channel = ANTLR3::DEFAULT_CHANNEL
|
125
125
|
|
126
|
-
|
126
|
+
|
127
127
|
# - - - - main rule block - - - -
|
128
128
|
# at line 7:8: 'Category'
|
129
|
-
match("Category")
|
130
|
-
|
129
|
+
match( "Category" )
|
131
130
|
|
131
|
+
|
132
132
|
@state.type = type
|
133
133
|
@state.channel = channel
|
134
134
|
|
@@ -139,7 +139,7 @@ module OCCI
|
|
139
139
|
end
|
140
140
|
|
141
141
|
# lexer rule t__10! (T__10)
|
142
|
-
# (in
|
142
|
+
# (in OCCIANTLR.g)
|
143
143
|
def t__10!
|
144
144
|
# -> uncomment the next line to manually enable rule tracing
|
145
145
|
# trace_in( __method__, 2 )
|
@@ -147,12 +147,12 @@ module OCCI
|
|
147
147
|
type = T__10
|
148
148
|
channel = ANTLR3::DEFAULT_CHANNEL
|
149
149
|
|
150
|
-
|
150
|
+
|
151
151
|
# - - - - main rule block - - - -
|
152
152
|
# at line 8:9: ':'
|
153
|
-
match(0x3a)
|
154
|
-
|
153
|
+
match( 0x3a )
|
155
154
|
|
155
|
+
|
156
156
|
@state.type = type
|
157
157
|
@state.channel = channel
|
158
158
|
|
@@ -163,7 +163,7 @@ module OCCI
|
|
163
163
|
end
|
164
164
|
|
165
165
|
# lexer rule t__11! (T__11)
|
166
|
-
# (in
|
166
|
+
# (in OCCIANTLR.g)
|
167
167
|
def t__11!
|
168
168
|
# -> uncomment the next line to manually enable rule tracing
|
169
169
|
# trace_in( __method__, 3 )
|
@@ -171,12 +171,12 @@ module OCCI
|
|
171
171
|
type = T__11
|
172
172
|
channel = ANTLR3::DEFAULT_CHANNEL
|
173
173
|
|
174
|
-
|
174
|
+
|
175
175
|
# - - - - main rule block - - - -
|
176
176
|
# at line 9:9: ';'
|
177
|
-
match(0x3b)
|
178
|
-
|
177
|
+
match( 0x3b )
|
179
178
|
|
179
|
+
|
180
180
|
@state.type = type
|
181
181
|
@state.channel = channel
|
182
182
|
|
@@ -187,7 +187,7 @@ module OCCI
|
|
187
187
|
end
|
188
188
|
|
189
189
|
# lexer rule t__12! (T__12)
|
190
|
-
# (in
|
190
|
+
# (in OCCIANTLR.g)
|
191
191
|
def t__12!
|
192
192
|
# -> uncomment the next line to manually enable rule tracing
|
193
193
|
# trace_in( __method__, 4 )
|
@@ -195,12 +195,12 @@ module OCCI
|
|
195
195
|
type = T__12
|
196
196
|
channel = ANTLR3::DEFAULT_CHANNEL
|
197
197
|
|
198
|
-
|
198
|
+
|
199
199
|
# - - - - main rule block - - - -
|
200
200
|
# at line 10:9: 'scheme'
|
201
|
-
match("scheme")
|
202
|
-
|
201
|
+
match( "scheme" )
|
203
202
|
|
203
|
+
|
204
204
|
@state.type = type
|
205
205
|
@state.channel = channel
|
206
206
|
|
@@ -211,7 +211,7 @@ module OCCI
|
|
211
211
|
end
|
212
212
|
|
213
213
|
# lexer rule t__13! (T__13)
|
214
|
-
# (in
|
214
|
+
# (in OCCIANTLR.g)
|
215
215
|
def t__13!
|
216
216
|
# -> uncomment the next line to manually enable rule tracing
|
217
217
|
# trace_in( __method__, 5 )
|
@@ -219,12 +219,12 @@ module OCCI
|
|
219
219
|
type = T__13
|
220
220
|
channel = ANTLR3::DEFAULT_CHANNEL
|
221
221
|
|
222
|
-
|
222
|
+
|
223
223
|
# - - - - main rule block - - - -
|
224
224
|
# at line 11:9: '='
|
225
|
-
match(0x3d)
|
226
|
-
|
225
|
+
match( 0x3d )
|
227
226
|
|
227
|
+
|
228
228
|
@state.type = type
|
229
229
|
@state.channel = channel
|
230
230
|
|
@@ -235,7 +235,7 @@ module OCCI
|
|
235
235
|
end
|
236
236
|
|
237
237
|
# lexer rule t__14! (T__14)
|
238
|
-
# (in
|
238
|
+
# (in OCCIANTLR.g)
|
239
239
|
def t__14!
|
240
240
|
# -> uncomment the next line to manually enable rule tracing
|
241
241
|
# trace_in( __method__, 6 )
|
@@ -243,12 +243,12 @@ module OCCI
|
|
243
243
|
type = T__14
|
244
244
|
channel = ANTLR3::DEFAULT_CHANNEL
|
245
245
|
|
246
|
-
|
246
|
+
|
247
247
|
# - - - - main rule block - - - -
|
248
248
|
# at line 12:9: '\"'
|
249
|
-
match(0x22)
|
250
|
-
|
249
|
+
match( 0x22 )
|
251
250
|
|
251
|
+
|
252
252
|
@state.type = type
|
253
253
|
@state.channel = channel
|
254
254
|
|
@@ -259,7 +259,7 @@ module OCCI
|
|
259
259
|
end
|
260
260
|
|
261
261
|
# lexer rule t__15! (T__15)
|
262
|
-
# (in
|
262
|
+
# (in OCCIANTLR.g)
|
263
263
|
def t__15!
|
264
264
|
# -> uncomment the next line to manually enable rule tracing
|
265
265
|
# trace_in( __method__, 7 )
|
@@ -267,12 +267,12 @@ module OCCI
|
|
267
267
|
type = T__15
|
268
268
|
channel = ANTLR3::DEFAULT_CHANNEL
|
269
269
|
|
270
|
-
|
270
|
+
|
271
271
|
# - - - - main rule block - - - -
|
272
272
|
# at line 13:9: 'class'
|
273
|
-
match("class")
|
274
|
-
|
273
|
+
match( "class" )
|
275
274
|
|
275
|
+
|
276
276
|
@state.type = type
|
277
277
|
@state.channel = channel
|
278
278
|
|
@@ -283,7 +283,7 @@ module OCCI
|
|
283
283
|
end
|
284
284
|
|
285
285
|
# lexer rule t__16! (T__16)
|
286
|
-
# (in
|
286
|
+
# (in OCCIANTLR.g)
|
287
287
|
def t__16!
|
288
288
|
# -> uncomment the next line to manually enable rule tracing
|
289
289
|
# trace_in( __method__, 8 )
|
@@ -291,12 +291,12 @@ module OCCI
|
|
291
291
|
type = T__16
|
292
292
|
channel = ANTLR3::DEFAULT_CHANNEL
|
293
293
|
|
294
|
-
|
294
|
+
|
295
295
|
# - - - - main rule block - - - -
|
296
296
|
# at line 14:9: 'title'
|
297
|
-
match("title")
|
298
|
-
|
297
|
+
match( "title" )
|
299
298
|
|
299
|
+
|
300
300
|
@state.type = type
|
301
301
|
@state.channel = channel
|
302
302
|
|
@@ -307,7 +307,7 @@ module OCCI
|
|
307
307
|
end
|
308
308
|
|
309
309
|
# lexer rule t__17! (T__17)
|
310
|
-
# (in
|
310
|
+
# (in OCCIANTLR.g)
|
311
311
|
def t__17!
|
312
312
|
# -> uncomment the next line to manually enable rule tracing
|
313
313
|
# trace_in( __method__, 9 )
|
@@ -315,12 +315,12 @@ module OCCI
|
|
315
315
|
type = T__17
|
316
316
|
channel = ANTLR3::DEFAULT_CHANNEL
|
317
317
|
|
318
|
-
|
318
|
+
|
319
319
|
# - - - - main rule block - - - -
|
320
320
|
# at line 15:9: 'rel'
|
321
|
-
match("rel")
|
322
|
-
|
321
|
+
match( "rel" )
|
323
322
|
|
323
|
+
|
324
324
|
@state.type = type
|
325
325
|
@state.channel = channel
|
326
326
|
|
@@ -331,7 +331,7 @@ module OCCI
|
|
331
331
|
end
|
332
332
|
|
333
333
|
# lexer rule t__18! (T__18)
|
334
|
-
# (in
|
334
|
+
# (in OCCIANTLR.g)
|
335
335
|
def t__18!
|
336
336
|
# -> uncomment the next line to manually enable rule tracing
|
337
337
|
# trace_in( __method__, 10 )
|
@@ -339,12 +339,12 @@ module OCCI
|
|
339
339
|
type = T__18
|
340
340
|
channel = ANTLR3::DEFAULT_CHANNEL
|
341
341
|
|
342
|
-
|
342
|
+
|
343
343
|
# - - - - main rule block - - - -
|
344
344
|
# at line 16:9: 'location'
|
345
|
-
match("location")
|
346
|
-
|
345
|
+
match( "location" )
|
347
346
|
|
347
|
+
|
348
348
|
@state.type = type
|
349
349
|
@state.channel = channel
|
350
350
|
|
@@ -355,7 +355,7 @@ module OCCI
|
|
355
355
|
end
|
356
356
|
|
357
357
|
# lexer rule t__19! (T__19)
|
358
|
-
# (in
|
358
|
+
# (in OCCIANTLR.g)
|
359
359
|
def t__19!
|
360
360
|
# -> uncomment the next line to manually enable rule tracing
|
361
361
|
# trace_in( __method__, 11 )
|
@@ -363,12 +363,12 @@ module OCCI
|
|
363
363
|
type = T__19
|
364
364
|
channel = ANTLR3::DEFAULT_CHANNEL
|
365
365
|
|
366
|
-
|
366
|
+
|
367
367
|
# - - - - main rule block - - - -
|
368
368
|
# at line 17:9: 'attributes'
|
369
|
-
match("attributes")
|
370
|
-
|
369
|
+
match( "attributes" )
|
371
370
|
|
371
|
+
|
372
372
|
@state.type = type
|
373
373
|
@state.channel = channel
|
374
374
|
|
@@ -379,7 +379,7 @@ module OCCI
|
|
379
379
|
end
|
380
380
|
|
381
381
|
# lexer rule t__20! (T__20)
|
382
|
-
# (in
|
382
|
+
# (in OCCIANTLR.g)
|
383
383
|
def t__20!
|
384
384
|
# -> uncomment the next line to manually enable rule tracing
|
385
385
|
# trace_in( __method__, 12 )
|
@@ -387,12 +387,12 @@ module OCCI
|
|
387
387
|
type = T__20
|
388
388
|
channel = ANTLR3::DEFAULT_CHANNEL
|
389
389
|
|
390
|
-
|
390
|
+
|
391
391
|
# - - - - main rule block - - - -
|
392
392
|
# at line 18:9: 'actions'
|
393
|
-
match("actions")
|
394
|
-
|
393
|
+
match( "actions" )
|
395
394
|
|
395
|
+
|
396
396
|
@state.type = type
|
397
397
|
@state.channel = channel
|
398
398
|
|
@@ -403,7 +403,7 @@ module OCCI
|
|
403
403
|
end
|
404
404
|
|
405
405
|
# lexer rule t__21! (T__21)
|
406
|
-
# (in
|
406
|
+
# (in OCCIANTLR.g)
|
407
407
|
def t__21!
|
408
408
|
# -> uncomment the next line to manually enable rule tracing
|
409
409
|
# trace_in( __method__, 13 )
|
@@ -411,12 +411,12 @@ module OCCI
|
|
411
411
|
type = T__21
|
412
412
|
channel = ANTLR3::DEFAULT_CHANNEL
|
413
413
|
|
414
|
-
|
414
|
+
|
415
415
|
# - - - - main rule block - - - -
|
416
416
|
# at line 19:9: 'Link'
|
417
|
-
match("Link")
|
418
|
-
|
417
|
+
match( "Link" )
|
419
418
|
|
419
|
+
|
420
420
|
@state.type = type
|
421
421
|
@state.channel = channel
|
422
422
|
|
@@ -427,7 +427,7 @@ module OCCI
|
|
427
427
|
end
|
428
428
|
|
429
429
|
# lexer rule t__22! (T__22)
|
430
|
-
# (in
|
430
|
+
# (in OCCIANTLR.g)
|
431
431
|
def t__22!
|
432
432
|
# -> uncomment the next line to manually enable rule tracing
|
433
433
|
# trace_in( __method__, 14 )
|
@@ -435,12 +435,12 @@ module OCCI
|
|
435
435
|
type = T__22
|
436
436
|
channel = ANTLR3::DEFAULT_CHANNEL
|
437
437
|
|
438
|
-
|
438
|
+
|
439
439
|
# - - - - main rule block - - - -
|
440
440
|
# at line 20:9: '<'
|
441
|
-
match(0x3c)
|
442
|
-
|
441
|
+
match( 0x3c )
|
443
442
|
|
443
|
+
|
444
444
|
@state.type = type
|
445
445
|
@state.channel = channel
|
446
446
|
|
@@ -451,7 +451,7 @@ module OCCI
|
|
451
451
|
end
|
452
452
|
|
453
453
|
# lexer rule t__23! (T__23)
|
454
|
-
# (in
|
454
|
+
# (in OCCIANTLR.g)
|
455
455
|
def t__23!
|
456
456
|
# -> uncomment the next line to manually enable rule tracing
|
457
457
|
# trace_in( __method__, 15 )
|
@@ -459,12 +459,12 @@ module OCCI
|
|
459
459
|
type = T__23
|
460
460
|
channel = ANTLR3::DEFAULT_CHANNEL
|
461
461
|
|
462
|
-
|
462
|
+
|
463
463
|
# - - - - main rule block - - - -
|
464
464
|
# at line 21:9: '>'
|
465
|
-
match(0x3e)
|
466
|
-
|
465
|
+
match( 0x3e )
|
467
466
|
|
467
|
+
|
468
468
|
@state.type = type
|
469
469
|
@state.channel = channel
|
470
470
|
|
@@ -475,7 +475,7 @@ module OCCI
|
|
475
475
|
end
|
476
476
|
|
477
477
|
# lexer rule t__24! (T__24)
|
478
|
-
# (in
|
478
|
+
# (in OCCIANTLR.g)
|
479
479
|
def t__24!
|
480
480
|
# -> uncomment the next line to manually enable rule tracing
|
481
481
|
# trace_in( __method__, 16 )
|
@@ -483,12 +483,12 @@ module OCCI
|
|
483
483
|
type = T__24
|
484
484
|
channel = ANTLR3::DEFAULT_CHANNEL
|
485
485
|
|
486
|
-
|
486
|
+
|
487
487
|
# - - - - main rule block - - - -
|
488
488
|
# at line 22:9: 'self'
|
489
|
-
match("self")
|
490
|
-
|
489
|
+
match( "self" )
|
491
490
|
|
491
|
+
|
492
492
|
@state.type = type
|
493
493
|
@state.channel = channel
|
494
494
|
|
@@ -499,7 +499,7 @@ module OCCI
|
|
499
499
|
end
|
500
500
|
|
501
501
|
# lexer rule t__25! (T__25)
|
502
|
-
# (in
|
502
|
+
# (in OCCIANTLR.g)
|
503
503
|
def t__25!
|
504
504
|
# -> uncomment the next line to manually enable rule tracing
|
505
505
|
# trace_in( __method__, 17 )
|
@@ -507,12 +507,12 @@ module OCCI
|
|
507
507
|
type = T__25
|
508
508
|
channel = ANTLR3::DEFAULT_CHANNEL
|
509
509
|
|
510
|
-
|
510
|
+
|
511
511
|
# - - - - main rule block - - - -
|
512
512
|
# at line 23:9: 'category'
|
513
|
-
match("category")
|
514
|
-
|
513
|
+
match( "category" )
|
515
514
|
|
515
|
+
|
516
516
|
@state.type = type
|
517
517
|
@state.channel = channel
|
518
518
|
|
@@ -523,7 +523,7 @@ module OCCI
|
|
523
523
|
end
|
524
524
|
|
525
525
|
# lexer rule t__26! (T__26)
|
526
|
-
# (in
|
526
|
+
# (in OCCIANTLR.g)
|
527
527
|
def t__26!
|
528
528
|
# -> uncomment the next line to manually enable rule tracing
|
529
529
|
# trace_in( __method__, 18 )
|
@@ -531,12 +531,12 @@ module OCCI
|
|
531
531
|
type = T__26
|
532
532
|
channel = ANTLR3::DEFAULT_CHANNEL
|
533
533
|
|
534
|
-
|
534
|
+
|
535
535
|
# - - - - main rule block - - - -
|
536
536
|
# at line 24:9: 'X-OCCI-Attribute'
|
537
|
-
match("X-OCCI-Attribute")
|
538
|
-
|
537
|
+
match( "X-OCCI-Attribute" )
|
539
538
|
|
539
|
+
|
540
540
|
@state.type = type
|
541
541
|
@state.channel = channel
|
542
542
|
|
@@ -547,7 +547,7 @@ module OCCI
|
|
547
547
|
end
|
548
548
|
|
549
549
|
# lexer rule t__27! (T__27)
|
550
|
-
# (in
|
550
|
+
# (in OCCIANTLR.g)
|
551
551
|
def t__27!
|
552
552
|
# -> uncomment the next line to manually enable rule tracing
|
553
553
|
# trace_in( __method__, 19 )
|
@@ -555,12 +555,12 @@ module OCCI
|
|
555
555
|
type = T__27
|
556
556
|
channel = ANTLR3::DEFAULT_CHANNEL
|
557
557
|
|
558
|
-
|
558
|
+
|
559
559
|
# - - - - main rule block - - - -
|
560
560
|
# at line 25:9: 'X-OCCI-Location'
|
561
|
-
match("X-OCCI-Location")
|
562
|
-
|
561
|
+
match( "X-OCCI-Location" )
|
563
562
|
|
563
|
+
|
564
564
|
@state.type = type
|
565
565
|
@state.channel = channel
|
566
566
|
|
@@ -571,7 +571,7 @@ module OCCI
|
|
571
571
|
end
|
572
572
|
|
573
573
|
# lexer rule t__28! (T__28)
|
574
|
-
# (in
|
574
|
+
# (in OCCIANTLR.g)
|
575
575
|
def t__28!
|
576
576
|
# -> uncomment the next line to manually enable rule tracing
|
577
577
|
# trace_in( __method__, 20 )
|
@@ -579,12 +579,12 @@ module OCCI
|
|
579
579
|
type = T__28
|
580
580
|
channel = ANTLR3::DEFAULT_CHANNEL
|
581
581
|
|
582
|
-
|
582
|
+
|
583
583
|
# - - - - main rule block - - - -
|
584
584
|
# at line 26:9: '@'
|
585
|
-
match(0x40)
|
586
|
-
|
585
|
+
match( 0x40 )
|
587
586
|
|
587
|
+
|
588
588
|
@state.type = type
|
589
589
|
@state.channel = channel
|
590
590
|
|
@@ -595,7 +595,7 @@ module OCCI
|
|
595
595
|
end
|
596
596
|
|
597
597
|
# lexer rule t__29! (T__29)
|
598
|
-
# (in
|
598
|
+
# (in OCCIANTLR.g)
|
599
599
|
def t__29!
|
600
600
|
# -> uncomment the next line to manually enable rule tracing
|
601
601
|
# trace_in( __method__, 21 )
|
@@ -603,12 +603,12 @@ module OCCI
|
|
603
603
|
type = T__29
|
604
604
|
channel = ANTLR3::DEFAULT_CHANNEL
|
605
605
|
|
606
|
-
|
606
|
+
|
607
607
|
# - - - - main rule block - - - -
|
608
608
|
# at line 27:9: '%'
|
609
|
-
match(0x25)
|
610
|
-
|
609
|
+
match( 0x25 )
|
611
610
|
|
611
|
+
|
612
612
|
@state.type = type
|
613
613
|
@state.channel = channel
|
614
614
|
|
@@ -619,7 +619,7 @@ module OCCI
|
|
619
619
|
end
|
620
620
|
|
621
621
|
# lexer rule t__30! (T__30)
|
622
|
-
# (in
|
622
|
+
# (in OCCIANTLR.g)
|
623
623
|
def t__30!
|
624
624
|
# -> uncomment the next line to manually enable rule tracing
|
625
625
|
# trace_in( __method__, 22 )
|
@@ -627,12 +627,12 @@ module OCCI
|
|
627
627
|
type = T__30
|
628
628
|
channel = ANTLR3::DEFAULT_CHANNEL
|
629
629
|
|
630
|
-
|
630
|
+
|
631
631
|
# - - - - main rule block - - - -
|
632
632
|
# at line 28:9: '_'
|
633
|
-
match(0x5f)
|
634
|
-
|
633
|
+
match( 0x5f )
|
635
634
|
|
635
|
+
|
636
636
|
@state.type = type
|
637
637
|
@state.channel = channel
|
638
638
|
|
@@ -643,7 +643,7 @@ module OCCI
|
|
643
643
|
end
|
644
644
|
|
645
645
|
# lexer rule t__31! (T__31)
|
646
|
-
# (in
|
646
|
+
# (in OCCIANTLR.g)
|
647
647
|
def t__31!
|
648
648
|
# -> uncomment the next line to manually enable rule tracing
|
649
649
|
# trace_in( __method__, 23 )
|
@@ -651,12 +651,12 @@ module OCCI
|
|
651
651
|
type = T__31
|
652
652
|
channel = ANTLR3::DEFAULT_CHANNEL
|
653
653
|
|
654
|
-
|
654
|
+
|
655
655
|
# - - - - main rule block - - - -
|
656
656
|
# at line 29:9: '\\\\'
|
657
|
-
match(0x5c)
|
658
|
-
|
657
|
+
match( 0x5c )
|
659
658
|
|
659
|
+
|
660
660
|
@state.type = type
|
661
661
|
@state.channel = channel
|
662
662
|
|
@@ -667,7 +667,7 @@ module OCCI
|
|
667
667
|
end
|
668
668
|
|
669
669
|
# lexer rule t__32! (T__32)
|
670
|
-
# (in
|
670
|
+
# (in OCCIANTLR.g)
|
671
671
|
def t__32!
|
672
672
|
# -> uncomment the next line to manually enable rule tracing
|
673
673
|
# trace_in( __method__, 24 )
|
@@ -675,12 +675,12 @@ module OCCI
|
|
675
675
|
type = T__32
|
676
676
|
channel = ANTLR3::DEFAULT_CHANNEL
|
677
677
|
|
678
|
-
|
678
|
+
|
679
679
|
# - - - - main rule block - - - -
|
680
680
|
# at line 30:9: '+'
|
681
|
-
match(0x2b)
|
682
|
-
|
681
|
+
match( 0x2b )
|
683
682
|
|
683
|
+
|
684
684
|
@state.type = type
|
685
685
|
@state.channel = channel
|
686
686
|
|
@@ -691,7 +691,7 @@ module OCCI
|
|
691
691
|
end
|
692
692
|
|
693
693
|
# lexer rule t__33! (T__33)
|
694
|
-
# (in
|
694
|
+
# (in OCCIANTLR.g)
|
695
695
|
def t__33!
|
696
696
|
# -> uncomment the next line to manually enable rule tracing
|
697
697
|
# trace_in( __method__, 25 )
|
@@ -699,12 +699,12 @@ module OCCI
|
|
699
699
|
type = T__33
|
700
700
|
channel = ANTLR3::DEFAULT_CHANNEL
|
701
701
|
|
702
|
-
|
702
|
+
|
703
703
|
# - - - - main rule block - - - -
|
704
704
|
# at line 31:9: '.'
|
705
|
-
match(0x2e)
|
706
|
-
|
705
|
+
match( 0x2e )
|
707
706
|
|
707
|
+
|
708
708
|
@state.type = type
|
709
709
|
@state.channel = channel
|
710
710
|
|
@@ -715,7 +715,7 @@ module OCCI
|
|
715
715
|
end
|
716
716
|
|
717
717
|
# lexer rule t__34! (T__34)
|
718
|
-
# (in
|
718
|
+
# (in OCCIANTLR.g)
|
719
719
|
def t__34!
|
720
720
|
# -> uncomment the next line to manually enable rule tracing
|
721
721
|
# trace_in( __method__, 26 )
|
@@ -723,12 +723,12 @@ module OCCI
|
|
723
723
|
type = T__34
|
724
724
|
channel = ANTLR3::DEFAULT_CHANNEL
|
725
725
|
|
726
|
-
|
726
|
+
|
727
727
|
# - - - - main rule block - - - -
|
728
728
|
# at line 32:9: '~'
|
729
|
-
match(0x7e)
|
730
|
-
|
729
|
+
match( 0x7e )
|
731
730
|
|
731
|
+
|
732
732
|
@state.type = type
|
733
733
|
@state.channel = channel
|
734
734
|
|
@@ -739,7 +739,7 @@ module OCCI
|
|
739
739
|
end
|
740
740
|
|
741
741
|
# lexer rule t__35! (T__35)
|
742
|
-
# (in
|
742
|
+
# (in OCCIANTLR.g)
|
743
743
|
def t__35!
|
744
744
|
# -> uncomment the next line to manually enable rule tracing
|
745
745
|
# trace_in( __method__, 27 )
|
@@ -747,12 +747,12 @@ module OCCI
|
|
747
747
|
type = T__35
|
748
748
|
channel = ANTLR3::DEFAULT_CHANNEL
|
749
749
|
|
750
|
-
|
750
|
+
|
751
751
|
# - - - - main rule block - - - -
|
752
752
|
# at line 33:9: '#'
|
753
|
-
match(0x23)
|
754
|
-
|
753
|
+
match( 0x23 )
|
755
754
|
|
755
|
+
|
756
756
|
@state.type = type
|
757
757
|
@state.channel = channel
|
758
758
|
|
@@ -763,7 +763,7 @@ module OCCI
|
|
763
763
|
end
|
764
764
|
|
765
765
|
# lexer rule t__36! (T__36)
|
766
|
-
# (in
|
766
|
+
# (in OCCIANTLR.g)
|
767
767
|
def t__36!
|
768
768
|
# -> uncomment the next line to manually enable rule tracing
|
769
769
|
# trace_in( __method__, 28 )
|
@@ -771,12 +771,12 @@ module OCCI
|
|
771
771
|
type = T__36
|
772
772
|
channel = ANTLR3::DEFAULT_CHANNEL
|
773
773
|
|
774
|
-
|
774
|
+
|
775
775
|
# - - - - main rule block - - - -
|
776
776
|
# at line 34:9: '?'
|
777
|
-
match(0x3f)
|
778
|
-
|
777
|
+
match( 0x3f )
|
779
778
|
|
779
|
+
|
780
780
|
@state.type = type
|
781
781
|
@state.channel = channel
|
782
782
|
|
@@ -787,7 +787,7 @@ module OCCI
|
|
787
787
|
end
|
788
788
|
|
789
789
|
# lexer rule t__37! (T__37)
|
790
|
-
# (in
|
790
|
+
# (in OCCIANTLR.g)
|
791
791
|
def t__37!
|
792
792
|
# -> uncomment the next line to manually enable rule tracing
|
793
793
|
# trace_in( __method__, 29 )
|
@@ -795,12 +795,12 @@ module OCCI
|
|
795
795
|
type = T__37
|
796
796
|
channel = ANTLR3::DEFAULT_CHANNEL
|
797
797
|
|
798
|
-
|
798
|
+
|
799
799
|
# - - - - main rule block - - - -
|
800
800
|
# at line 35:9: '&'
|
801
|
-
match(0x26)
|
802
|
-
|
801
|
+
match( 0x26 )
|
803
802
|
|
803
|
+
|
804
804
|
@state.type = type
|
805
805
|
@state.channel = channel
|
806
806
|
|
@@ -811,7 +811,7 @@ module OCCI
|
|
811
811
|
end
|
812
812
|
|
813
813
|
# lexer rule t__38! (T__38)
|
814
|
-
# (in
|
814
|
+
# (in OCCIANTLR.g)
|
815
815
|
def t__38!
|
816
816
|
# -> uncomment the next line to manually enable rule tracing
|
817
817
|
# trace_in( __method__, 30 )
|
@@ -819,12 +819,12 @@ module OCCI
|
|
819
819
|
type = T__38
|
820
820
|
channel = ANTLR3::DEFAULT_CHANNEL
|
821
821
|
|
822
|
-
|
822
|
+
|
823
823
|
# - - - - main rule block - - - -
|
824
824
|
# at line 36:9: '/'
|
825
|
-
match(0x2f)
|
826
|
-
|
825
|
+
match( 0x2f )
|
827
826
|
|
827
|
+
|
828
828
|
@state.type = type
|
829
829
|
@state.channel = channel
|
830
830
|
|
@@ -835,7 +835,7 @@ module OCCI
|
|
835
835
|
end
|
836
836
|
|
837
837
|
# lexer rule t__39! (T__39)
|
838
|
-
# (in
|
838
|
+
# (in OCCIANTLR.g)
|
839
839
|
def t__39!
|
840
840
|
# -> uncomment the next line to manually enable rule tracing
|
841
841
|
# trace_in( __method__, 31 )
|
@@ -843,12 +843,12 @@ module OCCI
|
|
843
843
|
type = T__39
|
844
844
|
channel = ANTLR3::DEFAULT_CHANNEL
|
845
845
|
|
846
|
-
|
846
|
+
|
847
847
|
# - - - - main rule block - - - -
|
848
848
|
# at line 37:9: '-'
|
849
|
-
match(0x2d)
|
850
|
-
|
849
|
+
match( 0x2d )
|
851
850
|
|
851
|
+
|
852
852
|
@state.type = type
|
853
853
|
@state.channel = channel
|
854
854
|
|
@@ -859,7 +859,7 @@ module OCCI
|
|
859
859
|
end
|
860
860
|
|
861
861
|
# lexer rule t__40! (T__40)
|
862
|
-
# (in
|
862
|
+
# (in OCCIANTLR.g)
|
863
863
|
def t__40!
|
864
864
|
# -> uncomment the next line to manually enable rule tracing
|
865
865
|
# trace_in( __method__, 32 )
|
@@ -867,12 +867,12 @@ module OCCI
|
|
867
867
|
type = T__40
|
868
868
|
channel = ANTLR3::DEFAULT_CHANNEL
|
869
869
|
|
870
|
-
|
870
|
+
|
871
871
|
# - - - - main rule block - - - -
|
872
872
|
# at line 38:9: 'action'
|
873
|
-
match("action")
|
874
|
-
|
873
|
+
match( "action" )
|
875
874
|
|
875
|
+
|
876
876
|
@state.type = type
|
877
877
|
@state.channel = channel
|
878
878
|
|
@@ -883,7 +883,7 @@ module OCCI
|
|
883
883
|
end
|
884
884
|
|
885
885
|
# lexer rule t__41! (T__41)
|
886
|
-
# (in
|
886
|
+
# (in OCCIANTLR.g)
|
887
887
|
def t__41!
|
888
888
|
# -> uncomment the next line to manually enable rule tracing
|
889
889
|
# trace_in( __method__, 33 )
|
@@ -891,12 +891,12 @@ module OCCI
|
|
891
891
|
type = T__41
|
892
892
|
channel = ANTLR3::DEFAULT_CHANNEL
|
893
893
|
|
894
|
-
|
894
|
+
|
895
895
|
# - - - - main rule block - - - -
|
896
896
|
# at line 39:9: 'kind'
|
897
|
-
match("kind")
|
898
|
-
|
897
|
+
match( "kind" )
|
899
898
|
|
899
|
+
|
900
900
|
@state.type = type
|
901
901
|
@state.channel = channel
|
902
902
|
|
@@ -907,7 +907,7 @@ module OCCI
|
|
907
907
|
end
|
908
908
|
|
909
909
|
# lexer rule t__42! (T__42)
|
910
|
-
# (in
|
910
|
+
# (in OCCIANTLR.g)
|
911
911
|
def t__42!
|
912
912
|
# -> uncomment the next line to manually enable rule tracing
|
913
913
|
# trace_in( __method__, 34 )
|
@@ -915,12 +915,12 @@ module OCCI
|
|
915
915
|
type = T__42
|
916
916
|
channel = ANTLR3::DEFAULT_CHANNEL
|
917
917
|
|
918
|
-
|
918
|
+
|
919
919
|
# - - - - main rule block - - - -
|
920
920
|
# at line 40:9: 'mixin'
|
921
|
-
match("mixin")
|
922
|
-
|
921
|
+
match( "mixin" )
|
923
922
|
|
923
|
+
|
924
924
|
@state.type = type
|
925
925
|
@state.channel = channel
|
926
926
|
|
@@ -931,7 +931,7 @@ module OCCI
|
|
931
931
|
end
|
932
932
|
|
933
933
|
# lexer rule t__43! (T__43)
|
934
|
-
# (in
|
934
|
+
# (in OCCIANTLR.g)
|
935
935
|
def t__43!
|
936
936
|
# -> uncomment the next line to manually enable rule tracing
|
937
937
|
# trace_in( __method__, 35 )
|
@@ -939,12 +939,12 @@ module OCCI
|
|
939
939
|
type = T__43
|
940
940
|
channel = ANTLR3::DEFAULT_CHANNEL
|
941
941
|
|
942
|
-
|
942
|
+
|
943
943
|
# - - - - main rule block - - - -
|
944
|
-
# at line 41:9: '
|
945
|
-
match(
|
946
|
-
|
944
|
+
# at line 41:9: 'term'
|
945
|
+
match( "term" )
|
947
946
|
|
947
|
+
|
948
948
|
@state.type = type
|
949
949
|
@state.channel = channel
|
950
950
|
|
@@ -954,208 +954,239 @@ module OCCI
|
|
954
954
|
|
955
955
|
end
|
956
956
|
|
957
|
+
# lexer rule t__44! (T__44)
|
958
|
+
# (in OCCIANTLR.g)
|
959
|
+
def t__44!
|
960
|
+
# -> uncomment the next line to manually enable rule tracing
|
961
|
+
# trace_in( __method__, 36 )
|
962
|
+
|
963
|
+
type = T__44
|
964
|
+
channel = ANTLR3::DEFAULT_CHANNEL
|
965
|
+
|
966
|
+
|
967
|
+
# - - - - main rule block - - - -
|
968
|
+
# at line 42:9: '\\''
|
969
|
+
match( 0x27 )
|
970
|
+
|
971
|
+
|
972
|
+
@state.type = type
|
973
|
+
@state.channel = channel
|
974
|
+
|
975
|
+
ensure
|
976
|
+
# -> uncomment the next line to manually enable rule tracing
|
977
|
+
# trace_out( __method__, 36 )
|
978
|
+
|
979
|
+
end
|
980
|
+
|
957
981
|
# lexer rule loalpha! (LOALPHA)
|
958
|
-
# (in
|
982
|
+
# (in OCCIANTLR.g)
|
959
983
|
def loalpha!
|
960
984
|
# -> uncomment the next line to manually enable rule tracing
|
961
|
-
# trace_in( __method__,
|
985
|
+
# trace_in( __method__, 37 )
|
962
986
|
|
963
987
|
type = LOALPHA
|
964
988
|
channel = ANTLR3::DEFAULT_CHANNEL
|
965
989
|
|
966
|
-
|
990
|
+
|
967
991
|
# - - - - main rule block - - - -
|
968
|
-
# at line
|
969
|
-
# at file
|
992
|
+
# at line 127:11: ( 'a' .. 'z' )+
|
993
|
+
# at file 127:11: ( 'a' .. 'z' )+
|
970
994
|
match_count_1 = 0
|
971
995
|
while true
|
972
996
|
alt_1 = 2
|
973
|
-
look_1_0 = @input.peek(1)
|
997
|
+
look_1_0 = @input.peek( 1 )
|
974
998
|
|
975
|
-
if (look_1_0.between?(0x61, 0x7a))
|
999
|
+
if ( look_1_0.between?( 0x61, 0x7a ) )
|
976
1000
|
alt_1 = 1
|
977
1001
|
|
978
1002
|
end
|
979
1003
|
case alt_1
|
980
|
-
|
981
|
-
|
982
|
-
|
1004
|
+
when 1
|
1005
|
+
# at line 127:12: 'a' .. 'z'
|
1006
|
+
match_range( 0x61, 0x7a )
|
983
1007
|
|
984
|
-
|
985
|
-
|
986
|
-
|
1008
|
+
else
|
1009
|
+
match_count_1 > 0 and break
|
1010
|
+
eee = EarlyExit(1)
|
987
1011
|
|
988
1012
|
|
989
|
-
|
1013
|
+
raise eee
|
990
1014
|
end
|
991
1015
|
match_count_1 += 1
|
992
1016
|
end
|
993
1017
|
|
994
1018
|
|
1019
|
+
|
995
1020
|
@state.type = type
|
996
1021
|
@state.channel = channel
|
997
1022
|
|
998
1023
|
ensure
|
999
1024
|
# -> uncomment the next line to manually enable rule tracing
|
1000
|
-
# trace_out( __method__,
|
1025
|
+
# trace_out( __method__, 37 )
|
1001
1026
|
|
1002
1027
|
end
|
1003
1028
|
|
1004
1029
|
# lexer rule upalpha! (UPALPHA)
|
1005
|
-
# (in
|
1030
|
+
# (in OCCIANTLR.g)
|
1006
1031
|
def upalpha!
|
1007
1032
|
# -> uncomment the next line to manually enable rule tracing
|
1008
|
-
# trace_in( __method__,
|
1033
|
+
# trace_in( __method__, 38 )
|
1009
1034
|
|
1010
1035
|
type = UPALPHA
|
1011
1036
|
channel = ANTLR3::DEFAULT_CHANNEL
|
1012
1037
|
|
1013
|
-
|
1038
|
+
|
1014
1039
|
# - - - - main rule block - - - -
|
1015
|
-
# at line
|
1016
|
-
# at file
|
1040
|
+
# at line 128:11: ( 'A' .. 'Z' )+
|
1041
|
+
# at file 128:11: ( 'A' .. 'Z' )+
|
1017
1042
|
match_count_2 = 0
|
1018
1043
|
while true
|
1019
1044
|
alt_2 = 2
|
1020
|
-
look_2_0 = @input.peek(1)
|
1045
|
+
look_2_0 = @input.peek( 1 )
|
1021
1046
|
|
1022
|
-
if (look_2_0.between?(0x41, 0x5a))
|
1047
|
+
if ( look_2_0.between?( 0x41, 0x5a ) )
|
1023
1048
|
alt_2 = 1
|
1024
1049
|
|
1025
1050
|
end
|
1026
1051
|
case alt_2
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1052
|
+
when 1
|
1053
|
+
# at line 128:12: 'A' .. 'Z'
|
1054
|
+
match_range( 0x41, 0x5a )
|
1030
1055
|
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1056
|
+
else
|
1057
|
+
match_count_2 > 0 and break
|
1058
|
+
eee = EarlyExit(2)
|
1034
1059
|
|
1035
1060
|
|
1036
|
-
|
1061
|
+
raise eee
|
1037
1062
|
end
|
1038
1063
|
match_count_2 += 1
|
1039
1064
|
end
|
1040
1065
|
|
1041
1066
|
|
1067
|
+
|
1042
1068
|
@state.type = type
|
1043
1069
|
@state.channel = channel
|
1044
1070
|
|
1045
1071
|
ensure
|
1046
1072
|
# -> uncomment the next line to manually enable rule tracing
|
1047
|
-
# trace_out( __method__,
|
1073
|
+
# trace_out( __method__, 38 )
|
1048
1074
|
|
1049
1075
|
end
|
1050
1076
|
|
1051
1077
|
# lexer rule digit! (DIGIT)
|
1052
|
-
# (in
|
1078
|
+
# (in OCCIANTLR.g)
|
1053
1079
|
def digit!
|
1054
1080
|
# -> uncomment the next line to manually enable rule tracing
|
1055
|
-
# trace_in( __method__,
|
1081
|
+
# trace_in( __method__, 39 )
|
1056
1082
|
|
1057
1083
|
type = DIGIT
|
1058
1084
|
channel = ANTLR3::DEFAULT_CHANNEL
|
1059
1085
|
|
1060
|
-
|
1086
|
+
|
1061
1087
|
# - - - - main rule block - - - -
|
1062
|
-
# at line
|
1063
|
-
# at line
|
1064
|
-
# at line
|
1065
|
-
match_range(0x30, 0x39)
|
1088
|
+
# at line 129:11: ( '0' .. '9' )
|
1089
|
+
# at line 129:11: ( '0' .. '9' )
|
1090
|
+
# at line 129:12: '0' .. '9'
|
1091
|
+
match_range( 0x30, 0x39 )
|
1066
1092
|
|
1067
1093
|
|
1094
|
+
|
1068
1095
|
@state.type = type
|
1069
1096
|
@state.channel = channel
|
1070
1097
|
|
1071
1098
|
ensure
|
1072
1099
|
# -> uncomment the next line to manually enable rule tracing
|
1073
|
-
# trace_out( __method__,
|
1100
|
+
# trace_out( __method__, 39 )
|
1074
1101
|
|
1075
1102
|
end
|
1076
1103
|
|
1077
1104
|
# lexer rule ws! (WS)
|
1078
|
-
# (in
|
1105
|
+
# (in OCCIANTLR.g)
|
1079
1106
|
def ws!
|
1080
1107
|
# -> uncomment the next line to manually enable rule tracing
|
1081
|
-
# trace_in( __method__,
|
1108
|
+
# trace_in( __method__, 40 )
|
1082
1109
|
|
1083
1110
|
type = WS
|
1084
1111
|
channel = ANTLR3::DEFAULT_CHANNEL
|
1085
1112
|
|
1086
|
-
|
1113
|
+
|
1087
1114
|
# - - - - main rule block - - - -
|
1088
|
-
# at line
|
1089
|
-
# at file
|
1115
|
+
# at line 130:11: ( '\\t' | ' ' | '\\r' | '\\n' | '\\u000C' )+
|
1116
|
+
# at file 130:11: ( '\\t' | ' ' | '\\r' | '\\n' | '\\u000C' )+
|
1090
1117
|
match_count_3 = 0
|
1091
1118
|
while true
|
1092
1119
|
alt_3 = 2
|
1093
|
-
look_3_0 = @input.peek(1)
|
1120
|
+
look_3_0 = @input.peek( 1 )
|
1094
1121
|
|
1095
|
-
if (look_3_0.between?(0x9, 0xa) || look_3_0.between?(0xc, 0xd) || look_3_0 == 0x20)
|
1122
|
+
if ( look_3_0.between?( 0x9, 0xa ) || look_3_0.between?( 0xc, 0xd ) || look_3_0 == 0x20 )
|
1096
1123
|
alt_3 = 1
|
1097
1124
|
|
1098
1125
|
end
|
1099
1126
|
case alt_3
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1127
|
+
when 1
|
1128
|
+
# at line
|
1129
|
+
if @input.peek( 1 ).between?( 0x9, 0xa ) || @input.peek( 1 ).between?( 0xc, 0xd ) || @input.peek(1) == 0x20
|
1130
|
+
@input.consume
|
1131
|
+
else
|
1132
|
+
mse = MismatchedSet( nil )
|
1133
|
+
recover mse
|
1134
|
+
raise mse
|
1135
|
+
end
|
1109
1136
|
|
1110
1137
|
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1138
|
+
|
1139
|
+
else
|
1140
|
+
match_count_3 > 0 and break
|
1141
|
+
eee = EarlyExit(3)
|
1114
1142
|
|
1115
1143
|
|
1116
|
-
|
1144
|
+
raise eee
|
1117
1145
|
end
|
1118
1146
|
match_count_3 += 1
|
1119
1147
|
end
|
1120
1148
|
|
1121
1149
|
|
1150
|
+
|
1122
1151
|
@state.type = type
|
1123
1152
|
@state.channel = channel
|
1124
1153
|
|
1125
1154
|
ensure
|
1126
1155
|
# -> uncomment the next line to manually enable rule tracing
|
1127
|
-
# trace_out( __method__,
|
1156
|
+
# trace_out( __method__, 40 )
|
1128
1157
|
|
1129
1158
|
end
|
1130
1159
|
|
1131
1160
|
# lexer rule esc! (ESC)
|
1132
|
-
# (in
|
1161
|
+
# (in OCCIANTLR.g)
|
1133
1162
|
def esc!
|
1134
1163
|
# -> uncomment the next line to manually enable rule tracing
|
1135
|
-
# trace_in( __method__,
|
1164
|
+
# trace_in( __method__, 41 )
|
1136
1165
|
|
1137
1166
|
type = ESC
|
1138
1167
|
channel = ANTLR3::DEFAULT_CHANNEL
|
1139
1168
|
|
1140
|
-
|
1169
|
+
|
1141
1170
|
# - - - - main rule block - - - -
|
1142
|
-
# at line
|
1143
|
-
match(0x5c)
|
1171
|
+
# at line 131:11: '\\\\' ( '\"' | '\\'' )
|
1172
|
+
match( 0x5c )
|
1144
1173
|
if @input.peek(1) == 0x22 || @input.peek(1) == 0x27
|
1145
1174
|
@input.consume
|
1146
1175
|
else
|
1147
|
-
mse = MismatchedSet(nil)
|
1176
|
+
mse = MismatchedSet( nil )
|
1148
1177
|
recover mse
|
1149
1178
|
raise mse
|
1150
1179
|
end
|
1151
1180
|
|
1152
1181
|
|
1182
|
+
|
1183
|
+
|
1153
1184
|
@state.type = type
|
1154
1185
|
@state.channel = channel
|
1155
1186
|
|
1156
1187
|
ensure
|
1157
1188
|
# -> uncomment the next line to manually enable rule tracing
|
1158
|
-
# trace_out( __method__,
|
1189
|
+
# trace_out( __method__, 41 )
|
1159
1190
|
|
1160
1191
|
end
|
1161
1192
|
|
@@ -1167,366 +1198,377 @@ module OCCI
|
|
1167
1198
|
# but instead use the next_token method, which will
|
1168
1199
|
# build and emit the actual next token
|
1169
1200
|
def token!
|
1170
|
-
# at line 1:8: ( T__9 | T__10 | T__11 | T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | LOALPHA | UPALPHA | DIGIT | WS | ESC )
|
1171
|
-
alt_4 =
|
1172
|
-
alt_4 = @dfa4.predict(@input)
|
1201
|
+
# at line 1:8: ( T__9 | T__10 | T__11 | T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | T__44 | LOALPHA | UPALPHA | DIGIT | WS | ESC )
|
1202
|
+
alt_4 = 41
|
1203
|
+
alt_4 = @dfa4.predict( @input )
|
1173
1204
|
case alt_4
|
1174
|
-
|
1175
|
-
|
1176
|
-
|
1205
|
+
when 1
|
1206
|
+
# at line 1:10: T__9
|
1207
|
+
t__9!
|
1208
|
+
|
1209
|
+
when 2
|
1210
|
+
# at line 1:15: T__10
|
1211
|
+
t__10!
|
1177
1212
|
|
1178
|
-
|
1179
|
-
|
1180
|
-
|
1213
|
+
when 3
|
1214
|
+
# at line 1:21: T__11
|
1215
|
+
t__11!
|
1181
1216
|
|
1182
|
-
|
1183
|
-
|
1184
|
-
|
1217
|
+
when 4
|
1218
|
+
# at line 1:27: T__12
|
1219
|
+
t__12!
|
1185
1220
|
|
1186
|
-
|
1187
|
-
|
1188
|
-
|
1221
|
+
when 5
|
1222
|
+
# at line 1:33: T__13
|
1223
|
+
t__13!
|
1189
1224
|
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1225
|
+
when 6
|
1226
|
+
# at line 1:39: T__14
|
1227
|
+
t__14!
|
1193
1228
|
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1229
|
+
when 7
|
1230
|
+
# at line 1:45: T__15
|
1231
|
+
t__15!
|
1197
1232
|
|
1198
|
-
|
1199
|
-
|
1200
|
-
|
1233
|
+
when 8
|
1234
|
+
# at line 1:51: T__16
|
1235
|
+
t__16!
|
1201
1236
|
|
1202
|
-
|
1203
|
-
|
1204
|
-
|
1237
|
+
when 9
|
1238
|
+
# at line 1:57: T__17
|
1239
|
+
t__17!
|
1205
1240
|
|
1206
|
-
|
1207
|
-
|
1208
|
-
|
1241
|
+
when 10
|
1242
|
+
# at line 1:63: T__18
|
1243
|
+
t__18!
|
1209
1244
|
|
1210
|
-
|
1211
|
-
|
1212
|
-
|
1245
|
+
when 11
|
1246
|
+
# at line 1:69: T__19
|
1247
|
+
t__19!
|
1213
1248
|
|
1214
|
-
|
1215
|
-
|
1216
|
-
|
1249
|
+
when 12
|
1250
|
+
# at line 1:75: T__20
|
1251
|
+
t__20!
|
1217
1252
|
|
1218
|
-
|
1219
|
-
|
1220
|
-
|
1253
|
+
when 13
|
1254
|
+
# at line 1:81: T__21
|
1255
|
+
t__21!
|
1221
1256
|
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1257
|
+
when 14
|
1258
|
+
# at line 1:87: T__22
|
1259
|
+
t__22!
|
1225
1260
|
|
1226
|
-
|
1227
|
-
|
1228
|
-
|
1261
|
+
when 15
|
1262
|
+
# at line 1:93: T__23
|
1263
|
+
t__23!
|
1229
1264
|
|
1230
|
-
|
1231
|
-
|
1232
|
-
|
1265
|
+
when 16
|
1266
|
+
# at line 1:99: T__24
|
1267
|
+
t__24!
|
1233
1268
|
|
1234
|
-
|
1235
|
-
|
1236
|
-
|
1269
|
+
when 17
|
1270
|
+
# at line 1:105: T__25
|
1271
|
+
t__25!
|
1237
1272
|
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1273
|
+
when 18
|
1274
|
+
# at line 1:111: T__26
|
1275
|
+
t__26!
|
1241
1276
|
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1277
|
+
when 19
|
1278
|
+
# at line 1:117: T__27
|
1279
|
+
t__27!
|
1245
1280
|
|
1246
|
-
|
1247
|
-
|
1248
|
-
|
1281
|
+
when 20
|
1282
|
+
# at line 1:123: T__28
|
1283
|
+
t__28!
|
1249
1284
|
|
1250
|
-
|
1251
|
-
|
1252
|
-
|
1285
|
+
when 21
|
1286
|
+
# at line 1:129: T__29
|
1287
|
+
t__29!
|
1253
1288
|
|
1254
|
-
|
1255
|
-
|
1256
|
-
|
1289
|
+
when 22
|
1290
|
+
# at line 1:135: T__30
|
1291
|
+
t__30!
|
1257
1292
|
|
1258
|
-
|
1259
|
-
|
1260
|
-
|
1293
|
+
when 23
|
1294
|
+
# at line 1:141: T__31
|
1295
|
+
t__31!
|
1261
1296
|
|
1262
|
-
|
1263
|
-
|
1264
|
-
|
1297
|
+
when 24
|
1298
|
+
# at line 1:147: T__32
|
1299
|
+
t__32!
|
1265
1300
|
|
1266
|
-
|
1267
|
-
|
1268
|
-
|
1301
|
+
when 25
|
1302
|
+
# at line 1:153: T__33
|
1303
|
+
t__33!
|
1269
1304
|
|
1270
|
-
|
1271
|
-
|
1272
|
-
|
1305
|
+
when 26
|
1306
|
+
# at line 1:159: T__34
|
1307
|
+
t__34!
|
1273
1308
|
|
1274
|
-
|
1275
|
-
|
1276
|
-
|
1309
|
+
when 27
|
1310
|
+
# at line 1:165: T__35
|
1311
|
+
t__35!
|
1277
1312
|
|
1278
|
-
|
1279
|
-
|
1280
|
-
|
1313
|
+
when 28
|
1314
|
+
# at line 1:171: T__36
|
1315
|
+
t__36!
|
1281
1316
|
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1317
|
+
when 29
|
1318
|
+
# at line 1:177: T__37
|
1319
|
+
t__37!
|
1285
1320
|
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1321
|
+
when 30
|
1322
|
+
# at line 1:183: T__38
|
1323
|
+
t__38!
|
1289
1324
|
|
1290
|
-
|
1291
|
-
|
1292
|
-
|
1325
|
+
when 31
|
1326
|
+
# at line 1:189: T__39
|
1327
|
+
t__39!
|
1293
1328
|
|
1294
|
-
|
1295
|
-
|
1296
|
-
|
1329
|
+
when 32
|
1330
|
+
# at line 1:195: T__40
|
1331
|
+
t__40!
|
1297
1332
|
|
1298
|
-
|
1299
|
-
|
1300
|
-
|
1333
|
+
when 33
|
1334
|
+
# at line 1:201: T__41
|
1335
|
+
t__41!
|
1301
1336
|
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
1337
|
+
when 34
|
1338
|
+
# at line 1:207: T__42
|
1339
|
+
t__42!
|
1305
1340
|
|
1306
|
-
|
1307
|
-
|
1308
|
-
|
1341
|
+
when 35
|
1342
|
+
# at line 1:213: T__43
|
1343
|
+
t__43!
|
1309
1344
|
|
1310
|
-
|
1311
|
-
|
1312
|
-
|
1345
|
+
when 36
|
1346
|
+
# at line 1:219: T__44
|
1347
|
+
t__44!
|
1313
1348
|
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1349
|
+
when 37
|
1350
|
+
# at line 1:225: LOALPHA
|
1351
|
+
loalpha!
|
1317
1352
|
|
1318
|
-
|
1319
|
-
|
1320
|
-
|
1353
|
+
when 38
|
1354
|
+
# at line 1:233: UPALPHA
|
1355
|
+
upalpha!
|
1321
1356
|
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1357
|
+
when 39
|
1358
|
+
# at line 1:241: DIGIT
|
1359
|
+
digit!
|
1325
1360
|
|
1326
|
-
|
1327
|
-
|
1328
|
-
|
1361
|
+
when 40
|
1362
|
+
# at line 1:247: WS
|
1363
|
+
ws!
|
1329
1364
|
|
1330
|
-
|
1331
|
-
|
1332
|
-
|
1365
|
+
when 41
|
1366
|
+
# at line 1:250: ESC
|
1367
|
+
esc!
|
1333
1368
|
|
1334
1369
|
end
|
1335
1370
|
end
|
1336
1371
|
|
1337
|
-
|
1372
|
+
|
1338
1373
|
# - - - - - - - - - - DFA definitions - - - - - - - - - - -
|
1339
1374
|
class DFA4 < ANTLR3::DFA
|
1340
|
-
EOT = unpack(1, -1, 1, 32, 2, -1, 1, 31, 2, -1, 5, 31, 1, 32, 2,
|
1341
|
-
|
1342
|
-
|
1343
|
-
|
1344
|
-
|
1345
|
-
|
1346
|
-
|
1347
|
-
|
1348
|
-
|
1349
|
-
|
1350
|
-
|
1351
|
-
|
1352
|
-
|
1353
|
-
|
1354
|
-
|
1355
|
-
|
1356
|
-
|
1357
|
-
|
1358
|
-
|
1359
|
-
|
1360
|
-
|
1361
|
-
|
1362
|
-
|
1363
|
-
|
1364
|
-
|
1365
|
-
|
1366
|
-
|
1367
|
-
|
1368
|
-
|
1369
|
-
|
1370
|
-
|
1371
|
-
|
1372
|
-
|
1373
|
-
|
1374
|
-
|
1375
|
-
|
1376
|
-
|
1377
|
-
|
1378
|
-
|
1379
|
-
|
1380
|
-
|
1381
|
-
|
1375
|
+
EOT = unpack( 1, -1, 1, 32, 2, -1, 1, 31, 2, -1, 5, 31, 1, 32, 2,
|
1376
|
+
-1, 1, 32, 3, -1, 1, 49, 8, -1, 2, 31, 6, -1, 10, 31,
|
1377
|
+
4, -1, 8, 31, 1, 71, 3, 31, 1, -1, 3, 31, 1, 79, 3,
|
1378
|
+
31, 1, 83, 1, -1, 3, 31, 1, -1, 1, 88, 2, 31, 1, -1,
|
1379
|
+
1, 91, 1, 31, 1, 93, 1, -1, 3, 31, 2, -1, 1, 98, 1,
|
1380
|
+
99, 1, -1, 1, 31, 1, -1, 2, 31, 1, 104, 3, -1, 3, 31,
|
1381
|
+
1, 109, 2, -1, 1, 112, 1, 113, 1, 31, 5, -1, 1, 31,
|
1382
|
+
1, 116, 1, -1 )
|
1383
|
+
EOF = unpack( 117, -1 )
|
1384
|
+
MIN = unpack( 1, 9, 1, 97, 2, -1, 1, 99, 2, -1, 1, 97, 2, 101, 1,
|
1385
|
+
111, 1, 99, 1, 105, 2, -1, 1, 45, 3, -1, 1, 34, 8, -1,
|
1386
|
+
2, 105, 6, -1, 1, 104, 1, 108, 1, 97, 2, 116, 1, 114,
|
1387
|
+
1, 108, 1, 99, 2, 116, 1, -1, 1, 79, 2, -1, 1, 110,
|
1388
|
+
1, 120, 1, 101, 1, 102, 1, 115, 1, 101, 1, 108, 1, 109,
|
1389
|
+
2, 97, 1, 114, 1, 105, 1, 67, 1, 100, 1, 105, 1, 109,
|
1390
|
+
1, 97, 1, 115, 1, 103, 1, 101, 1, 97, 1, -1, 1, 116,
|
1391
|
+
1, 105, 1, 111, 1, 67, 1, 97, 1, 110, 1, 101, 1, -1,
|
1392
|
+
1, 97, 1, 111, 1, 97, 1, -1, 1, 105, 1, 98, 1, 110,
|
1393
|
+
1, 73, 1, -1, 2, 97, 1, -1, 1, 114, 1, -1, 1, 111, 1,
|
1394
|
+
117, 1, 97, 1, 45, 2, -1, 1, 121, 1, 110, 1, 116, 1,
|
1395
|
+
97, 1, -1, 1, 65, 2, 97, 1, 101, 5, -1, 1, 115, 1, 97,
|
1396
|
+
1, -1 )
|
1397
|
+
MAX = unpack( 1, 126, 1, 97, 2, -1, 1, 101, 2, -1, 1, 108, 1, 105,
|
1398
|
+
1, 101, 1, 111, 1, 116, 1, 105, 2, -1, 1, 45, 3, -1,
|
1399
|
+
1, 39, 8, -1, 2, 105, 6, -1, 1, 104, 1, 108, 1, 97,
|
1400
|
+
2, 116, 1, 114, 1, 108, 1, 99, 2, 116, 1, -1, 1, 79,
|
1401
|
+
2, -1, 1, 110, 1, 120, 1, 101, 1, 102, 1, 115, 1, 101,
|
1402
|
+
1, 108, 1, 109, 1, 122, 1, 97, 1, 114, 1, 105, 1, 67,
|
1403
|
+
1, 100, 1, 105, 1, 109, 1, 122, 1, 115, 1, 103, 1, 101,
|
1404
|
+
1, 122, 1, -1, 1, 116, 1, 105, 1, 111, 1, 67, 1, 122,
|
1405
|
+
1, 110, 1, 101, 1, -1, 1, 122, 1, 111, 1, 122, 1, -1,
|
1406
|
+
1, 105, 1, 98, 1, 110, 1, 73, 1, -1, 2, 122, 1, -1,
|
1407
|
+
1, 114, 1, -1, 1, 111, 1, 117, 1, 122, 1, 45, 2, -1,
|
1408
|
+
1, 121, 1, 110, 1, 116, 1, 122, 1, -1, 1, 76, 2, 122,
|
1409
|
+
1, 101, 5, -1, 1, 115, 1, 122, 1, -1 )
|
1410
|
+
ACCEPT = unpack( 2, -1, 1, 2, 1, 3, 1, -1, 1, 5, 1, 6, 6, -1, 1, 14,
|
1411
|
+
1, 15, 1, -1, 1, 20, 1, 21, 1, 22, 1, -1, 1, 24,
|
1412
|
+
1, 25, 1, 26, 1, 27, 1, 28, 1, 29, 1, 30, 1, 31,
|
1413
|
+
2, -1, 1, 36, 1, 37, 1, 38, 1, 39, 1, 40, 1, 1, 10,
|
1414
|
+
-1, 1, 13, 1, -1, 1, 41, 1, 23, 21, -1, 1, 9, 7,
|
1415
|
+
-1, 1, 16, 3, -1, 1, 35, 4, -1, 1, 33, 2, -1, 1,
|
1416
|
+
7, 1, -1, 1, 8, 4, -1, 1, 34, 1, 4, 4, -1, 1, 32,
|
1417
|
+
4, -1, 1, 12, 1, 18, 1, 19, 1, 17, 1, 10, 2, -1,
|
1418
|
+
1, 11 )
|
1419
|
+
SPECIAL = unpack( 117, -1 )
|
1382
1420
|
TRANSITION = [
|
1383
|
-
|
1384
|
-
|
1385
|
-
|
1386
|
-
|
1387
|
-
|
1388
|
-
|
1389
|
-
|
1390
|
-
|
1391
|
-
|
1392
|
-
|
1393
|
-
|
1394
|
-
|
1395
|
-
|
1396
|
-
|
1397
|
-
|
1398
|
-
|
1399
|
-
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
1403
|
-
|
1404
|
-
|
1405
|
-
|
1406
|
-
|
1407
|
-
|
1408
|
-
|
1409
|
-
|
1410
|
-
|
1411
|
-
|
1412
|
-
|
1413
|
-
|
1414
|
-
|
1415
|
-
|
1416
|
-
|
1417
|
-
|
1418
|
-
|
1419
|
-
|
1420
|
-
|
1421
|
-
|
1422
|
-
|
1423
|
-
|
1424
|
-
|
1425
|
-
|
1426
|
-
|
1427
|
-
|
1428
|
-
|
1429
|
-
|
1430
|
-
|
1431
|
-
|
1432
|
-
|
1433
|
-
|
1434
|
-
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
1438
|
-
|
1439
|
-
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
1446
|
-
|
1447
|
-
|
1448
|
-
|
1449
|
-
|
1450
|
-
|
1451
|
-
|
1452
|
-
|
1453
|
-
|
1454
|
-
|
1455
|
-
|
1456
|
-
|
1457
|
-
|
1458
|
-
|
1459
|
-
|
1460
|
-
|
1461
|
-
|
1462
|
-
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1467
|
-
|
1468
|
-
|
1469
|
-
|
1470
|
-
|
1471
|
-
|
1472
|
-
|
1473
|
-
|
1474
|
-
|
1475
|
-
|
1476
|
-
|
1477
|
-
|
1478
|
-
|
1479
|
-
|
1480
|
-
|
1481
|
-
|
1482
|
-
|
1483
|
-
|
1484
|
-
|
1485
|
-
|
1486
|
-
|
1487
|
-
|
1488
|
-
|
1489
|
-
|
1490
|
-
|
1491
|
-
|
1492
|
-
|
1493
|
-
|
1494
|
-
|
1495
|
-
|
1496
|
-
|
1497
|
-
|
1498
|
-
|
1499
|
-
|
1500
|
-
|
1501
|
-
|
1421
|
+
unpack( 2, 34, 1, -1, 2, 34, 18, -1, 1, 34, 1, -1, 1, 6, 1, 23,
|
1422
|
+
1, -1, 1, 17, 1, 25, 1, 30, 3, -1, 1, 20, 1, -1, 1, 27,
|
1423
|
+
1, 21, 1, 26, 10, 33, 1, 2, 1, 3, 1, 13, 1, 5, 1, 14, 1,
|
1424
|
+
24, 1, 16, 2, 32, 1, 1, 8, 32, 1, 12, 11, 32, 1, 15, 2,
|
1425
|
+
32, 1, -1, 1, 19, 2, -1, 1, 18, 1, -1, 1, 11, 1, 31, 1,
|
1426
|
+
7, 7, 31, 1, 28, 1, 10, 1, 29, 4, 31, 1, 9, 1, 4, 1, 8,
|
1427
|
+
6, 31, 3, -1, 1, 22 ),
|
1428
|
+
unpack( 1, 35 ),
|
1429
|
+
unpack( ),
|
1430
|
+
unpack( ),
|
1431
|
+
unpack( 1, 36, 1, -1, 1, 37 ),
|
1432
|
+
unpack( ),
|
1433
|
+
unpack( ),
|
1434
|
+
unpack( 1, 39, 10, -1, 1, 38 ),
|
1435
|
+
unpack( 1, 41, 3, -1, 1, 40 ),
|
1436
|
+
unpack( 1, 42 ),
|
1437
|
+
unpack( 1, 43 ),
|
1438
|
+
unpack( 1, 45, 16, -1, 1, 44 ),
|
1439
|
+
unpack( 1, 46 ),
|
1440
|
+
unpack( ),
|
1441
|
+
unpack( ),
|
1442
|
+
unpack( 1, 47 ),
|
1443
|
+
unpack( ),
|
1444
|
+
unpack( ),
|
1445
|
+
unpack( ),
|
1446
|
+
unpack( 1, 48, 4, -1, 1, 48 ),
|
1447
|
+
unpack( ),
|
1448
|
+
unpack( ),
|
1449
|
+
unpack( ),
|
1450
|
+
unpack( ),
|
1451
|
+
unpack( ),
|
1452
|
+
unpack( ),
|
1453
|
+
unpack( ),
|
1454
|
+
unpack( ),
|
1455
|
+
unpack( 1, 50 ),
|
1456
|
+
unpack( 1, 51 ),
|
1457
|
+
unpack( ),
|
1458
|
+
unpack( ),
|
1459
|
+
unpack( ),
|
1460
|
+
unpack( ),
|
1461
|
+
unpack( ),
|
1462
|
+
unpack( ),
|
1463
|
+
unpack( 1, 52 ),
|
1464
|
+
unpack( 1, 53 ),
|
1465
|
+
unpack( 1, 54 ),
|
1466
|
+
unpack( 1, 55 ),
|
1467
|
+
unpack( 1, 56 ),
|
1468
|
+
unpack( 1, 57 ),
|
1469
|
+
unpack( 1, 58 ),
|
1470
|
+
unpack( 1, 59 ),
|
1471
|
+
unpack( 1, 60 ),
|
1472
|
+
unpack( 1, 61 ),
|
1473
|
+
unpack( ),
|
1474
|
+
unpack( 1, 62 ),
|
1475
|
+
unpack( ),
|
1476
|
+
unpack( ),
|
1477
|
+
unpack( 1, 63 ),
|
1478
|
+
unpack( 1, 64 ),
|
1479
|
+
unpack( 1, 65 ),
|
1480
|
+
unpack( 1, 66 ),
|
1481
|
+
unpack( 1, 67 ),
|
1482
|
+
unpack( 1, 68 ),
|
1483
|
+
unpack( 1, 69 ),
|
1484
|
+
unpack( 1, 70 ),
|
1485
|
+
unpack( 26, 31 ),
|
1486
|
+
unpack( 1, 72 ),
|
1487
|
+
unpack( 1, 73 ),
|
1488
|
+
unpack( 1, 74 ),
|
1489
|
+
unpack( 1, 75 ),
|
1490
|
+
unpack( 1, 76 ),
|
1491
|
+
unpack( 1, 77 ),
|
1492
|
+
unpack( 1, 78 ),
|
1493
|
+
unpack( 26, 31 ),
|
1494
|
+
unpack( 1, 80 ),
|
1495
|
+
unpack( 1, 81 ),
|
1496
|
+
unpack( 1, 82 ),
|
1497
|
+
unpack( 26, 31 ),
|
1498
|
+
unpack( ),
|
1499
|
+
unpack( 1, 84 ),
|
1500
|
+
unpack( 1, 85 ),
|
1501
|
+
unpack( 1, 86 ),
|
1502
|
+
unpack( 1, 87 ),
|
1503
|
+
unpack( 26, 31 ),
|
1504
|
+
unpack( 1, 89 ),
|
1505
|
+
unpack( 1, 90 ),
|
1506
|
+
unpack( ),
|
1507
|
+
unpack( 26, 31 ),
|
1508
|
+
unpack( 1, 92 ),
|
1509
|
+
unpack( 26, 31 ),
|
1510
|
+
unpack( ),
|
1511
|
+
unpack( 1, 94 ),
|
1512
|
+
unpack( 1, 95 ),
|
1513
|
+
unpack( 1, 96 ),
|
1514
|
+
unpack( 1, 97 ),
|
1515
|
+
unpack( ),
|
1516
|
+
unpack( 26, 31 ),
|
1517
|
+
unpack( 26, 31 ),
|
1518
|
+
unpack( ),
|
1519
|
+
unpack( 1, 100 ),
|
1520
|
+
unpack( ),
|
1521
|
+
unpack( 1, 101 ),
|
1522
|
+
unpack( 1, 102 ),
|
1523
|
+
unpack( 18, 31, 1, 103, 7, 31 ),
|
1524
|
+
unpack( 1, 105 ),
|
1525
|
+
unpack( ),
|
1526
|
+
unpack( ),
|
1527
|
+
unpack( 1, 106 ),
|
1528
|
+
unpack( 1, 107 ),
|
1529
|
+
unpack( 1, 108 ),
|
1530
|
+
unpack( 26, 31 ),
|
1531
|
+
unpack( ),
|
1532
|
+
unpack( 1, 110, 10, -1, 1, 111 ),
|
1533
|
+
unpack( 26, 31 ),
|
1534
|
+
unpack( 26, 31 ),
|
1535
|
+
unpack( 1, 114 ),
|
1536
|
+
unpack( ),
|
1537
|
+
unpack( ),
|
1538
|
+
unpack( ),
|
1539
|
+
unpack( ),
|
1540
|
+
unpack( ),
|
1541
|
+
unpack( 1, 115 ),
|
1542
|
+
unpack( 26, 31 ),
|
1543
|
+
unpack( )
|
1502
1544
|
].freeze
|
1503
|
-
|
1504
|
-
(0 ... MIN.length).zip(MIN, MAX) do |i, a, z|
|
1545
|
+
|
1546
|
+
( 0 ... MIN.length ).zip( MIN, MAX ) do | i, a, z |
|
1505
1547
|
if a > 0 and z < 0
|
1506
|
-
MAX[i] %= 0x10000
|
1548
|
+
MAX[ i ] %= 0x10000
|
1507
1549
|
end
|
1508
1550
|
end
|
1509
|
-
|
1551
|
+
|
1510
1552
|
@decision = 4
|
1511
|
-
|
1553
|
+
|
1512
1554
|
|
1513
1555
|
def description
|
1514
1556
|
<<-'__dfa_description__'.strip!
|
1515
|
-
1:1: Tokens : ( T__9 | T__10 | T__11 | T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | LOALPHA | UPALPHA | DIGIT | WS | ESC );
|
1557
|
+
1:1: Tokens : ( T__9 | T__10 | T__11 | T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | T__44 | LOALPHA | UPALPHA | DIGIT | WS | ESC );
|
1516
1558
|
__dfa_description__
|
1517
1559
|
end
|
1518
1560
|
end
|
1519
1561
|
|
1520
|
-
|
1562
|
+
|
1521
1563
|
private
|
1522
|
-
|
1564
|
+
|
1523
1565
|
def initialize_dfas
|
1524
1566
|
super rescue nil
|
1525
|
-
@dfa4 = DFA4.new(self, 4)
|
1567
|
+
@dfa4 = DFA4.new( self, 4 )
|
1526
1568
|
|
1527
1569
|
end
|
1528
1570
|
end # class Lexer < ANTLR3::Lexer
|
1529
1571
|
|
1530
|
-
at_exit { Lexer.main(ARGV) } if __FILE__ == $0
|
1572
|
+
at_exit { Lexer.main( ARGV ) } if __FILE__ == $0
|
1531
1573
|
end
|
1532
1574
|
|