ridl 2.8.1 → 2.8.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d24bac3b0aa52e6c84a1ef61d0939d84b3277b139a69db8cfc1f7f95130bf6a2
4
- data.tar.gz: 3f773ed9d639811aaba53a68e0ace506b5e6b11591875326665d102faeff5a8f
3
+ metadata.gz: 880d87c66c5e6542fd7a61744fd2c10db2344e75849e73efbc45e26f8c33511a
4
+ data.tar.gz: 3d8b9e40f5d9220f5a677e4ebee507042f31246a0cbdc680166512985a1ba6ee
5
5
  SHA512:
6
- metadata.gz: 1aa10dbfdb821544c474bc3f41bf48c156a42bf51d909ed631c6030ebd546145f9f9e70945bf4aa54a68e74cfe4a4d27b38dfab937e1576338febc67ea18dc8c
7
- data.tar.gz: b96af7bb90418102bfb030dbd798bd15384232ab2547887fd68d4a3e1dc4142c0d997ab15f4de93daf06f39e764d8d8d04720774e81031b537b343daf6570862
6
+ metadata.gz: a79c369f080a3e914de2df4899bd523c312814abd400726c9315043495bbfa4b3870f9ebc696019804487c86b5b1edc4791c1252dd616ac342da214849764304
7
+ data.tar.gz: a136ede546812cafba12a925d7c86415d5e453f2ad4d513f65be54751434c2bbd43fca0bbcea36bc898d522a2bd644da71dedd56029c26473ca77645a1827cfd
data/README.rdoc CHANGED
@@ -46,3 +46,7 @@ The RIDL Gem is a Ruby-only Gem without any dependencies.
46
46
  == Releasing new RIDL Ruby Gem
47
47
 
