antlr4-runtime 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +15 -0
  3. data/.rspec +3 -0
  4. data/.travis.yml +7 -0
  5. data/CODE_OF_CONDUCT.md +74 -0
  6. data/Gemfile +4 -0
  7. data/Gemfile.lock +35 -0
  8. data/LICENSE.txt +21 -0
  9. data/README.md +65 -0
  10. data/Rakefile +6 -0
  11. data/antlr4-runtime.gemspec +30 -0
  12. data/bin/console +14 -0
  13. data/bin/setup +8 -0
  14. data/ext/rumourhash/Makefile +264 -0
  15. data/ext/rumourhash/extconf.rb +3 -0
  16. data/ext/rumourhash/rumourhash.c +59 -0
  17. data/lib/antlr4/runtime.rb +37 -0
  18. data/lib/antlr4/runtime/abstract_parse_tree_visitor.rb +43 -0
  19. data/lib/antlr4/runtime/abstract_predicate_transition.rb +11 -0
  20. data/lib/antlr4/runtime/action_transition.rb +29 -0
  21. data/lib/antlr4/runtime/ambiguity_info.rb +10 -0
  22. data/lib/antlr4/runtime/antlr_error_listener.rb +15 -0
  23. data/lib/antlr4/runtime/antlr_error_strategy.rb +24 -0
  24. data/lib/antlr4/runtime/antlr_file_stream.rb +17 -0
  25. data/lib/antlr4/runtime/antlr_input_stream.rb +6 -0
  26. data/lib/antlr4/runtime/array_2d_hash_set.rb +471 -0
  27. data/lib/antlr4/runtime/array_prediction_context.rb +76 -0
  28. data/lib/antlr4/runtime/atn.rb +100 -0
  29. data/lib/antlr4/runtime/atn_config.rb +140 -0
  30. data/lib/antlr4/runtime/atn_config_set.rb +150 -0
  31. data/lib/antlr4/runtime/atn_deserialization_options.rb +48 -0
  32. data/lib/antlr4/runtime/atn_deserializer.rb +737 -0
  33. data/lib/antlr4/runtime/atn_simulator.rb +69 -0
  34. data/lib/antlr4/runtime/atn_state.rb +118 -0
  35. data/lib/antlr4/runtime/atn_type.rb +8 -0
  36. data/lib/antlr4/runtime/atom_transition.rb +27 -0
  37. data/lib/antlr4/runtime/bail_error_strategy.rb +31 -0
  38. data/lib/antlr4/runtime/base_error_listener.rb +18 -0
  39. data/lib/antlr4/runtime/basic_block_start_state.rb +12 -0
  40. data/lib/antlr4/runtime/basic_state.rb +11 -0
  41. data/lib/antlr4/runtime/bit_set.rb +54 -0
  42. data/lib/antlr4/runtime/block_end_state.rb +15 -0
  43. data/lib/antlr4/runtime/block_start_state.rb +12 -0
  44. data/lib/antlr4/runtime/buffered_token_stream.rb +335 -0
  45. data/lib/antlr4/runtime/char_stream.rb +6 -0
  46. data/lib/antlr4/runtime/char_streams.rb +12 -0
  47. data/lib/antlr4/runtime/chunk.rb +4 -0
  48. data/lib/antlr4/runtime/code_point_char_stream.rb +83 -0
  49. data/lib/antlr4/runtime/common_token.rb +125 -0
  50. data/lib/antlr4/runtime/common_token_factory.rb +30 -0
  51. data/lib/antlr4/runtime/common_token_stream.rb +63 -0
  52. data/lib/antlr4/runtime/console_error_listener.rb +12 -0
  53. data/lib/antlr4/runtime/context_sensitivity_info.rb +7 -0
  54. data/lib/antlr4/runtime/decision_event_info.rb +19 -0
  55. data/lib/antlr4/runtime/decision_info.rb +36 -0
  56. data/lib/antlr4/runtime/decision_state.rb +15 -0
  57. data/lib/antlr4/runtime/default_error_strategy.rb +314 -0
  58. data/lib/antlr4/runtime/dfa.rb +97 -0
  59. data/lib/antlr4/runtime/dfa_serializer.rb +62 -0
  60. data/lib/antlr4/runtime/dfa_state.rb +109 -0
  61. data/lib/antlr4/runtime/diagnostic_error_listener.rb +58 -0
  62. data/lib/antlr4/runtime/double_key_map.rb +49 -0
  63. data/lib/antlr4/runtime/empty_prediction_context.rb +35 -0
  64. data/lib/antlr4/runtime/epsilon_transition.rb +27 -0
  65. data/lib/antlr4/runtime/equality_comparator.rb +4 -0
  66. data/lib/antlr4/runtime/error_info.rb +7 -0
  67. data/lib/antlr4/runtime/error_node.rb +5 -0
  68. data/lib/antlr4/runtime/error_node_impl.rb +12 -0
  69. data/lib/antlr4/runtime/failed_predicate_exception.rb +33 -0
  70. data/lib/antlr4/runtime/flexible_hash_map.rb +232 -0
  71. data/lib/antlr4/runtime/input_mismatch_exception.rb +20 -0
  72. data/lib/antlr4/runtime/int_stream.rb +31 -0
  73. data/lib/antlr4/runtime/integer.rb +14 -0
  74. data/lib/antlr4/runtime/interval.rb +111 -0
  75. data/lib/antlr4/runtime/interval_set.rb +540 -0
  76. data/lib/antlr4/runtime/lexer.rb +257 -0
  77. data/lib/antlr4/runtime/lexer_action.rb +12 -0
  78. data/lib/antlr4/runtime/lexer_action_executor.rb +75 -0
  79. data/lib/antlr4/runtime/lexer_action_type.rb +12 -0
  80. data/lib/antlr4/runtime/lexer_atn_config.rb +50 -0
  81. data/lib/antlr4/runtime/lexer_atn_simulator.rb +522 -0
  82. data/lib/antlr4/runtime/lexer_channel_action.rb +51 -0
  83. data/lib/antlr4/runtime/lexer_custom_action.rb +49 -0
  84. data/lib/antlr4/runtime/lexer_dfa_serializer.rb +12 -0
  85. data/lib/antlr4/runtime/lexer_indexed_custom_action.rb +49 -0
  86. data/lib/antlr4/runtime/lexer_mode_action.rb +51 -0
  87. data/lib/antlr4/runtime/lexer_more_action.rb +41 -0
  88. data/lib/antlr4/runtime/lexer_no_viable_alt_exception.rb +4 -0
  89. data/lib/antlr4/runtime/lexer_pop_mode_action.rb +41 -0
  90. data/lib/antlr4/runtime/lexer_push_mode_action.rb +51 -0
  91. data/lib/antlr4/runtime/lexer_skip_action.rb +43 -0
  92. data/lib/antlr4/runtime/lexer_type_action.rb +51 -0
  93. data/lib/antlr4/runtime/ll1_analyzer.rb +133 -0
  94. data/lib/antlr4/runtime/lookahead_event_info.rb +10 -0
  95. data/lib/antlr4/runtime/loop_end_state.rb +15 -0
  96. data/lib/antlr4/runtime/murmur_hash.rb +99 -0
  97. data/lib/antlr4/runtime/no_viable_alt_exception.rb +7 -0
  98. data/lib/antlr4/runtime/not_set_transition.rb +20 -0
  99. data/lib/antlr4/runtime/object_equality_comparator.rb +18 -0
  100. data/lib/antlr4/runtime/ordered_atn_config_set.rb +15 -0
  101. data/lib/antlr4/runtime/parse_cancellation_exception.rb +5 -0
  102. data/lib/antlr4/runtime/parse_tree.rb +7 -0
  103. data/lib/antlr4/runtime/parse_tree_listener.rb +4 -0
  104. data/lib/antlr4/runtime/parse_tree_visitor.rb +4 -0
  105. data/lib/antlr4/runtime/parser.rb +522 -0
  106. data/lib/antlr4/runtime/parser_atn_simulator.rb +1171 -0
  107. data/lib/antlr4/runtime/parser_rule_context.rb +186 -0
  108. data/lib/antlr4/runtime/plus_block_start_state.rb +11 -0
  109. data/lib/antlr4/runtime/plus_loopback_state.rb +12 -0
  110. data/lib/antlr4/runtime/precedence_predicate_transition.rb +31 -0
  111. data/lib/antlr4/runtime/predicate.rb +6 -0
  112. data/lib/antlr4/runtime/predicate_eval_info.rb +16 -0
  113. data/lib/antlr4/runtime/predicate_transition.rb +35 -0
  114. data/lib/antlr4/runtime/prediction_context.rb +103 -0
  115. data/lib/antlr4/runtime/prediction_context_cache.rb +28 -0
  116. data/lib/antlr4/runtime/prediction_context_utils.rb +407 -0
  117. data/lib/antlr4/runtime/prediction_mode.rb +213 -0
  118. data/lib/antlr4/runtime/profiling_atn_simulator.rb +149 -0
  119. data/lib/antlr4/runtime/proxy_error_listener.rb +33 -0
  120. data/lib/antlr4/runtime/range_transition.rb +29 -0
  121. data/lib/antlr4/runtime/recognition_exception.rb +17 -0
  122. data/lib/antlr4/runtime/recognizer.rb +136 -0
  123. data/lib/antlr4/runtime/rule_context.rb +131 -0
  124. data/lib/antlr4/runtime/rule_context_with_alt_num.rb +11 -0
  125. data/lib/antlr4/runtime/rule_node.rb +8 -0
  126. data/lib/antlr4/runtime/rule_start_state.rb +17 -0
  127. data/lib/antlr4/runtime/rule_stop_state.rb +12 -0
  128. data/lib/antlr4/runtime/rule_tag_token.rb +64 -0
  129. data/lib/antlr4/runtime/rule_transition.rb +29 -0
  130. data/lib/antlr4/runtime/semantic_context.rb +313 -0
  131. data/lib/antlr4/runtime/set_transition.rb +29 -0
  132. data/lib/antlr4/runtime/singleton_prediction_context.rb +56 -0
  133. data/lib/antlr4/runtime/star_block_start_state.rb +12 -0
  134. data/lib/antlr4/runtime/star_loop_entry_state.rb +17 -0
  135. data/lib/antlr4/runtime/star_loopback_state.rb +16 -0
  136. data/lib/antlr4/runtime/syntax_tree.rb +6 -0
  137. data/lib/antlr4/runtime/tag_chunk.rb +22 -0
  138. data/lib/antlr4/runtime/terminal_node.rb +5 -0
  139. data/lib/antlr4/runtime/terminal_node_impl.rb +50 -0
  140. data/lib/antlr4/runtime/text_chunk.rb +16 -0
  141. data/lib/antlr4/runtime/token.rb +13 -0
  142. data/lib/antlr4/runtime/token_stream.rb +13 -0
  143. data/lib/antlr4/runtime/token_tag_token.rb +22 -0
  144. data/lib/antlr4/runtime/tokens_start_state.rb +14 -0
  145. data/lib/antlr4/runtime/transition.rb +51 -0
  146. data/lib/antlr4/runtime/tree.rb +4 -0
  147. data/lib/antlr4/runtime/trees.rb +195 -0
  148. data/lib/antlr4/runtime/triple.rb +40 -0
  149. data/lib/antlr4/runtime/utils.rb +117 -0
  150. data/lib/antlr4/runtime/uuid.rb +46 -0
  151. data/lib/antlr4/runtime/version.rb +5 -0
  152. data/lib/antlr4/runtime/vocabulary.rb +12 -0
  153. data/lib/antlr4/runtime/vocabulary_impl.rb +82 -0
  154. data/lib/antlr4/runtime/wildcard_transition.rb +20 -0
  155. data/lib/antlr4/runtime/writable_token.rb +7 -0
  156. metadata +243 -0
