antlr4-runtime 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +15 -0
- data/.rspec +3 -0
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +35 -0
- data/LICENSE.txt +21 -0
- data/README.md +65 -0
- data/Rakefile +6 -0
- data/antlr4-runtime.gemspec +30 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/ext/rumourhash/Makefile +264 -0
- data/ext/rumourhash/extconf.rb +3 -0
- data/ext/rumourhash/rumourhash.c +59 -0
- data/lib/antlr4/runtime.rb +37 -0
- data/lib/antlr4/runtime/abstract_parse_tree_visitor.rb +43 -0
- data/lib/antlr4/runtime/abstract_predicate_transition.rb +11 -0
- data/lib/antlr4/runtime/action_transition.rb +29 -0
- data/lib/antlr4/runtime/ambiguity_info.rb +10 -0
- data/lib/antlr4/runtime/antlr_error_listener.rb +15 -0
- data/lib/antlr4/runtime/antlr_error_strategy.rb +24 -0
- data/lib/antlr4/runtime/antlr_file_stream.rb +17 -0
- data/lib/antlr4/runtime/antlr_input_stream.rb +6 -0
- data/lib/antlr4/runtime/array_2d_hash_set.rb +471 -0
- data/lib/antlr4/runtime/array_prediction_context.rb +76 -0
- data/lib/antlr4/runtime/atn.rb +100 -0
- data/lib/antlr4/runtime/atn_config.rb +140 -0
- data/lib/antlr4/runtime/atn_config_set.rb +150 -0
- data/lib/antlr4/runtime/atn_deserialization_options.rb +48 -0
- data/lib/antlr4/runtime/atn_deserializer.rb +737 -0
- data/lib/antlr4/runtime/atn_simulator.rb +69 -0
- data/lib/antlr4/runtime/atn_state.rb +118 -0
- data/lib/antlr4/runtime/atn_type.rb +8 -0
- data/lib/antlr4/runtime/atom_transition.rb +27 -0
- data/lib/antlr4/runtime/bail_error_strategy.rb +31 -0
- data/lib/antlr4/runtime/base_error_listener.rb +18 -0
- data/lib/antlr4/runtime/basic_block_start_state.rb +12 -0
- data/lib/antlr4/runtime/basic_state.rb +11 -0
- data/lib/antlr4/runtime/bit_set.rb +54 -0
- data/lib/antlr4/runtime/block_end_state.rb +15 -0
- data/lib/antlr4/runtime/block_start_state.rb +12 -0
- data/lib/antlr4/runtime/buffered_token_stream.rb +335 -0
- data/lib/antlr4/runtime/char_stream.rb +6 -0
- data/lib/antlr4/runtime/char_streams.rb +12 -0
- data/lib/antlr4/runtime/chunk.rb +4 -0
- data/lib/antlr4/runtime/code_point_char_stream.rb +83 -0
- data/lib/antlr4/runtime/common_token.rb +125 -0
- data/lib/antlr4/runtime/common_token_factory.rb +30 -0
- data/lib/antlr4/runtime/common_token_stream.rb +63 -0
- data/lib/antlr4/runtime/console_error_listener.rb +12 -0
- data/lib/antlr4/runtime/context_sensitivity_info.rb +7 -0
- data/lib/antlr4/runtime/decision_event_info.rb +19 -0
- data/lib/antlr4/runtime/decision_info.rb +36 -0
- data/lib/antlr4/runtime/decision_state.rb +15 -0
- data/lib/antlr4/runtime/default_error_strategy.rb +314 -0
- data/lib/antlr4/runtime/dfa.rb +97 -0
- data/lib/antlr4/runtime/dfa_serializer.rb +62 -0
- data/lib/antlr4/runtime/dfa_state.rb +109 -0
- data/lib/antlr4/runtime/diagnostic_error_listener.rb +58 -0
- data/lib/antlr4/runtime/double_key_map.rb +49 -0
- data/lib/antlr4/runtime/empty_prediction_context.rb +35 -0
- data/lib/antlr4/runtime/epsilon_transition.rb +27 -0
- data/lib/antlr4/runtime/equality_comparator.rb +4 -0
- data/lib/antlr4/runtime/error_info.rb +7 -0
- data/lib/antlr4/runtime/error_node.rb +5 -0
- data/lib/antlr4/runtime/error_node_impl.rb +12 -0
- data/lib/antlr4/runtime/failed_predicate_exception.rb +33 -0
- data/lib/antlr4/runtime/flexible_hash_map.rb +232 -0
- data/lib/antlr4/runtime/input_mismatch_exception.rb +20 -0
- data/lib/antlr4/runtime/int_stream.rb +31 -0
- data/lib/antlr4/runtime/integer.rb +14 -0
- data/lib/antlr4/runtime/interval.rb +111 -0
- data/lib/antlr4/runtime/interval_set.rb +540 -0
- data/lib/antlr4/runtime/lexer.rb +257 -0
- data/lib/antlr4/runtime/lexer_action.rb +12 -0
- data/lib/antlr4/runtime/lexer_action_executor.rb +75 -0
- data/lib/antlr4/runtime/lexer_action_type.rb +12 -0
- data/lib/antlr4/runtime/lexer_atn_config.rb +50 -0
- data/lib/antlr4/runtime/lexer_atn_simulator.rb +522 -0
- data/lib/antlr4/runtime/lexer_channel_action.rb +51 -0
- data/lib/antlr4/runtime/lexer_custom_action.rb +49 -0
- data/lib/antlr4/runtime/lexer_dfa_serializer.rb +12 -0
- data/lib/antlr4/runtime/lexer_indexed_custom_action.rb +49 -0
- data/lib/antlr4/runtime/lexer_mode_action.rb +51 -0
- data/lib/antlr4/runtime/lexer_more_action.rb +41 -0
- data/lib/antlr4/runtime/lexer_no_viable_alt_exception.rb +4 -0
- data/lib/antlr4/runtime/lexer_pop_mode_action.rb +41 -0
- data/lib/antlr4/runtime/lexer_push_mode_action.rb +51 -0
- data/lib/antlr4/runtime/lexer_skip_action.rb +43 -0
- data/lib/antlr4/runtime/lexer_type_action.rb +51 -0
- data/lib/antlr4/runtime/ll1_analyzer.rb +133 -0
- data/lib/antlr4/runtime/lookahead_event_info.rb +10 -0
- data/lib/antlr4/runtime/loop_end_state.rb +15 -0
- data/lib/antlr4/runtime/murmur_hash.rb +99 -0
- data/lib/antlr4/runtime/no_viable_alt_exception.rb +7 -0
- data/lib/antlr4/runtime/not_set_transition.rb +20 -0
- data/lib/antlr4/runtime/object_equality_comparator.rb +18 -0
- data/lib/antlr4/runtime/ordered_atn_config_set.rb +15 -0
- data/lib/antlr4/runtime/parse_cancellation_exception.rb +5 -0
- data/lib/antlr4/runtime/parse_tree.rb +7 -0
- data/lib/antlr4/runtime/parse_tree_listener.rb +4 -0
- data/lib/antlr4/runtime/parse_tree_visitor.rb +4 -0
- data/lib/antlr4/runtime/parser.rb +522 -0
- data/lib/antlr4/runtime/parser_atn_simulator.rb +1171 -0
- data/lib/antlr4/runtime/parser_rule_context.rb +186 -0
- data/lib/antlr4/runtime/plus_block_start_state.rb +11 -0
- data/lib/antlr4/runtime/plus_loopback_state.rb +12 -0
- data/lib/antlr4/runtime/precedence_predicate_transition.rb +31 -0
- data/lib/antlr4/runtime/predicate.rb +6 -0
- data/lib/antlr4/runtime/predicate_eval_info.rb +16 -0
- data/lib/antlr4/runtime/predicate_transition.rb +35 -0
- data/lib/antlr4/runtime/prediction_context.rb +103 -0
- data/lib/antlr4/runtime/prediction_context_cache.rb +28 -0
- data/lib/antlr4/runtime/prediction_context_utils.rb +407 -0
- data/lib/antlr4/runtime/prediction_mode.rb +213 -0
- data/lib/antlr4/runtime/profiling_atn_simulator.rb +149 -0
- data/lib/antlr4/runtime/proxy_error_listener.rb +33 -0
- data/lib/antlr4/runtime/range_transition.rb +29 -0
- data/lib/antlr4/runtime/recognition_exception.rb +17 -0
- data/lib/antlr4/runtime/recognizer.rb +136 -0
- data/lib/antlr4/runtime/rule_context.rb +131 -0
- data/lib/antlr4/runtime/rule_context_with_alt_num.rb +11 -0
- data/lib/antlr4/runtime/rule_node.rb +8 -0
- data/lib/antlr4/runtime/rule_start_state.rb +17 -0
- data/lib/antlr4/runtime/rule_stop_state.rb +12 -0
- data/lib/antlr4/runtime/rule_tag_token.rb +64 -0
- data/lib/antlr4/runtime/rule_transition.rb +29 -0
- data/lib/antlr4/runtime/semantic_context.rb +313 -0
- data/lib/antlr4/runtime/set_transition.rb +29 -0
- data/lib/antlr4/runtime/singleton_prediction_context.rb +56 -0
- data/lib/antlr4/runtime/star_block_start_state.rb +12 -0
- data/lib/antlr4/runtime/star_loop_entry_state.rb +17 -0
- data/lib/antlr4/runtime/star_loopback_state.rb +16 -0
- data/lib/antlr4/runtime/syntax_tree.rb +6 -0
- data/lib/antlr4/runtime/tag_chunk.rb +22 -0
- data/lib/antlr4/runtime/terminal_node.rb +5 -0
- data/lib/antlr4/runtime/terminal_node_impl.rb +50 -0
- data/lib/antlr4/runtime/text_chunk.rb +16 -0
- data/lib/antlr4/runtime/token.rb +13 -0
- data/lib/antlr4/runtime/token_stream.rb +13 -0
- data/lib/antlr4/runtime/token_tag_token.rb +22 -0
- data/lib/antlr4/runtime/tokens_start_state.rb +14 -0
- data/lib/antlr4/runtime/transition.rb +51 -0
- data/lib/antlr4/runtime/tree.rb +4 -0
- data/lib/antlr4/runtime/trees.rb +195 -0
- data/lib/antlr4/runtime/triple.rb +40 -0
- data/lib/antlr4/runtime/utils.rb +117 -0
- data/lib/antlr4/runtime/uuid.rb +46 -0
- data/lib/antlr4/runtime/version.rb +5 -0
- data/lib/antlr4/runtime/vocabulary.rb +12 -0
- data/lib/antlr4/runtime/vocabulary_impl.rb +82 -0
- data/lib/antlr4/runtime/wildcard_transition.rb +20 -0
- data/lib/antlr4/runtime/writable_token.rb +7 -0
- 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,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
|
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: []
|