48
48
  A new RIDL ruby gem release can be made by incrementing the RIDL version in link:lib/ridl/version.rb and create a new release on {github}[https://github.com/RemedyIT/ridl/releases] matching the new version (for example v2.7.0). The github {Ruby Gem Release}[https://github.com/RemedyIT/ridl/actions?query=workflow%3A%22Ruby+Gem+Release%22] action will automatically create a new gem and push it to {Rubygems.org}[https://www.rubygems.org/gems/ridl].
49
+
50
+ == Regenerating `lib/racc/parser.rb`
51
+
52
+ The file `lib/racc/parser.rb` can be regenerated using `racc -o parser.rb -E parser.ry`. The option `-E` embeds the racc parser within RIDL which is required for RIDL because jruby doesn't contain `RACC` as cruby does.
data/lib/ridl/delegate.rb CHANGED
@@ -25,7 +25,7 @@ class Delegator
25
25
  @@pragma_handlers = {}
26
26
 
27
27
  def self.add_pragma_handler(key, h = nil, &block)
28
- raise 'add_pragma_handler requires a callable object or a block' unless (h && h.respond_to?(:call)) || block_given?
28
+ raise 'add_pragma_handler requires a callable object or a block' unless h&.respond_to?(:call) || block_given?
29
29
  @@pragma_handlers[key] = block_given? ? block : h
30
30
  end
31
31
 
data/lib/ridl/node.rb CHANGED
@@ -1316,8 +1316,8 @@ module IDL::AST
1316
1316
  end
1317
1317
 
1318
1318
  def set_component_and_key(comp, key)
1319
- unless comp && comp.is_a?(IDL::Type::ScopedName) && comp.is_node?(IDL::AST::TemplateParam)
1320
- unless comp && comp.is_a?(IDL::Type::ScopedName) && comp.is_node?(IDL::AST::Component)
1319
+ unless comp&.is_a?(IDL::Type::ScopedName) && comp.is_node?(IDL::AST::TemplateParam)
1320
+ unless comp&.is_a?(IDL::Type::ScopedName) && comp.is_node?(IDL::AST::Component)
1321
1321
  raise (comp ?
1322
1322
  "invalid managed component for #{typename} #{scoped_lm_name}: #{comp.typename}" :
1323
1323
  "missing managed component specification for #{typename} #{scoped_lm_name}")
@@ -1327,7 +1327,7 @@ module IDL::AST
1327
1327
  end
1328
1328
  @resolved_comp = comp.resolved_type.node
1329
1329
  end
1330
- unless key && key.is_a?(IDL::Type::ScopedName) && key.is_node?(IDL::AST::TemplateParam)
1330
+ unless key&.is_a?(IDL::Type::ScopedName) && key.is_node?(IDL::AST::TemplateParam)
1331
1331
  ## TODO : add check for Components::PrimaryKeyBase base type
1332
1332
  unless key.nil? || (key.is_a?(IDL::Type::ScopedName) && key.is_node?(IDL::AST::Valuetype))
1333
1333
  raise "invalid primary key for #{typename} #{scoped_lm_name}: #{key.typename}"
@@ -2776,4 +2776,3 @@ module IDL::AST
2776
2776
  end
2777
2777
  end # Typedef
2778
2778
  end
2779
-
data/lib/ridl/parser.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.16
3
+ # This file is automatically generated by Racc 1.6.1
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
@@ -20,7 +20,7 @@ self.class.module_eval(<<'...end racc/parser.rb/module_eval...', 'racc/parser.rb
20
20
  # without restriction.
21
21
  #++
22
22
 
23
- # require 'racc/info'
23
+ #require 'racc/info'
24
24
 
25
25
  unless defined?(NotImplementedError)
26
26
  NotImplementedError = NotImplementError # :nodoc:
@@ -30,7 +30,7 @@ module Racc
30
30
  class ParseError < StandardError; end
31
31
  end
32
32
  unless defined?(::ParseError)
33
- ParseError = Racc::ParseError
33
+ ParseError = Racc::ParseError # :nodoc:
34
34
  end
35
35
 
36
36
  # Racc is a LALR(1) parser generator.
@@ -39,7 +39,7 @@ end
39
39
  # == Command-line Reference
40
40
  #
41
41
  # racc [-o<var>filename</var>] [--output-file=<var>filename</var>]
42
- # [-e<var>rubypath</var>] [--embedded=<var>rubypath</var>]
42
+ # [-e<var>rubypath</var>] [--executable=<var>rubypath</var>]
43
43
  # [-v] [--verbose]
44
44
  # [-O<var>filename</var>] [--log-file=<var>filename</var>]
45
45
  # [-g] [--debug]
@@ -51,7 +51,7 @@ end
51
51
  # [-S] [--output-status]
52
52
  # [--version] [--copyright] [--help] <var>grammarfile</var>
53
53
  #
54
- # [+filename+]
54
+ # [+grammarfile+]
55
55
  # Racc grammar file. Any extension is permitted.
56
56
  # [-o+outfile+, --output-file=+outfile+]
57
57
  # A filename for output. default is <+filename+>.tab.rb
@@ -189,45 +189,39 @@ end
189
189
  # Your own parser is completely yours.
190
190
  module Racc
191
191
 
192
- unless defined?(Racc_No_Extentions)
193
- Racc_No_Extentions = false # :nodoc:
192
+ unless defined?(Racc_No_Extensions)
193
+ Racc_No_Extensions = false # :nodoc:
194
194
  end
195
195
 
196
196
  class Parser
197
197
 
198
- Racc_Runtime_Version = '1.4.16' unless defined?(Racc_Runtime_Version)
199
- Racc_Runtime_Revision = '$Id: 7adc21ee7a5690f10b7ff399b8af4e2717b9d94c $' unless defined?(Racc_Runtime_Revision)
198
+ Racc_Runtime_Version = '1.6.1'
199
+ Racc_Runtime_Core_Version_R = '1.6.1'
200
200
 
201
- Racc_Runtime_Core_Version_R = '1.4.16' unless defined?(Racc_Runtime_Core_Version_R)
202
- Racc_Runtime_Core_Revision_R = '$Id: 7adc21ee7a5690f10b7ff399b8af4e2717b9d94c $'.split[1] unless defined?(Racc_Runtime_Core_Revision_R)
203
201
  begin
204
202
  if Object.const_defined?(:RUBY_ENGINE) and RUBY_ENGINE == 'jruby'
203
+ require 'jruby'
205
204
  require 'racc/cparse-jruby.jar'
206
205
  com.headius.racc.Cparse.new.load(JRuby.runtime, false)
207
206
  else
208
207
  require 'racc/cparse'
209
208
  end
210
- # Racc_Runtime_Core_Version_C = (defined in extention)
211
- Racc_Runtime_Core_Revision_C = Racc_Runtime_Core_Id_C.split[2] unless defined?(Racc_Runtime_Core_Revision_C)
209
+
212
210
  unless new.respond_to?(:_racc_do_parse_c, true)
213
211
  raise LoadError, 'old cparse.so'
214
212
  end
215
- if Racc_No_Extentions
213
+ if Racc_No_Extensions
216
214
  raise LoadError, 'selecting ruby version of racc runtime core'
217
215
  end
218
216
 
219
- Racc_Main_Parsing_Routine = :_racc_do_parse_c unless defined?(Racc_Main_Parsing_Routine) # :nodoc:
220
- Racc_YY_Parse_Method = :_racc_yyparse_c unless defined?(Racc_YY_Parse_Method) # :nodoc:
221
- Racc_Runtime_Core_Version = Racc_Runtime_Core_Version_C unless defined?(Racc_Runtime_Core_Version) # :nodoc:
222
- Racc_Runtime_Core_Revision = Racc_Runtime_Core_Revision_C unless defined?(Racc_Runtime_Core_Revision) # :nodoc:
223
- Racc_Runtime_Type = 'c' unless defined?(Racc_Runtime_Type) # :nodoc:
217
+ Racc_Main_Parsing_Routine = :_racc_do_parse_c # :nodoc:
218
+ Racc_YY_Parse_Method = :_racc_yyparse_c # :nodoc:
219
+ Racc_Runtime_Core_Version = Racc_Runtime_Core_Version_C # :nodoc:
220
+ Racc_Runtime_Type = 'c' # :nodoc:
224
221
  rescue LoadError
225
- puts $!
226
- puts $!.backtrace
227
222
  Racc_Main_Parsing_Routine = :_racc_do_parse_rb
228
223
  Racc_YY_Parse_Method = :_racc_yyparse_rb
229
224
  Racc_Runtime_Core_Version = Racc_Runtime_Core_Version_R
230
- Racc_Runtime_Core_Revision = Racc_Runtime_Core_Revision_R
231
225
  Racc_Runtime_Type = 'ruby'
232
226
  end
233
227
 
@@ -340,7 +334,7 @@ puts $!.backtrace
340
334
  # It must 'yield' the token, which format is [TOKEN-SYMBOL, VALUE].
341
335
  class_eval %{
342
336
  def yyparse(recv, mid)
343
- #{Racc_YY_Parse_Method}(recv, mid, _racc_setup(), true)
337
+ #{Racc_YY_Parse_Method}(recv, mid, _racc_setup(), false)
344
338
  end
345
339
  }
346
340
 
@@ -562,7 +556,7 @@ puts $!.backtrace
562
556
  end
563
557
 
564
558
  # Exit parser.
565
- # Return value is Symbol_Value_Stack[0].
559
+ # Return value is +Symbol_Value_Stack[0]+.
566
560
  def yyaccept
567
561
  throw :racc_jump, 2
568
562
  end
@@ -754,214 +748,443 @@ end
754
748
  ...end parser.ry/module_eval...
755
749
  ##### State transition tables begin ###
756
750
 
757
- clist = [
758
- '-199,428,537,122,541,492,610,290,291,122,617,65,69,672,71,183,92,-139',
759
- '541,506,122,318,122,319,507,672,701,122,573,290,291,122,703,701,318',
760
- '483,319,94,292,282,293,283,284,94,76,464,701,399,616,122,94,671,542',
761
- '543,94,436,94,65,69,73,71,94,55,675,700,94,542,543,260,261,702,727,136',
762
- '137,138,144,148,149,150,151,152,179,180,94,728,77,153,154,358,359,260',
763
- '261,-84,53,489,54,122,611,612,180,184,185,118,117,65,69,180,71,183,122',
764
- '180,122,122,248,122,122,56,62,136,137,138,144,148,149,150,151,152,179',
765
- '180,122,94,535,153,154,536,-186,260,261,265,267,417,-182,122,94,122',
766
- '94,94,185,94,94,65,69,73,71,78,55,318,318,319,319,79,456,318,94,319',
767
- '136,137,138,144,148,149,150,151,152,179,180,94,80,94,153,154,280,335',
768
- '336,281,-86,53,81,54,290,291,290,291,184,185,306,307,306,307,338,337',
769
- '-195,122,122,122,122,248,122,122,56,62,136,137,138,144,148,149,150,151',
770
- '152,179,180,318,122,319,153,154,442,82,260,261,265,267,469,71,122,94',
771
- '94,94,94,185,94,94,65,69,73,71,-88,55,122,260,261,260,261,122,290,291',
772
- '94,303,304,305,306,307,619,122,623,122,122,248,94,358,359,325,326,280',
773
- '102,104,103,624,53,623,54,83,94,368,369,122,122,94,390,391,392,378,349',
774
- '499,144,148,149,94,151,94,94,56,62,136,137,138,144,148,149,150,151,152',
775
- '179,180,84,260,261,153,154,94,94,260,261,265,267,477,236,122,122,122',
776
- '85,238,185,122,122,65,69,73,71,86,55,122,122,122,122,237,239,240,241',
777
- '242,243,245,246,122,122,122,122,122,390,391,392,94,94,94,325,326,280',
778
- '94,94,381,382,53,508,54,122,94,94,94,94,390,391,392,65,69,87,71,183',
779
- '94,94,94,94,94,386,387,56,62,136,137,138,144,148,149,150,151,152,179',
780
- '180,88,94,89,153,154,388,389,260,261,265,267,547,548,122,571,570,386',
781
- '387,185,388,389,65,69,90,71,183,207,208,209,210,211,212,213,214,215',
782
- '216,136,137,138,144,148,149,150,151,152,179,180,94,388,389,153,154,290',
783
- '291,91,303,304,305,306,307,732,701,95,96,184,185,97,122,98,99,100,207',
784
- '208,209,210,211,212,213,214,215,216,101,136,137,138,144,148,149,150',
785
- '151,152,179,180,105,106,107,153,154,108,109,122,94,110,111,112,113,114',
786
- '236,115,116,184,185,238,260,261,119,120,187,188,189,232,231,190,191',
787
- '193,233,237,239,240,241,242,243,245,246,94,195,136,137,138,144,148,149',
788
- '150,151,152,179,180,122,196,198,153,154,199,200,-20,65,69,73,71,203',
789
- '55,204,272,273,184,185,274,314,327,136,137,138,144,148,149,150,151,152',
790
- '179,180,328,94,203,153,154,332,333,334,339,340,345,53,347,54,348,349',
791
- '350,-338,185,-346,360,363,367,370,371,372,373,374,375,376,377,380,383',
792
- '384,56,62,136,137,138,144,148,149,150,151,152,179,180,385,122,401,153',
793
- '154,402,122,260,261,265,267,403,404,405,65,69,73,71,185,55,406,407,408',
794
- '412,414,419,420,421,422,430,431,432,444,445,446,94,447,122,448,449,94',
795
- '236,450,458,459,280,238,460,281,461,53,319,54,471,232,231,472,478,479',
796
- '233,237,239,240,241,242,243,245,246,483,486,345,94,498,56,62,136,137',
797
- '138,144,148,149,150,151,152,179,180,510,513,122,153,154,514,122,260',
798
- '261,265,267,526,527,529,65,69,73,71,185,55,136,137,138,144,148,149,150',
799
- '151,152,179,180,544,545,546,153,154,94,122,527,549,94,267,236,325,326',
800
- '280,550,238,551,185,53,553,54,554,527,232,231,555,556,557,233,237,239',
801
- '240,241,242,243,245,246,558,559,94,561,56,62,136,137,138,144,148,149',
802
- '150,151,152,179,180,527,345,345,153,154,565,122,260,261,265,267,566',
803
- '345,486,65,69,73,71,185,55,136,137,138,144,148,149,150,151,152,179,180',
804
- '572,574,345,153,154,576,336,577,363,94,380,384,325,326,280,385,529,536',
805
- '185,53,614,54,122,615,631,561,483,483,634,637,65,69,640,71,183,641,642',
806
- '643,644,645,646,647,56,62,136,137,138,144,148,149,150,151,152,179,180',
807
- '648,94,649,153,154,650,651,260,261,265,267,652,653,122,654,535,657,612',
808
- '185,611,529,65,69,662,71,183,663,667,529,535,535,676,677,678,679,680',
809
- '136,137,138,144,148,149,150,151,152,179,180,94,696,529,153,154,657,535',
810
- '623,529,535,713,714,122,715,122,716,717,184,185,718,65,69,719,71,183',
811
- '720,721,722,723,724,725,730,731,734,,136,137,138,144,148,149,150,151',
812
- '152,179,180,94,,94,153,154,,,,236,,,,122,238,,,,184,185,,,232,231,,183',
813
- ',233,237,239,240,241,242,243,245,246,136,137,138,144,148,149,150,151',
814
- '152,179,180,94,,,153,154,,,,,,,,122,,,,,184,185,,65,69,,71,183,,,,,',
815
- ',,,,,136,137,138,144,148,149,150,151,152,179,180,94,,,153,154,,,,,,',
816
- ',122,,,,,184,185,,,,,,183,,,,122,,,,,,,136,137,138,144,148,149,150,151',
817
- '152,179,180,94,358,359,153,154,,236,,,,,238,122,,,,94,184,185,232,231',
818
- ',,,233,237,239,240,241,242,243,245,246,,,136,137,138,144,148,149,150',
819
- '151,152,179,180,94,,,153,154,136,137,138,144,148,149,150,151,152,179',
820
- '180,,184,185,153,154,122,,,,,,,,,,,,,185,136,137,138,144,148,149,150',
821
- '151,152,179,180,,,,153,154,122,,,,94,,,74,,,,,19,185,,,,,32,51,45,65',
822
- '69,73,71,,55,,28,29,31,,34,,94,,36,39,42,136,137,138,144,148,149,150',
823
- '151,152,47,,,,,153,154,,,53,,54,,,,,,,,155,,136,137,138,144,148,149',
824
- '150,151,152,,,56,62,,153,154,,,122,,,,365,19,,,,,155,32,51,45,65,69',
825
- '73,71,,55,,28,29,31,,34,,,,36,39,42,,,94,,,,,,236,47,,,,238,,,,,53,',
826
- '54,232,231,,,,233,237,239,240,241,242,243,245,246,,638,579,,,,56,62',
827
- '32,51,45,65,69,73,71,,55,597,28,29,31,,34,,,,36,39,42,,,,,,,,,,47,,',
828
- ',,,,,,53,,54,,,,,,,,,,,,,,,,711,579,,,,56,62,32,51,45,65,69,73,71,,55',
829
- ',28,29,31,,34,,,,36,39,42,,,,,,,,,,47,,,,,,,,,53,19,54,,,,,32,51,45',
830
- '65,69,73,71,,55,,28,29,31,,34,,56,62,36,39,42,,,,,,,,,,47,,,,,,,,,53',
831
- '19,54,,,,,32,51,45,65,69,73,71,,55,,28,29,31,,34,,56,62,36,39,42,,,',
832
- ',,,,,,47,,,,,,,,,53,579,54,,,,,32,51,45,65,69,73,71,,55,597,28,29,31',
833
- ',34,,56,62,36,39,42,,,,,,,,,,47,,,,,122,,,,53,579,54,,,,,32,51,45,65',
834
- '69,73,71,,55,,28,29,31,,34,,56,62,36,39,42,,,94,122,,,,,236,47,,,,238',
835
- ',,,,53,,54,232,231,,,,233,237,239,240,241,242,243,245,246,,122,94,,',
836
- ',56,62,236,,,,,238,,,,,,,,232,231,,,,233,237,239,240,241,242,243,245',
837
- '246,94,122,,,,,236,,,,,238,,,,,,,,232,231,,,,233,237,239,240,241,242',
838
- '243,245,246,,122,94,,,,,,236,,,,,238,,,,,,,,232,231,,,,233,237,239,240',
839
- '241,242,243,245,246,94,122,,,,,236,,,,,238,,,,,,,,232,231,,,,233,237',
840
- '239,240,241,242,243,245,246,,122,94,,,,,,236,,,,,238,,,,,,,,232,231',
841
- ',,,233,237,239,240,241,242,243,245,246,94,122,,,,,236,,,,,238,,,,,,',
842
- ',232,231,,,,233,237,239,240,241,242,243,245,246,,122,94,,,,,,236,,,',
843
- ',238,,,,,,,,232,231,,,,233,237,239,240,241,242,243,245,246,94,122,,',
844
- ',,236,,,,,238,,,,,,,,232,231,,,,233,237,239,240,241,242,243,245,246',
845
- ',122,94,,,,,,236,,,,,238,,,,,,,,232,231,,,,233,237,239,240,241,242,243',
846
- '245,246,94,122,,,,,236,,,,,238,,,,,,,,232,231,,,,233,237,239,240,241',
847
- '242,243,245,246,,122,94,,,,,,236,,,,,238,,,,,,,,232,231,,,,233,237,239',
848
- '240,241,242,243,245,246,94,122,,,,,236,,,,,238,,,,,,,,232,231,,,,233',
849
- '237,239,240,241,242,243,245,246,,122,94,,,,,,236,,,,,238,,,,,,,,232',
850
- '231,,,,233,237,239,240,241,242,243,245,246,94,,,,,,236,,,,,238,,,,,',
851
- ',,232,231,,,,233,237,239,240,241,242,243,245,246' ]
852
- racc_action_table = arr = ::Array.new(2163, nil)
853
- idx = 0
854
- clist.each do |str|
855
- str.split(',', -1).each do |i|
856
- arr[idx] = i.to_i unless i.empty?
857
- idx += 1
858
- end
859
- end
860
-
861
- clist = [
862
- '119,285,412,119,412,354,530,109,109,318,538,119,119,620,119,119,19,111',
863
- '617,361,290,119,53,119,361,625,664,291,491,285,285,436,666,698,327,491',
864
- '327,119,111,108,111,108,108,318,3,318,699,251,538,251,19,620,412,412',
865
- '290,291,53,251,251,251,251,291,251,625,664,436,617,617,109,109,666,698',
866
- '119,119,119,119,119,119,119,119,119,119,119,251,699,4,119,119,354,354',
867
- '285,285,96,251,351,251,351,530,530,290,119,119,47,47,351,351,291,351',
868
- '351,54,436,248,282,96,283,284,251,251,251,251,251,251,251,251,251,251',
869
- '251,251,251,292,351,410,251,251,410,115,251,251,251,251,275,273,275',
870
- '54,293,248,282,251,283,284,275,275,275,275,5,275,115,328,115,328,6,308',
871
- '273,292,273,351,351,351,351,351,351,351,351,351,351,351,275,7,293,351',
872
- '351,275,138,138,275,97,275,8,275,308,308,113,113,351,351,308,308,113',
873
- '113,148,148,274,303,304,305,306,97,307,314,275,275,275,275,275,275,275',
874
- '275,275,275,275,275,275,274,360,274,275,275,294,9,275,275,275,275,320',
875
- '360,320,303,304,305,306,275,307,314,320,320,320,320,98,320,319,308,308',
876
- '113,113,464,294,294,360,294,294,294,294,294,545,527,545,547,548,98,320',
877
- '191,191,320,320,320,29,29,29,546,320,546,320,10,319,205,205,549,229',
878
- '464,227,227,227,215,215,360,360,360,360,527,360,547,548,320,320,320',
879
- '320,320,320,320,320,320,320,320,320,320,11,294,294,320,320,549,229,320',
880
- '320,320,320,331,229,331,550,554,12,229,320,561,597,331,331,331,331,13',
881
- '331,614,662,663,676,229,229,229,229,229,229,229,229,677,678,696,701',
882
- '731,521,521,521,331,550,554,331,331,331,561,597,218,218,331,364,331',
883
- '364,614,662,663,676,522,522,522,364,364,14,364,364,677,678,696,701,731',
884
- '225,225,331,331,331,331,331,331,331,331,331,331,331,331,331,15,364,16',
885
- '331,331,226,226,331,331,331,331,423,423,56,487,487,518,518,331,519,519',
886
- '56,56,17,56,56,369,369,369,369,369,369,369,369,369,369,364,364,364,364',
887
- '364,364,364,364,364,364,364,56,520,520,364,364,112,112,18,112,112,112',
888
- '112,112,726,726,20,23,364,364,24,95,25,26,27,95,95,95,95,95,95,95,95',
889
- '95,95,28,56,56,56,56,56,56,56,56,56,56,56,30,31,33,56,56,34,35,261,95',
890
- '36,39,40,41,42,95,45,46,56,56,95,112,112,51,52,62,63,64,95,95,66,67',
891
- '68,95,95,95,95,95,95,95,95,95,261,70,95,95,95,95,95,95,95,95,95,95,95',
892
- '99,71,72,95,95,73,74,92,99,99,99,99,93,99,94,100,103,95,95,104,114,117',
893
- '261,261,261,261,261,261,261,261,261,261,261,118,99,121,261,261,123,124',
894
- '125,153,154,157,99,181,99,182,183,184,188,261,190,193,195,203,207,208',
895
- '209,210,211,212,213,214,217,222,223,99,99,99,99,99,99,99,99,99,99,99',
896
- '99,99,224,236,253,99,99,254,107,99,99,99,99,255,256,257,107,107,107',
897
- '107,99,107,258,259,260,262,264,278,279,280,281,287,288,289,296,297,298',
898
- '236,299,263,300,301,107,236,302,310,311,107,236,312,107,313,107,316',
899
- '107,323,236,236,324,334,338,236,236,236,236,236,236,236,236,236,341',
900
- '345,353,263,359,107,107,107,107,107,107,107,107,107,107,107,107,107',
901
- '368,379,339,107,107,381,116,107,107,107,107,395,396,409,116,116,116',
902
- '116,107,116,263,263,263,263,263,263,263,263,263,263,263,413,421,422',
903
- '263,263,339,408,425,426,116,263,339,116,116,116,427,339,433,263,116',
904
- '437,116,438,440,339,339,451,452,453,339,339,339,339,339,339,339,339',
905
- '339,454,455,408,465,116,116,116,116,116,116,116,116,116,116,116,116',
906
- '116,468,473,474,116,116,481,120,116,116,116,116,482,483,484,120,120',
907
- '120,120,116,120,408,408,408,408,408,408,408,408,408,408,408,488,494',
908
- '496,408,408,497,499,500,507,120,512,516,120,120,120,517,528,533,408',
909
- '120,535,120,189,536,552,560,562,563,569,579,189,189,582,189,189,583',
910
- '584,585,586,587,588,589,120,120,120,120,120,120,120,120,120,120,120',
911
- '120,120,590,189,591,120,120,592,593,120,120,120,120,594,595,325,596',
912
- '600,601,608,120,609,610,325,325,611,325,325,612,615,618,619,624,626',
913
- '627,628,635,636,189,189,189,189,189,189,189,189,189,189,189,325,655',
914
- '657,189,189,660,671,672,673,675,683,684,326,685,340,686,687,189,189',
915
- '688,326,326,689,326,326,690,691,692,693,694,695,703,708,732,,325,325',
916
- '325,325,325,325,325,325,325,325,325,326,,340,325,325,,,,340,,,,349,340',
917
- ',,,325,325,,,340,340,,349,,340,340,340,340,340,340,340,340,340,326,326',
918
- '326,326,326,326,326,326,326,326,326,349,,,326,326,,,,,,,,356,,,,,326',
919
- '326,,356,356,,356,356,,,,,,,,,,,349,349,349,349,349,349,349,349,349',
920
- '349,349,356,,,349,349,,,,,,,,382,,,,,349,349,,,,,,382,,,,540,,,,,,,356',
921
- '356,356,356,356,356,356,356,356,356,356,382,356,356,356,356,,382,,,',
922
- ',382,622,,,,540,356,356,382,382,,,,382,382,382,382,382,382,382,382,382',
923
- ',,382,382,382,382,382,382,382,382,382,382,382,622,,,382,382,540,540',
924
- '540,540,540,540,540,540,540,540,540,,382,382,540,540,55,,,,,,,,,,,,',
925
- '540,622,622,622,622,622,622,622,622,622,622,622,,,,622,622,216,,,,55',
926
- ',,1,,,,,1,622,,,,,1,1,1,1,1,1,1,,1,,1,1,1,,1,,216,,1,1,1,55,55,55,55',
927
- '55,55,55,55,55,1,,,,,55,55,,,1,,1,,,,,,,,55,,216,216,216,216,216,216',
928
- '216,216,216,,,1,1,,216,216,,,350,,,,201,201,,,,,216,201,201,201,201',
929
- '201,201,201,,201,,201,201,201,,201,,,,201,201,201,,,350,,,,,,350,201',
930
- ',,,350,,,,,201,,201,350,350,,,,350,350,350,350,350,350,350,350,350,',
931
- '580,580,,,,201,201,580,580,580,580,580,580,580,,580,580,580,580,580',
932
- ',580,,,,580,580,580,,,,,,,,,,580,,,,,,,,,580,,580,,,,,,,,,,,,,,,,681',
933
- '681,,,,580,580,681,681,681,681,681,681,681,,681,,681,681,681,,681,,',
934
- ',681,681,681,,,,,,,,,,681,,,,,,,,,681,0,681,,,,,0,0,0,0,0,0,0,,0,,0',
935
- '0,0,,0,,681,681,0,0,0,,,,,,,,,,0,,,,,,,,,0,91,0,,,,,91,91,91,91,91,91',
936
- '91,,91,,91,91,91,,91,,0,0,91,91,91,,,,,,,,,,91,,,,,,,,,91,510,91,,,',
937
- ',510,510,510,510,510,510,510,,510,510,510,510,510,,510,,91,91,510,510',
938
- '510,,,,,,,,,,510,,,,,358,,,,510,654,510,,,,,654,654,654,654,654,654',
939
- '654,,654,,654,654,654,,654,,510,510,654,654,654,,,358,383,,,,,358,654',
940
- ',,,358,,,,,654,,654,358,358,,,,358,358,358,358,358,358,358,358,358,',
941
- '384,383,,,,654,654,383,,,,,383,,,,,,,,383,383,,,,383,383,383,383,383',
942
- '383,383,383,383,384,385,,,,,384,,,,,384,,,,,,,,384,384,,,,384,384,384',
943
- '384,384,384,384,384,384,,386,385,,,,,,385,,,,,385,,,,,,,,385,385,,,',
944
- '385,385,385,385,385,385,385,385,385,386,387,,,,,386,,,,,386,,,,,,,,386',
945
- '386,,,,386,386,386,386,386,386,386,386,386,,388,387,,,,,,387,,,,,387',
946
- ',,,,,,,387,387,,,,387,387,387,387,387,387,387,387,387,388,389,,,,,388',
947
- ',,,,388,,,,,,,,388,388,,,,388,388,388,388,388,388,388,388,388,,390,389',
948
- ',,,,,389,,,,,389,,,,,,,,389,389,,,,389,389,389,389,389,389,389,389,389',
949
- '390,391,,,,,390,,,,,390,,,,,,,,390,390,,,,390,390,390,390,390,390,390',
950
- '390,390,,392,391,,,,,,391,,,,,391,,,,,,,,391,391,,,,391,391,391,391',
951
- '391,391,391,391,391,392,478,,,,,392,,,,,392,,,,,,,,392,392,,,,392,392',
952
- '392,392,392,392,392,392,392,,486,478,,,,,,478,,,,,478,,,,,,,,478,478',
953
- ',,,478,478,478,478,478,478,478,478,478,486,570,,,,,486,,,,,486,,,,,',
954
- ',,486,486,,,,486,486,486,486,486,486,486,486,486,,572,570,,,,,,570,',
955
- ',,,570,,,,,,,,570,570,,,,570,570,570,570,570,570,570,570,570,572,,,',
956
- ',,572,,,,,572,,,,,,,,572,572,,,,572,572,572,572,572,572,572,572,572' ]
957
- racc_action_check = arr = ::Array.new(2163, nil)
958
- idx = 0
959
- clist.each do |str|
960
- str.split(',', -1).each do |i|
961
- arr[idx] = i.to_i unless i.empty?
962
- idx += 1
963
- end
964
- end
751
+ racc_action_table = [
752
+ -199, 428, 537, 122, 541, 492, 610, 290, 291, 122,
753
+ 617, 65, 69, 672, 71, 183, 92, -139, 541, 506,
754
+ 122, 318, 122, 319, 507, 672, 701, 122, 573, 290,
755
+ 291, 122, 703, 701, 318, 483, 319, 94, 292, 282,
756
+ 293, 283, 284, 94, 76, 464, 701, 399, 616, 122,
757
+ 94, 671, 542, 543, 94, 436, 94, 65, 69, 73,
758
+ 71, 94, 55, 675, 700, 94, 542, 543, 260, 261,
759
+ 702, 727, 136, 137, 138, 144, 148, 149, 150, 151,
760
+ 152, 179, 180, 94, 728, 77, 153, 154, 358, 359,
761
+ 260, 261, -84, 53, 489, 54, 122, 611, 612, 180,
762
+ 184, 185, 118, 117, 65, 69, 180, 71, 183, 122,
763
+ 180, 122, 122, 248, 122, 122, 56, 62, 136, 137,
764
+ 138, 144, 148, 149, 150, 151, 152, 179, 180, 122,
765
+ 94, 535, 153, 154, 536, -186, 260, 261, 265, 267,
766
+ 417, -182, 122, 94, 122, 94, 94, 185, 94, 94,
767
+ 65, 69, 73, 71, 78, 55, 318, 318, 319, 319,
768
+ 79, 456, 318, 94, 319, 136, 137, 138, 144, 148,
769
+ 149, 150, 151, 152, 179, 180, 94, 80, 94, 153,
770
+ 154, 280, 335, 336, 281, -86, 53, 81, 54, 290,
771
+ 291, 290, 291, 184, 185, 306, 307, 306, 307, 338,
772
+ 337, -195, 122, 122, 122, 122, 248, 122, 122, 56,
773
+ 62, 136, 137, 138, 144, 148, 149, 150, 151, 152,
774
+ 179, 180, 318, 122, 319, 153, 154, 442, 82, 260,
775
+ 261, 265, 267, 469, 71, 122, 94, 94, 94, 94,
776
+ 185, 94, 94, 65, 69, 73, 71, -88, 55, 122,
777
+ 260, 261, 260, 261, 122, 290, 291, 94, 303, 304,
778
+ 305, 306, 307, 619, 122, 623, 122, 122, 248, 94,
779
+ 358, 359, 325, 326, 280, 102, 104, 103, 624, 53,
780
+ 623, 54, 83, 94, 368, 369, 122, 122, 94, 390,
781
+ 391, 392, 378, 349, 499, 144, 148, 149, 94, 151,
782
+ 94, 94, 56, 62, 136, 137, 138, 144, 148, 149,
783
+ 150, 151, 152, 179, 180, 84, 260, 261, 153, 154,
784
+ 94, 94, 260, 261, 265, 267, 477, 236, 122, 122,
785
+ 122, 85, 238, 185, 122, 122, 65, 69, 73, 71,
786
+ 86, 55, 122, 122, 122, 122, 237, 239, 240, 241,
787
+ 242, 243, 245, 246, 122, 122, 122, 122, 122, 390,
788
+ 391, 392, 94, 94, 94, 325, 326, 280, 94, 94,
789
+ 381, 382, 53, 508, 54, 122, 94, 94, 94, 94,
790
+ 390, 391, 392, 65, 69, 87, 71, 183, 94, 94,
791
+ 94, 94, 94, 386, 387, 56, 62, 136, 137, 138,
792
+ 144, 148, 149, 150, 151, 152, 179, 180, 88, 94,
793
+ 89, 153, 154, 388, 389, 260, 261, 265, 267, 547,
794
+ 548, 122, 571, 570, 386, 387, 185, 388, 389, 65,
795
+ 69, 90, 71, 183, 207, 208, 209, 210, 211, 212,
796
+ 213, 214, 215, 216, 136, 137, 138, 144, 148, 149,
797
+ 150, 151, 152, 179, 180, 94, 388, 389, 153, 154,
798
+ 290, 291, 91, 303, 304, 305, 306, 307, 732, 701,
799
+ 95, 96, 184, 185, 97, 122, 98, 99, 100, 207,
800
+ 208, 209, 210, 211, 212, 213, 214, 215, 216, 101,
801
+ 136, 137, 138, 144, 148, 149, 150, 151, 152, 179,
802
+ 180, 105, 106, 107, 153, 154, 108, 109, 122, 94,
803
+ 110, 111, 112, 113, 114, 236, 115, 116, 184, 185,
804
+ 238, 260, 261, 119, 120, 187, 188, 189, 232, 231,
805
+ 190, 191, 193, 233, 237, 239, 240, 241, 242, 243,
806
+ 245, 246, 94, 195, 136, 137, 138, 144, 148, 149,
807
+ 150, 151, 152, 179, 180, 122, 196, 198, 153, 154,
808
+ 199, 200, -20, 65, 69, 73, 71, 203, 55, 204,
809
+ 272, 273, 184, 185, 274, 314, 327, 136, 137, 138,
810
+ 144, 148, 149, 150, 151, 152, 179, 180, 328, 94,
811
+ 203, 153, 154, 332, 333, 334, 339, 340, 345, 53,
812
+ 347, 54, 348, 349, 350, -338, 185, -346, 360, 363,
813
+ 367, 370, 371, 372, 373, 374, 375, 376, 377, 380,
814
+ 383, 384, 56, 62, 136, 137, 138, 144, 148, 149,
815
+ 150, 151, 152, 179, 180, 385, 122, 401, 153, 154,
816
+ 402, 122, 260, 261, 265, 267, 403, 404, 405, 65,
817
+ 69, 73, 71, 185, 55, 406, 407, 408, 412, 414,
818
+ 419, 420, 421, 422, 430, 431, 432, 444, 445, 446,
819
+ 94, 447, 122, 448, 449, 94, 236, 450, 458, 459,
820
+ 280, 238, 460, 281, 461, 53, 319, 54, 471, 232,
821
+ 231, 472, 478, 479, 233, 237, 239, 240, 241, 242,
822
+ 243, 245, 246, 483, 486, 345, 94, 498, 56, 62,
823
+ 136, 137, 138, 144, 148, 149, 150, 151, 152, 179,
824
+ 180, 510, 513, 122, 153, 154, 514, 122, 260, 261,
825
+ 265, 267, 526, 527, 529, 65, 69, 73, 71, 185,
826
+ 55, 136, 137, 138, 144, 148, 149, 150, 151, 152,
827
+ 179, 180, 544, 545, 546, 153, 154, 94, 122, 527,
828
+ 549, 94, 267, 236, 325, 326, 280, 550, 238, 551,
829
+ 185, 53, 553, 54, 554, 527, 232, 231, 555, 556,
830
+ 557, 233, 237, 239, 240, 241, 242, 243, 245, 246,
831
+ 558, 559, 94, 561, 56, 62, 136, 137, 138, 144,
832
+ 148, 149, 150, 151, 152, 179, 180, 527, 345, 345,
833
+ 153, 154, 565, 122, 260, 261, 265, 267, 566, 345,
834
+ 486, 65, 69, 73, 71, 185, 55, 136, 137, 138,
835
+ 144, 148, 149, 150, 151, 152, 179, 180, 572, 574,
836
+ 345, 153, 154, 576, 336, 577, 363, 94, 380, 384,
837
+ 325, 326, 280, 385, 529, 536, 185, 53, 614, 54,
838
+ 122, 615, 631, 561, 483, 483, 634, 637, 65, 69,
839
+ 640, 71, 183, 641, 642, 643, 644, 645, 646, 647,
840
+ 56, 62, 136, 137, 138, 144, 148, 149, 150, 151,
841
+ 152, 179, 180, 648, 94, 649, 153, 154, 650, 651,
842
+ 260, 261, 265, 267, 652, 653, 122, 654, 535, 657,
843
+ 612, 185, 611, 529, 65, 69, 662, 71, 183, 663,
844
+ 667, 529, 535, 535, 676, 677, 678, 679, 680, 136,
845
+ 137, 138, 144, 148, 149, 150, 151, 152, 179, 180,
846
+ 94, 696, 529, 153, 154, 657, 535, 623, 529, 535,
847
+ 713, 714, 122, 715, 122, 716, 717, 184, 185, 718,
848
+ 65, 69, 719, 71, 183, 720, 721, 722, 723, 724,
849
+ 725, 730, 731, 734, nil, 136, 137, 138, 144, 148,
850
+ 149, 150, 151, 152, 179, 180, 94, nil, 94, 153,
851
+ 154, nil, nil, nil, 236, nil, nil, nil, 122, 238,
852
+ nil, nil, nil, 184, 185, nil, nil, 232, 231, nil,
853
+ 183, nil, 233, 237, 239, 240, 241, 242, 243, 245,
854
+ 246, 136, 137, 138, 144, 148, 149, 150, 151, 152,
855
+ 179, 180, 94, nil, nil, 153, 154, nil, nil, nil,
856
+ nil, nil, nil, nil, 122, nil, nil, nil, nil, 184,
857
+ 185, nil, 65, 69, nil, 71, 183, nil, nil, nil,
858
+ nil, nil, nil, nil, nil, nil, nil, 136, 137, 138,
859
+ 144, 148, 149, 150, 151, 152, 179, 180, 94, nil,
860
+ nil, 153, 154, nil, nil, nil, nil, nil, nil, nil,
861
+ 122, nil, nil, nil, nil, 184, 185, nil, nil, nil,
862
+ nil, nil, 183, nil, nil, nil, 122, nil, nil, nil,
863
+ nil, nil, nil, 136, 137, 138, 144, 148, 149, 150,
864
+ 151, 152, 179, 180, 94, 358, 359, 153, 154, nil,
865
+ 236, nil, nil, nil, nil, 238, 122, nil, nil, nil,
866
+ 94, 184, 185, 232, 231, nil, nil, nil, 233, 237,
867
+ 239, 240, 241, 242, 243, 245, 246, nil, nil, 136,
868
+ 137, 138, 144, 148, 149, 150, 151, 152, 179, 180,
869
+ 94, nil, nil, 153, 154, 136, 137, 138, 144, 148,
870
+ 149, 150, 151, 152, 179, 180, nil, 184, 185, 153,
871
+ 154, 122, nil, nil, nil, nil, nil, nil, nil, nil,
872
+ nil, nil, nil, nil, 185, 136, 137, 138, 144, 148,
873
+ 149, 150, 151, 152, 179, 180, nil, nil, nil, 153,
874
+ 154, 122, nil, nil, nil, 94, nil, nil, 74, nil,
875
+ nil, nil, nil, 19, 185, nil, nil, nil, nil, 32,
876
+ 51, 45, 65, 69, 73, 71, nil, 55, nil, 28,
877
+ 29, 31, nil, 34, nil, 94, nil, 36, 39, 42,
878
+ 136, 137, 138, 144, 148, 149, 150, 151, 152, 47,
879
+ nil, nil, nil, nil, 153, 154, nil, nil, 53, nil,
880
+ 54, nil, nil, nil, nil, nil, nil, nil, 155, nil,
881
+ 136, 137, 138, 144, 148, 149, 150, 151, 152, nil,
882
+ nil, 56, 62, nil, 153, 154, nil, nil, 122, nil,
883
+ nil, nil, 365, 19, nil, nil, nil, nil, 155, 32,
884
+ 51, 45, 65, 69, 73, 71, nil, 55, nil, 28,
885
+ 29, 31, nil, 34, nil, nil, nil, 36, 39, 42,
886
+ nil, nil, 94, nil, nil, nil, nil, nil, 236, 47,
887
+ nil, nil, nil, 238, nil, nil, nil, nil, 53, nil,
888
+ 54, 232, 231, nil, nil, nil, 233, 237, 239, 240,
889
+ 241, 242, 243, 245, 246, nil, 638, 579, nil, nil,
890
+ nil, 56, 62, 32, 51, 45, 65, 69, 73, 71,
891
+ nil, 55, 597, 28, 29, 31, nil, 34, nil, nil,
892
+ nil, 36, 39, 42, nil, nil, nil, nil, nil, nil,
893
+ nil, nil, nil, 47, nil, nil, nil, nil, nil, nil,
894
+ nil, nil, 53, nil, 54, nil, nil, nil, nil, nil,
895
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
896
+ 711, 579, nil, nil, nil, 56, 62, 32, 51, 45,
897
+ 65, 69, 73, 71, nil, 55, nil, 28, 29, 31,
898
+ nil, 34, nil, nil, nil, 36, 39, 42, nil, nil,
899
+ nil, nil, nil, nil, nil, nil, nil, 47, nil, nil,
900
+ nil, nil, nil, nil, nil, nil, 53, 19, 54, nil,
901
+ nil, nil, nil, 32, 51, 45, 65, 69, 73, 71,
902
+ nil, 55, nil, 28, 29, 31, nil, 34, nil, 56,
903
+ 62, 36, 39, 42, nil, nil, nil, nil, nil, nil,
904
+ nil, nil, nil, 47, nil, nil, nil, nil, nil, nil,
905
+ nil, nil, 53, 19, 54, nil, nil, nil, nil, 32,
906
+ 51, 45, 65, 69, 73, 71, nil, 55, nil, 28,
907
+ 29, 31, nil, 34, nil, 56, 62, 36, 39, 42,
908
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, 47,
909
+ nil, nil, nil, nil, nil, nil, nil, nil, 53, 579,
910
+ 54, nil, nil, nil, nil, 32, 51, 45, 65, 69,
911
+ 73, 71, nil, 55, 597, 28, 29, 31, nil, 34,
912
+ nil, 56, 62, 36, 39, 42, nil, nil, nil, nil,
913
+ nil, nil, nil, nil, nil, 47, nil, nil, nil, nil,
914
+ 122, nil, nil, nil, 53, 579, 54, nil, nil, nil,
915
+ nil, 32, 51, 45, 65, 69, 73, 71, nil, 55,
916
+ nil, 28, 29, 31, nil, 34, nil, 56, 62, 36,
917
+ 39, 42, nil, nil, 94, 122, nil, nil, nil, nil,
918
+ 236, 47, nil, nil, nil, 238, nil, nil, nil, nil,
919
+ 53, nil, 54, 232, 231, nil, nil, nil, 233, 237,
920
+ 239, 240, 241, 242, 243, 245, 246, nil, 122, 94,
921
+ nil, nil, nil, 56, 62, 236, nil, nil, nil, nil,
922
+ 238, nil, nil, nil, nil, nil, nil, nil, 232, 231,
923
+ nil, nil, nil, 233, 237, 239, 240, 241, 242, 243,
924
+ 245, 246, 94, 122, nil, nil, nil, nil, 236, nil,
925
+ nil, nil, nil, 238, nil, nil, nil, nil, nil, nil,
926
+ nil, 232, 231, nil, nil, nil, 233, 237, 239, 240,
927
+ 241, 242, 243, 245, 246, nil, 122, 94, nil, nil,
928
+ nil, nil, nil, 236, nil, nil, nil, nil, 238, nil,
929
+ nil, nil, nil, nil, nil, nil, 232, 231, nil, nil,
930
+ nil, 233, 237, 239, 240, 241, 242, 243, 245, 246,
931
+ 94, 122, nil, nil, nil, nil, 236, nil, nil, nil,
932
+ nil, 238, nil, nil, nil, nil, nil, nil, nil, 232,
933
+ 231, nil, nil, nil, 233, 237, 239, 240, 241, 242,
934
+ 243, 245, 246, nil, 122, 94, nil, nil, nil, nil,
935
+ nil, 236, nil, nil, nil, nil, 238, nil, nil, nil,
936
+ nil, nil, nil, nil, 232, 231, nil, nil, nil, 233,
937
+ 237, 239, 240, 241, 242, 243, 245, 246, 94, 122,
938
+ nil, nil, nil, nil, 236, nil, nil, nil, nil, 238,
939
+ nil, nil, nil, nil, nil, nil, nil, 232, 231, nil,
940
+ nil, nil, 233, 237, 239, 240, 241, 242, 243, 245,
941
+ 246, nil, 122, 94, nil, nil, nil, nil, nil, 236,
942
+ nil, nil, nil, nil, 238, nil, nil, nil, nil, nil,
943
+ nil, nil, 232, 231, nil, nil, nil, 233, 237, 239,
944
+ 240, 241, 242, 243, 245, 246, 94, 122, nil, nil,
945
+ nil, nil, 236, nil, nil, nil, nil, 238, nil, nil,
946
+ nil, nil, nil, nil, nil, 232, 231, nil, nil, nil,
947
+ 233, 237, 239, 240, 241, 242, 243, 245, 246, nil,
948
+ 122, 94, nil, nil, nil, nil, nil, 236, nil, nil,
949
+ nil, nil, 238, nil, nil, nil, nil, nil, nil, nil,
950
+ 232, 231, nil, nil, nil, 233, 237, 239, 240, 241,
951
+ 242, 243, 245, 246, 94, 122, nil, nil, nil, nil,
952
+ 236, nil, nil, nil, nil, 238, nil, nil, nil, nil,
953
+ nil, nil, nil, 232, 231, nil, nil, nil, 233, 237,
954
+ 239, 240, 241, 242, 243, 245, 246, nil, 122, 94,
955
+ nil, nil, nil, nil, nil, 236, nil, nil, nil, nil,
956
+ 238, nil, nil, nil, nil, nil, nil, nil, 232, 231,
957
+ nil, nil, nil, 233, 237, 239, 240, 241, 242, 243,
958
+ 245, 246, 94, 122, nil, nil, nil, nil, 236, nil,
959
+ nil, nil, nil, 238, nil, nil, nil, nil, nil, nil,
960
+ nil, 232, 231, nil, nil, nil, 233, 237, 239, 240,
961
+ 241, 242, 243, 245, 246, nil, 122, 94, nil, nil,
962
+ nil, nil, nil, 236, nil, nil, nil, nil, 238, nil,
963
+ nil, nil, nil, nil, nil, nil, 232, 231, nil, nil,
964
+ nil, 233, 237, 239, 240, 241, 242, 243, 245, 246,
965
+ 94, nil, nil, nil, nil, nil, 236, nil, nil, nil,
966
+ nil, 238, nil, nil, nil, nil, nil, nil, nil, 232,
967
+ 231, nil, nil, nil, 233, 237, 239, 240, 241, 242,
968
+ 243, 245, 246 ]
969
+
970
+ racc_action_check = [
971
+ 119, 285, 412, 119, 412, 354, 530, 109, 109, 318,
972
+ 538, 119, 119, 620, 119, 119, 19, 111, 617, 361,
973
+ 290, 119, 53, 119, 361, 625, 664, 291, 491, 285,
974
+ 285, 436, 666, 698, 327, 491, 327, 119, 111, 108,
975
+ 111, 108, 108, 318, 3, 318, 699, 251, 538, 251,
976
+ 19, 620, 412, 412, 290, 291, 53, 251, 251, 251,
977
+ 251, 291, 251, 625, 664, 436, 617, 617, 109, 109,
978
+ 666, 698, 119, 119, 119, 119, 119, 119, 119, 119,
979
+ 119, 119, 119, 251, 699, 4, 119, 119, 354, 354,
980
+ 285, 285, 96, 251, 351, 251, 351, 530, 530, 290,
981
+ 119, 119, 47, 47, 351, 351, 291, 351, 351, 54,
982
+ 436, 248, 282, 96, 283, 284, 251, 251, 251, 251,
983
+ 251, 251, 251, 251, 251, 251, 251, 251, 251, 292,
984
+ 351, 410, 251, 251, 410, 115, 251, 251, 251, 251,
985
+ 275, 273, 275, 54, 293, 248, 282, 251, 283, 284,
986
+ 275, 275, 275, 275, 5, 275, 115, 328, 115, 328,
987
+ 6, 308, 273, 292, 273, 351, 351, 351, 351, 351,
988
+ 351, 351, 351, 351, 351, 351, 275, 7, 293, 351,
989
+ 351, 275, 138, 138, 275, 97, 275, 8, 275, 308,
990
+ 308, 113, 113, 351, 351, 308, 308, 113, 113, 148,
991
+ 148, 274, 303, 304, 305, 306, 97, 307, 314, 275,
992
+ 275, 275, 275, 275, 275, 275, 275, 275, 275, 275,
993
+ 275, 275, 274, 360, 274, 275, 275, 294, 9, 275,
994
+ 275, 275, 275, 320, 360, 320, 303, 304, 305, 306,
995
+ 275, 307, 314, 320, 320, 320, 320, 98, 320, 319,
996
+ 308, 308, 113, 113, 464, 294, 294, 360, 294, 294,
997
+ 294, 294, 294, 545, 527, 545, 547, 548, 98, 320,
998
+ 191, 191, 320, 320, 320, 29, 29, 29, 546, 320,
999
+ 546, 320, 10, 319, 205, 205, 549, 229, 464, 227,
1000
+ 227, 227, 215, 215, 360, 360, 360, 360, 527, 360,
1001
+ 547, 548, 320, 320, 320, 320, 320, 320, 320, 320,
1002
+ 320, 320, 320, 320, 320, 11, 294, 294, 320, 320,
1003
+ 549, 229, 320, 320, 320, 320, 331, 229, 331, 550,
1004
+ 554, 12, 229, 320, 561, 597, 331, 331, 331, 331,
1005
+ 13, 331, 614, 662, 663, 676, 229, 229, 229, 229,
1006
+ 229, 229, 229, 229, 677, 678, 696, 701, 731, 521,
1007
+ 521, 521, 331, 550, 554, 331, 331, 331, 561, 597,
1008
+ 218, 218, 331, 364, 331, 364, 614, 662, 663, 676,
1009
+ 522, 522, 522, 364, 364, 14, 364, 364, 677, 678,
1010
+ 696, 701, 731, 225, 225, 331, 331, 331, 331, 331,
1011
+ 331, 331, 331, 331, 331, 331, 331, 331, 15, 364,
1012
+ 16, 331, 331, 226, 226, 331, 331, 331, 331, 423,
1013
+ 423, 56, 487, 487, 518, 518, 331, 519, 519, 56,
1014
+ 56, 17, 56, 56, 369, 369, 369, 369, 369, 369,
1015
+ 369, 369, 369, 369, 364, 364, 364, 364, 364, 364,
1016
+ 364, 364, 364, 364, 364, 56, 520, 520, 364, 364,
1017
+ 112, 112, 18, 112, 112, 112, 112, 112, 726, 726,
1018
+ 20, 23, 364, 364, 24, 95, 25, 26, 27, 95,
1019
+ 95, 95, 95, 95, 95, 95, 95, 95, 95, 28,
1020
+ 56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
1021
+ 56, 30, 31, 33, 56, 56, 34, 35, 261, 95,
1022
+ 36, 39, 40, 41, 42, 95, 45, 46, 56, 56,
1023
+ 95, 112, 112, 51, 52, 62, 63, 64, 95, 95,
1024
+ 66, 67, 68, 95, 95, 95, 95, 95, 95, 95,
1025
+ 95, 95, 261, 70, 95, 95, 95, 95, 95, 95,
1026
+ 95, 95, 95, 95, 95, 99, 71, 72, 95, 95,
1027
+ 73, 74, 92, 99, 99, 99, 99, 93, 99, 94,
1028
+ 100, 103, 95, 95, 104, 114, 117, 261, 261, 261,
1029
+ 261, 261, 261, 261, 261, 261, 261, 261, 118, 99,
1030
+ 121, 261, 261, 123, 124, 125, 153, 154, 157, 99,
1031
+ 181, 99, 182, 183, 184, 188, 261, 190, 193, 195,
1032
+ 203, 207, 208, 209, 210, 211, 212, 213, 214, 217,
1033
+ 222, 223, 99, 99, 99, 99, 99, 99, 99, 99,
1034
+ 99, 99, 99, 99, 99, 224, 236, 253, 99, 99,
1035
+ 254, 107, 99, 99, 99, 99, 255, 256, 257, 107,
1036
+ 107, 107, 107, 99, 107, 258, 259, 260, 262, 264,
1037
+ 278, 279, 280, 281, 287, 288, 289, 296, 297, 298,
1038
+ 236, 299, 263, 300, 301, 107, 236, 302, 310, 311,
1039
+ 107, 236, 312, 107, 313, 107, 316, 107, 323, 236,
1040
+ 236, 324, 334, 338, 236, 236, 236, 236, 236, 236,
1041
+ 236, 236, 236, 341, 345, 353, 263, 359, 107, 107,
1042
+ 107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
1043
+ 107, 368, 379, 339, 107, 107, 381, 116, 107, 107,
1044
+ 107, 107, 395, 396, 409, 116, 116, 116, 116, 107,
1045
+ 116, 263, 263, 263, 263, 263, 263, 263, 263, 263,
1046
+ 263, 263, 413, 421, 422, 263, 263, 339, 408, 425,
1047
+ 426, 116, 263, 339, 116, 116, 116, 427, 339, 433,
1048
+ 263, 116, 437, 116, 438, 440, 339, 339, 451, 452,
1049
+ 453, 339, 339, 339, 339, 339, 339, 339, 339, 339,
1050
+ 454, 455, 408, 465, 116, 116, 116, 116, 116, 116,
1051
+ 116, 116, 116, 116, 116, 116, 116, 468, 473, 474,
1052
+ 116, 116, 481, 120, 116, 116, 116, 116, 482, 483,
1053
+ 484, 120, 120, 120, 120, 116, 120, 408, 408, 408,
1054
+ 408, 408, 408, 408, 408, 408, 408, 408, 488, 494,
1055
+ 496, 408, 408, 497, 499, 500, 507, 120, 512, 516,
1056
+ 120, 120, 120, 517, 528, 533, 408, 120, 535, 120,
1057
+ 189, 536, 552, 560, 562, 563, 569, 579, 189, 189,
1058
+ 582, 189, 189, 583, 584, 585, 586, 587, 588, 589,
1059
+ 120, 120, 120, 120, 120, 120, 120, 120, 120, 120,
1060
+ 120, 120, 120, 590, 189, 591, 120, 120, 592, 593,
1061
+ 120, 120, 120, 120, 594, 595, 325, 596, 600, 601,
1062
+ 608, 120, 609, 610, 325, 325, 611, 325, 325, 612,
1063
+ 615, 618, 619, 624, 626, 627, 628, 635, 636, 189,
1064
+ 189, 189, 189, 189, 189, 189, 189, 189, 189, 189,
1065
+ 325, 655, 657, 189, 189, 660, 671, 672, 673, 675,
1066
+ 683, 684, 326, 685, 340, 686, 687, 189, 189, 688,
1067
+ 326, 326, 689, 326, 326, 690, 691, 692, 693, 694,
1068
+ 695, 703, 708, 732, nil, 325, 325, 325, 325, 325,
1069
+ 325, 325, 325, 325, 325, 325, 326, nil, 340, 325,
1070
+ 325, nil, nil, nil, 340, nil, nil, nil, 349, 340,
1071
+ nil, nil, nil, 325, 325, nil, nil, 340, 340, nil,
1072
+ 349, nil, 340, 340, 340, 340, 340, 340, 340, 340,
1073
+ 340, 326, 326, 326, 326, 326, 326, 326, 326, 326,
1074
+ 326, 326, 349, nil, nil, 326, 326, nil, nil, nil,
1075
+ nil, nil, nil, nil, 356, nil, nil, nil, nil, 326,
1076
+ 326, nil, 356, 356, nil, 356, 356, nil, nil, nil,
1077
+ nil, nil, nil, nil, nil, nil, nil, 349, 349, 349,
1078
+ 349, 349, 349, 349, 349, 349, 349, 349, 356, nil,
1079
+ nil, 349, 349, nil, nil, nil, nil, nil, nil, nil,
1080
+ 382, nil, nil, nil, nil, 349, 349, nil, nil, nil,
1081
+ nil, nil, 382, nil, nil, nil, 540, nil, nil, nil,
1082
+ nil, nil, nil, 356, 356, 356, 356, 356, 356, 356,
1083
+ 356, 356, 356, 356, 382, 356, 356, 356, 356, nil,
1084
+ 382, nil, nil, nil, nil, 382, 622, nil, nil, nil,
1085
+ 540, 356, 356, 382, 382, nil, nil, nil, 382, 382,
1086
+ 382, 382, 382, 382, 382, 382, 382, nil, nil, 382,
1087
+ 382, 382, 382, 382, 382, 382, 382, 382, 382, 382,
1088
+ 622, nil, nil, 382, 382, 540, 540, 540, 540, 540,
1089
+ 540, 540, 540, 540, 540, 540, nil, 382, 382, 540,
1090
+ 540, 55, nil, nil, nil, nil, nil, nil, nil, nil,
1091
+ nil, nil, nil, nil, 540, 622, 622, 622, 622, 622,
1092
+ 622, 622, 622, 622, 622, 622, nil, nil, nil, 622,
1093
+ 622, 216, nil, nil, nil, 55, nil, nil, 1, nil,
1094
+ nil, nil, nil, 1, 622, nil, nil, nil, nil, 1,
1095
+ 1, 1, 1, 1, 1, 1, nil, 1, nil, 1,
1096
+ 1, 1, nil, 1, nil, 216, nil, 1, 1, 1,
1097
+ 55, 55, 55, 55, 55, 55, 55, 55, 55, 1,
1098
+ nil, nil, nil, nil, 55, 55, nil, nil, 1, nil,
1099
+ 1, nil, nil, nil, nil, nil, nil, nil, 55, nil,
1100
+ 216, 216, 216, 216, 216, 216, 216, 216, 216, nil,
1101
+ nil, 1, 1, nil, 216, 216, nil, nil, 350, nil,
1102
+ nil, nil, 201, 201, nil, nil, nil, nil, 216, 201,
1103
+ 201, 201, 201, 201, 201, 201, nil, 201, nil, 201,
1104
+ 201, 201, nil, 201, nil, nil, nil, 201, 201, 201,
1105
+ nil, nil, 350, nil, nil, nil, nil, nil, 350, 201,
1106
+ nil, nil, nil, 350, nil, nil, nil, nil, 201, nil,
1107
+ 201, 350, 350, nil, nil, nil, 350, 350, 350, 350,
1108
+ 350, 350, 350, 350, 350, nil, 580, 580, nil, nil,
1109
+ nil, 201, 201, 580, 580, 580, 580, 580, 580, 580,
1110
+ nil, 580, 580, 580, 580, 580, nil, 580, nil, nil,
1111
+ nil, 580, 580, 580, nil, nil, nil, nil, nil, nil,
1112
+ nil, nil, nil, 580, nil, nil, nil, nil, nil, nil,
1113
+ nil, nil, 580, nil, 580, nil, nil, nil, nil, nil,
1114
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
1115
+ 681, 681, nil, nil, nil, 580, 580, 681, 681, 681,
1116
+ 681, 681, 681, 681, nil, 681, nil, 681, 681, 681,
1117
+ nil, 681, nil, nil, nil, 681, 681, 681, nil, nil,
1118
+ nil, nil, nil, nil, nil, nil, nil, 681, nil, nil,
1119
+ nil, nil, nil, nil, nil, nil, 681, 0, 681, nil,
1120
+ nil, nil, nil, 0, 0, 0, 0, 0, 0, 0,
1121
+ nil, 0, nil, 0, 0, 0, nil, 0, nil, 681,
1122
+ 681, 0, 0, 0, nil, nil, nil, nil, nil, nil,
1123
+ nil, nil, nil, 0, nil, nil, nil, nil, nil, nil,
1124
+ nil, nil, 0, 91, 0, nil, nil, nil, nil, 91,
1125
+ 91, 91, 91, 91, 91, 91, nil, 91, nil, 91,
1126
+ 91, 91, nil, 91, nil, 0, 0, 91, 91, 91,
1127
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, 91,
1128
+ nil, nil, nil, nil, nil, nil, nil, nil, 91, 510,
1129
+ 91, nil, nil, nil, nil, 510, 510, 510, 510, 510,
1130
+ 510, 510, nil, 510, 510, 510, 510, 510, nil, 510,
1131
+ nil, 91, 91, 510, 510, 510, nil, nil, nil, nil,
1132
+ nil, nil, nil, nil, nil, 510, nil, nil, nil, nil,
1133
+ 358, nil, nil, nil, 510, 654, 510, nil, nil, nil,
1134
+ nil, 654, 654, 654, 654, 654, 654, 654, nil, 654,
1135
+ nil, 654, 654, 654, nil, 654, nil, 510, 510, 654,
1136
+ 654, 654, nil, nil, 358, 383, nil, nil, nil, nil,
1137
+ 358, 654, nil, nil, nil, 358, nil, nil, nil, nil,
1138
+ 654, nil, 654, 358, 358, nil, nil, nil, 358, 358,
1139
+ 358, 358, 358, 358, 358, 358, 358, nil, 384, 383,
1140
+ nil, nil, nil, 654, 654, 383, nil, nil, nil, nil,
1141
+ 383, nil, nil, nil, nil, nil, nil, nil, 383, 383,
1142
+ nil, nil, nil, 383, 383, 383, 383, 383, 383, 383,
1143
+ 383, 383, 384, 385, nil, nil, nil, nil, 384, nil,
1144
+ nil, nil, nil, 384, nil, nil, nil, nil, nil, nil,
1145
+ nil, 384, 384, nil, nil, nil, 384, 384, 384, 384,
1146
+ 384, 384, 384, 384, 384, nil, 386, 385, nil, nil,
1147
+ nil, nil, nil, 385, nil, nil, nil, nil, 385, nil,
1148
+ nil, nil, nil, nil, nil, nil, 385, 385, nil, nil,
1149
+ nil, 385, 385, 385, 385, 385, 385, 385, 385, 385,
1150
+ 386, 387, nil, nil, nil, nil, 386, nil, nil, nil,
1151
+ nil, 386, nil, nil, nil, nil, nil, nil, nil, 386,
1152
+ 386, nil, nil, nil, 386, 386, 386, 386, 386, 386,
1153
+ 386, 386, 386, nil, 388, 387, nil, nil, nil, nil,
1154
+ nil, 387, nil, nil, nil, nil, 387, nil, nil, nil,
1155
+ nil, nil, nil, nil, 387, 387, nil, nil, nil, 387,
1156
+ 387, 387, 387, 387, 387, 387, 387, 387, 388, 389,
1157
+ nil, nil, nil, nil, 388, nil, nil, nil, nil, 388,
1158
+ nil, nil, nil, nil, nil, nil, nil, 388, 388, nil,
1159
+ nil, nil, 388, 388, 388, 388, 388, 388, 388, 388,
1160
+ 388, nil, 390, 389, nil, nil, nil, nil, nil, 389,
1161
+ nil, nil, nil, nil, 389, nil, nil, nil, nil, nil,
1162
+ nil, nil, 389, 389, nil, nil, nil, 389, 389, 389,
1163
+ 389, 389, 389, 389, 389, 389, 390, 391, nil, nil,
1164
+ nil, nil, 390, nil, nil, nil, nil, 390, nil, nil,
1165
+ nil, nil, nil, nil, nil, 390, 390, nil, nil, nil,
1166
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, nil,
1167
+ 392, 391, nil, nil, nil, nil, nil, 391, nil, nil,
1168
+ nil, nil, 391, nil, nil, nil, nil, nil, nil, nil,
1169
+ 391, 391, nil, nil, nil, 391, 391, 391, 391, 391,
1170
+ 391, 391, 391, 391, 392, 478, nil, nil, nil, nil,
1171
+ 392, nil, nil, nil, nil, 392, nil, nil, nil, nil,
1172
+ nil, nil, nil, 392, 392, nil, nil, nil, 392, 392,
1173
+ 392, 392, 392, 392, 392, 392, 392, nil, 486, 478,
1174
+ nil, nil, nil, nil, nil, 478, nil, nil, nil, nil,
1175
+ 478, nil, nil, nil, nil, nil, nil, nil, 478, 478,
1176
+ nil, nil, nil, 478, 478, 478, 478, 478, 478, 478,
1177
+ 478, 478, 486, 570, nil, nil, nil, nil, 486, nil,
1178
+ nil, nil, nil, 486, nil, nil, nil, nil, nil, nil,
1179
+ nil, 486, 486, nil, nil, nil, 486, 486, 486, 486,
1180
+ 486, 486, 486, 486, 486, nil, 572, 570, nil, nil,
1181
+ nil, nil, nil, 570, nil, nil, nil, nil, 570, nil,
1182
+ nil, nil, nil, nil, nil, nil, 570, 570, nil, nil,
1183
+ nil, 570, 570, 570, 570, 570, 570, 570, 570, 570,
1184
+ 572, nil, nil, nil, nil, nil, 572, nil, nil, nil,
1185
+ nil, 572, nil, nil, nil, nil, nil, nil, nil, 572,
1186
+ 572, nil, nil, nil, 572, 572, 572, 572, 572, 572,
1187
+ 572, 572, 572 ]
965
1188
 
966
1189
  racc_action_pointer = [
967
1190
  1482, 1228, nil, 42, 83, 152, 158, 175, 185, 226,
@@ -2181,7 +2404,7 @@ Racc_token_to_s_table = [
2181
2404
  "param_attribute",
2182
2405
  "_string_literal_list" ]
2183
2406
 
2184
- Racc_debug_parser = true
2407
+ Racc_debug_parser = false
2185
2408
 
2186
2409
  ##### State transition tables end #####
2187
2410
 
data/lib/ridl/scanner.rb CHANGED
@@ -9,7 +9,6 @@
9
9
  #
10
10
  # Copyright (c) Remedy IT Expertise BV
11
11
  #--------------------------------------------------------------------
12
- require 'racc/parser'
13
12
  require 'delegate'
14
13
 
15
14
  module IDL
@@ -477,7 +476,7 @@ module IDL
477
476
  @scan_comment = false
478
477
  end
479
478
  # check identifier for keywords
480
- if token && token.first == :identifier
479
+ if token&.first == :identifier
481
480
  # keyword check
482
481
  if (a = KEYWORDS.assoc(token.last.to_s)).nil?
483
482
  token = [ :identifier, Identifier.new(token.last.to_s, chk_identifier(token.last.to_s), token.last.unescaped_name) ]
data/lib/ridl/version.rb CHANGED
@@ -14,7 +14,7 @@ module IDL
14
14
 
15
15
  RIDL_VERSION_MAJOR = 2
16
16
  RIDL_VERSION_MINOR = 8
17
- RIDL_VERSION_RELEASE = 1
17
+ RIDL_VERSION_RELEASE = 2
18
18
  RIDL_VERSION = "#{RIDL_VERSION_MAJOR}.#{RIDL_VERSION_MINOR}.#{RIDL_VERSION_RELEASE}"
19
19
  RIDL_COPYRIGHT = "Copyright (c) 2007-#{Time.now.year} Remedy IT Expertise BV, The Netherlands".freeze
20
20
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ridl
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.1
4
+ version: 2.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Corino
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-08-11 00:00:00.000000000 Z
12
+ date: 2022-12-21 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: OMG v3.3 compliant native Ruby IDL compiler frontend with support for
15
15
  pluggable (and stackable) backends.
16
- email: mcorino@remedy.nl
16
+ email: info@remedy.nl
17
17
  executables: []
18
18
  extensions: []
19
19
  extra_rdoc_files:
@@ -56,7 +56,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
56
56
  requirements:
57
57
  - - ">="
58
58
  - !ruby/object:Gem::Version
59
- version: '2.0'
59
+ version: '2.5'
60
60
  required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  requirements:
62
62
  - - ">="