@@ -0,0 +1,40 @@
1
+ module Antlr4::Runtime
2
+ class Triple
3
+ attr_accessor :a
4
+ attr_accessor :b
5
+ attr_accessor :c
6
+
7
+ def initialize(a, b, c)
8
+ @a = a
9
+ @b = b
10
+ @c = c
11
+ end
12
+
13
+ def eql?(obj)
14
+ if obj == self
15
+ return true
16
+ else
17
+ return false unless obj.is_a? Triple
18
+ end
19
+
20
+ ObjectEqualityComparator.instance.eql?(a, obj.a) && ObjectEqualityComparator.instance.eql?(b, obj.b) && ObjectEqualityComparator.instance.eql?(c, obj.c)
21
+ end
22
+
23
+ def hash
24
+ hash_code = MurmurHash.hash_objs([@a, @b, @c])
25
+
26
+ if !@_hash.nil?
27
+ if hash_code == @_hash
28
+ puts 'Same hash_code for Triple'
29
+ else
30
+ puts 'Different hash_code for Triple'
31
+ end
32
+ end
33
+ @_hash = hash_code
34
+ end
35
+
36
+ def to_s
37
+ '(' << @a.to_s << ',' << @b.to_s << ', ' << @c.to_s << ')'
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,117 @@
1
+ module Antlr4::Runtime
2
+ class Utils
3
+ def self.num_non_nil(data)
4
+ n = 0
5
+ return n if data.nil?
6
+
7
+ i = 0
8
+ while i < data.length
9
+ o = datap[i]
10
+ n += 1 unless o.nil?
11
+ i += 1
12
+ end
13
+ n
14
+ end
15
+
16
+ def self.remove_all_elements(data, value)
17
+ return if data.nil?
18
+
19
+ data.remove(value) while data.contains(value)
20
+ end
21
+
22
+ def self.escape_whitespace(s, escape_spaces)
23
+ buf = ''
24
+ s.each_char do |c|
25
+ buf << if c == ' ' && escape_spaces
26
+ '\u00B7'
27
+ elsif c == '\t'
28
+ '\\t'
29
+ elsif c == '\n'
30
+ '\\n'
31
+ elsif c == '\r'
32
+ '\\r'
33
+ else
34
+ c
35
+ end
36
+ end
37
+ buf
38
+ end
39
+
40
+ def self.write_file(file_name, content, _encoding = nil)
41
+ f = File.new(file_name, 'w')
42
+
43
+ begin
44
+ f << content
45
+ ensure
46
+ f.close
47
+ end
48
+ end
49
+
50
+ def self.read_file(file_name, _encoding = nil)
51
+ f = File.new(file_name, 'r')
52
+ size = File.size(file_name)
53
+
54
+ begin
55
+ data = Array.new(size)
56
+ f.read(nil, data)
57
+ ensure
58
+ f.close
59
+ end
60
+
61
+ data
62
+ end
63
+
64
+ def self.expand_tabs(s, tab_size)
65
+ return nil if s.nil?
66
+
67
+ buf = ''
68
+ col = 0
69
+ i = 0
70
+ while i < s.length
71
+ c = s[i]
72
+ case c
73
+ when '\n'
74
+ col = 0
75
+ buf << c
76
+ when '\t'
77
+ n = tab_size - col % tab_size
78
+ col += n
79
+ buf << spaces(n)
80
+ else
81
+ col += 1
82
+ buf << c
83
+ end
84
+ i += 1
85
+ end
86
+ buf
87
+ end
88
+
89
+ def self.spaces(n)
90
+ sequence(n, ' ')
91
+ end
92
+
93
+ def self.newlines(n)
94
+ sequence(n, "\n")
95
+ end
96
+
97
+ def self.sequence(n, s)
98
+ buf = ''
99
+ sp = 1
100
+ while sp <= n
101
+ buf << s
102
+ sp += 1
103
+ end
104
+ buf
105
+ end
106
+
107
+ def self.count(s, x)
108
+ n = 0
109
+ i = 0
110
+ while i < s.length
111
+ n += 1 if s[i] == x
112
+ i += 1
113
+ end
114
+ n
115
+ end
116
+ end
117
+ end
@@ -0,0 +1,46 @@
1
+ module Antlr4::Runtime
2
+ class UUID
3
+ attr_reader :upper
4
+ attr_reader :lower
5
+
6
+ def initialize(upper, lower)
7
+ @lower = lower
8
+ @upper = upper
9
+ end
10
+
11
+ def to_s
12
+ @upper.to_s + @lower.to_s
13
+ end
14
+
15
+ def ==(other)
16
+ if !other.nil?
17
+ @lower == other.lower && @upper == other.upper
18
+ else
19
+ false
20
+ end
21
+ end
22
+
23
+ def self.from_string(name)
24
+ components = name.split('-')
25
+ if components.length != 5
26
+ raise IllegalArgumentException, 'Invalid UUID string: ' + name
27
+ end
28
+
29
+ upper = decode(components[0])
30
+ upper = upper << 16
31
+ upper |= decode(components[1])
32
+ upper = upper << 16
33
+ upper |= decode(components[2])
34
+
35
+ lower = decode(components[3])
36
+ lower = lower << 48
37
+ lower |= decode(components[4])
38
+
39
+ UUID.new(upper, lower)
40
+ end
41
+
42
+ def self.decode(hex_string)
43
+ hex_string.to_i(16)
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,5 @@
1
+ module Antlr4
2
+ module Runtime
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
@@ -0,0 +1,12 @@
1
+ module Antlr4::Runtime
2
+ class Vocabulary
3
+ def max_token_type
4
+ end
5
+
6
+ def symbolic_name(_token_type)
7
+ end
8
+
9
+ def display_name(_token_type)
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,82 @@
1
+ require 'antlr4/runtime/vocabulary'
2
+
3
+ module Antlr4::Runtime
4
+
5
+ class VocabularyImpl < Vocabulary
6
+ @@empty_names = []
7
+
8
+ def initialize(literal_names, symbolic_names, display_names = nil)
9
+ @literal_names = !literal_names.nil? ? literal_names : @@empty_names
10
+ @symbolic_names = !symbolic_names.nil? ? symbolic_names : @@empty_names
11
+ @display_names = !display_names.nil? ? display_names : @@empty_names
12
+ # See note here on -1 part: https:#github.com/antlr/antlr4/pull/1146
13
+ @max_token_type = [@display_names.length, @literal_names.length, @symbolic_names.length].max - 1
14
+ end
15
+
16
+ EMPTY_VOCABULARY = VocabularyImpl.new(@@empty_names, @@empty_names, @@empty_names)
17
+
18
+ def self.from_token_names(token_names)
19
+ return EMPTY_VOCABULARY if token_names.nil? || token_names.empty?
20
+
21
+ @literal_names = Array.new(token_names)
22
+ @symbolic_names = Array.new(token_names)
23
+ i = 0
24
+ while i < token_names.length
25
+ token_name = token_names[i]
26
+ if token_name.nil?
27
+ i += 1
28
+ next
29
+ end
30
+
31
+ unless token_name.empty?
32
+ first_char = token_name[0]
33
+ if first_char == '\''
34
+ @symbolic_names[i] = nil
35
+ i += 1
36
+ next
37
+ end
38
+ end
39
+
40
+ # wasn't a literal or symbolic name
41
+ @literal_names[i] = nil
42
+ @symbolic_names[i] = nil
43
+ i += 1
44
+ end
45
+
46
+ VocabularyImpl.new(@literal_names, @symbolic_names, token_names)
47
+ end
48
+
49
+ def literal_name(token_type)
50
+ if token_type >= 0 && token_type < @literal_names.length
51
+ return @literal_names[token_type]
52
+ end
53
+
54
+ nil
55
+ end
56
+
57
+ def symbolic_name(token_type)
58
+ if token_type >= 0 && token_type < @symbolic_names.length
59
+ return @symbolic_names[token_type]
60
+ end
61
+
62
+ return 'EOF' if token_type == Token::EOF
63
+
64
+ token_type.to_s
65
+ end
66
+
67
+ def display_name(token_type)
68
+ if token_type >= 0 && token_type < @display_names.length
69
+ disp_name = @display_names[token_type]
70
+ return disp_name unless disp_name.nil?
71
+ end
72
+
73
+ lit_name = literal_name(token_type)
74
+ return lit_name unless lit_name.nil?
75
+
76
+ sym_name = symbolic_name(token_type)
77
+ return sym_name unless sym_name.nil?
78
+
79
+ Integer.to_s(token_type)
80
+ end
81
+ end
82
+ end
@@ -0,0 +1,20 @@
1
+ module Antlr4::Runtime
2
+
3
+ class WildcardTransition < Transition
4
+ def initialize(target)
5
+ super(target)
6
+ end
7
+
8
+ def serialization_type
9
+ WILDCARD
10
+ end
11
+
12
+ def matches(symbol, min_vocab_symbol, max_vocab_symbol)
13
+ symbol >= min_vocab_symbol && symbol <= max_vocab_symbol
14
+ end
15
+
16
+ def to_s
17
+ '.'
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,7 @@
1
+ require 'antlr4/runtime/token'
2
+
3
+ module Antlr4::Runtime
4
+
5
+ class WritableToken < Token
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,243 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: antlr4-runtime
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Tony Walmsley
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-05-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ description: This gem implements a runtime for ANTLR4 in Ruby for lexers and parsers
56
+ generated using the Ruby language target.
57
+ email:
58
+ - tony@aosd.co.uk
59
+ executables: []
60
+ extensions:
61
+ - ext/rumourhash/extconf.rb
62
+ extra_rdoc_files: []
63
+ files:
64
+ - ".gitignore"
65
+ - ".rspec"
66
+ - ".travis.yml"
67
+ - CODE_OF_CONDUCT.md
68
+ - Gemfile
69
+ - Gemfile.lock
70
+ - LICENSE.txt
71
+ - README.md
72
+ - Rakefile
73
+ - antlr4-runtime.gemspec
74
+ - bin/console
75
+ - bin/setup
76
+ - ext/rumourhash/Makefile
77
+ - ext/rumourhash/extconf.rb
78
+ - ext/rumourhash/rumourhash.c
79
+ - lib/antlr4/runtime.rb
80
+ - lib/antlr4/runtime/abstract_parse_tree_visitor.rb
81
+ - lib/antlr4/runtime/abstract_predicate_transition.rb
82
+ - lib/antlr4/runtime/action_transition.rb
83
+ - lib/antlr4/runtime/ambiguity_info.rb
84
+ - lib/antlr4/runtime/antlr_error_listener.rb
85
+ - lib/antlr4/runtime/antlr_error_strategy.rb
86
+ - lib/antlr4/runtime/antlr_file_stream.rb
87
+ - lib/antlr4/runtime/antlr_input_stream.rb
88
+ - lib/antlr4/runtime/array_2d_hash_set.rb
89
+ - lib/antlr4/runtime/array_prediction_context.rb
90
+ - lib/antlr4/runtime/atn.rb
91
+ - lib/antlr4/runtime/atn_config.rb
92
+ - lib/antlr4/runtime/atn_config_set.rb
93
+ - lib/antlr4/runtime/atn_deserialization_options.rb
94
+ - lib/antlr4/runtime/atn_deserializer.rb
95
+ - lib/antlr4/runtime/atn_simulator.rb
96
+ - lib/antlr4/runtime/atn_state.rb
97
+ - lib/antlr4/runtime/atn_type.rb
98
+ - lib/antlr4/runtime/atom_transition.rb
99
+ - lib/antlr4/runtime/bail_error_strategy.rb
100
+ - lib/antlr4/runtime/base_error_listener.rb
101
+ - lib/antlr4/runtime/basic_block_start_state.rb
102
+ - lib/antlr4/runtime/basic_state.rb
103
+ - lib/antlr4/runtime/bit_set.rb
104
+ - lib/antlr4/runtime/block_end_state.rb
105
+ - lib/antlr4/runtime/block_start_state.rb
106
+ - lib/antlr4/runtime/buffered_token_stream.rb
107
+ - lib/antlr4/runtime/char_stream.rb
108
+ - lib/antlr4/runtime/char_streams.rb
109
+ - lib/antlr4/runtime/chunk.rb
110
+ - lib/antlr4/runtime/code_point_char_stream.rb
111
+ - lib/antlr4/runtime/common_token.rb
112
+ - lib/antlr4/runtime/common_token_factory.rb
113
+ - lib/antlr4/runtime/common_token_stream.rb
114
+ - lib/antlr4/runtime/console_error_listener.rb
115
+ - lib/antlr4/runtime/context_sensitivity_info.rb
116
+ - lib/antlr4/runtime/decision_event_info.rb
117
+ - lib/antlr4/runtime/decision_info.rb
118
+ - lib/antlr4/runtime/decision_state.rb
119
+ - lib/antlr4/runtime/default_error_strategy.rb
120
+ - lib/antlr4/runtime/dfa.rb
121
+ - lib/antlr4/runtime/dfa_serializer.rb
122
+ - lib/antlr4/runtime/dfa_state.rb
123
+ - lib/antlr4/runtime/diagnostic_error_listener.rb
124
+ - lib/antlr4/runtime/double_key_map.rb
125
+ - lib/antlr4/runtime/empty_prediction_context.rb
126
+ - lib/antlr4/runtime/epsilon_transition.rb
127
+ - lib/antlr4/runtime/equality_comparator.rb
128
+ - lib/antlr4/runtime/error_info.rb
129
+ - lib/antlr4/runtime/error_node.rb
130
+ - lib/antlr4/runtime/error_node_impl.rb
131
+ - lib/antlr4/runtime/failed_predicate_exception.rb
132
+ - lib/antlr4/runtime/flexible_hash_map.rb
133
+ - lib/antlr4/runtime/input_mismatch_exception.rb
134
+ - lib/antlr4/runtime/int_stream.rb
135
+ - lib/antlr4/runtime/integer.rb
136
+ - lib/antlr4/runtime/interval.rb
137
+ - lib/antlr4/runtime/interval_set.rb
138
+ - lib/antlr4/runtime/lexer.rb
139
+ - lib/antlr4/runtime/lexer_action.rb
140
+ - lib/antlr4/runtime/lexer_action_executor.rb
141
+ - lib/antlr4/runtime/lexer_action_type.rb
142
+ - lib/antlr4/runtime/lexer_atn_config.rb
143
+ - lib/antlr4/runtime/lexer_atn_simulator.rb
144
+ - lib/antlr4/runtime/lexer_channel_action.rb
145
+ - lib/antlr4/runtime/lexer_custom_action.rb
146
+ - lib/antlr4/runtime/lexer_dfa_serializer.rb
147
+ - lib/antlr4/runtime/lexer_indexed_custom_action.rb
148
+ - lib/antlr4/runtime/lexer_mode_action.rb
149
+ - lib/antlr4/runtime/lexer_more_action.rb
150
+ - lib/antlr4/runtime/lexer_no_viable_alt_exception.rb
151
+ - lib/antlr4/runtime/lexer_pop_mode_action.rb
152
+ - lib/antlr4/runtime/lexer_push_mode_action.rb
153
+ - lib/antlr4/runtime/lexer_skip_action.rb
154
+ - lib/antlr4/runtime/lexer_type_action.rb
155
+ - lib/antlr4/runtime/ll1_analyzer.rb
156
+ - lib/antlr4/runtime/lookahead_event_info.rb
157
+ - lib/antlr4/runtime/loop_end_state.rb
158
+ - lib/antlr4/runtime/murmur_hash.rb
159
+ - lib/antlr4/runtime/no_viable_alt_exception.rb
160
+ - lib/antlr4/runtime/not_set_transition.rb
161
+ - lib/antlr4/runtime/object_equality_comparator.rb
162
+ - lib/antlr4/runtime/ordered_atn_config_set.rb
163
+ - lib/antlr4/runtime/parse_cancellation_exception.rb
164
+ - lib/antlr4/runtime/parse_tree.rb
165
+ - lib/antlr4/runtime/parse_tree_listener.rb
166
+ - lib/antlr4/runtime/parse_tree_visitor.rb
167
+ - lib/antlr4/runtime/parser.rb
168
+ - lib/antlr4/runtime/parser_atn_simulator.rb
169
+ - lib/antlr4/runtime/parser_rule_context.rb
170
+ - lib/antlr4/runtime/plus_block_start_state.rb
171
+ - lib/antlr4/runtime/plus_loopback_state.rb
172
+ - lib/antlr4/runtime/precedence_predicate_transition.rb
173
+ - lib/antlr4/runtime/predicate.rb
174
+ - lib/antlr4/runtime/predicate_eval_info.rb
175
+ - lib/antlr4/runtime/predicate_transition.rb
176
+ - lib/antlr4/runtime/prediction_context.rb
177
+ - lib/antlr4/runtime/prediction_context_cache.rb
178
+ - lib/antlr4/runtime/prediction_context_utils.rb
179
+ - lib/antlr4/runtime/prediction_mode.rb
180
+ - lib/antlr4/runtime/profiling_atn_simulator.rb
181
+ - lib/antlr4/runtime/proxy_error_listener.rb
182
+ - lib/antlr4/runtime/range_transition.rb
183
+ - lib/antlr4/runtime/recognition_exception.rb
184
+ - lib/antlr4/runtime/recognizer.rb
185
+ - lib/antlr4/runtime/rule_context.rb
186
+ - lib/antlr4/runtime/rule_context_with_alt_num.rb
187
+ - lib/antlr4/runtime/rule_node.rb
188
+ - lib/antlr4/runtime/rule_start_state.rb
189
+ - lib/antlr4/runtime/rule_stop_state.rb
190
+ - lib/antlr4/runtime/rule_tag_token.rb
191
+ - lib/antlr4/runtime/rule_transition.rb
192
+ - lib/antlr4/runtime/semantic_context.rb
193
+ - lib/antlr4/runtime/set_transition.rb
194
+ - lib/antlr4/runtime/singleton_prediction_context.rb
195
+ - lib/antlr4/runtime/star_block_start_state.rb
196
+ - lib/antlr4/runtime/star_loop_entry_state.rb
197
+ - lib/antlr4/runtime/star_loopback_state.rb
198
+ - lib/antlr4/runtime/syntax_tree.rb
199
+ - lib/antlr4/runtime/tag_chunk.rb
200
+ - lib/antlr4/runtime/terminal_node.rb
201
+ - lib/antlr4/runtime/terminal_node_impl.rb
202
+ - lib/antlr4/runtime/text_chunk.rb
203
+ - lib/antlr4/runtime/token.rb
204
+ - lib/antlr4/runtime/token_stream.rb
205
+ - lib/antlr4/runtime/token_tag_token.rb
206
+ - lib/antlr4/runtime/tokens_start_state.rb
207
+ - lib/antlr4/runtime/transition.rb
208
+ - lib/antlr4/runtime/tree.rb
209
+ - lib/antlr4/runtime/trees.rb
210
+ - lib/antlr4/runtime/triple.rb
211
+ - lib/antlr4/runtime/utils.rb
212
+ - lib/antlr4/runtime/uuid.rb
213
+ - lib/antlr4/runtime/version.rb
214
+ - lib/antlr4/runtime/vocabulary.rb
215
+ - lib/antlr4/runtime/vocabulary_impl.rb
216
+ - lib/antlr4/runtime/wildcard_transition.rb
217
+ - lib/antlr4/runtime/writable_token.rb
218
+ homepage: https://github.com/MODLanguage/antlr4-ruby-runtime
219
+ licenses:
220
+ - MIT
221
+ metadata: {}
222
+ post_install_message:
223
+ rdoc_options: []
224
+ require_paths:
225
+ - lib
226
+ - ext
227
+ required_ruby_version: !ruby/object:Gem::Requirement
228
+ requirements:
229
+ - - ">="
230
+ - !ruby/object:Gem::Version
231
+ version: '0'
232
+ required_rubygems_version: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
+ requirements: []
238
+ rubyforge_project:
239
+ rubygems_version: 2.7.9
240
+ signing_key:
241
+ specification_version: 4
242
+ summary: ANTLR4 Runtime for Ruby language target lexers and parsers.
243
+ test_files: []