tomlrb 1.2.8 → 1.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tomlrb.rb +2 -2
- data/lib/tomlrb/generated_parser.rb +37 -37
- data/lib/tomlrb/parser.rb +1 -1
- data/lib/tomlrb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7dc49f2c4a21fe5073871c84669412123b959d4cfa082d32bea1be9a8d9d23fe
|
4
|
+
data.tar.gz: 374170642d697bfe82f1bac48c9e14ff83a3b09b3badbc707c62110d19153f19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0050d8b4e22c47f88b6e08d42edf9f301e3608e3ce22b5744087836e566fbc53af09d0291572449d6ecfb8f7a33ea29c6f8cc15d6763c017356e47669832d534
|
7
|
+
data.tar.gz: 91db307e0bf1c4fc5e2ebba6ca0ef8c0a7d32632a0c219059a44c7ac83fd0e41c4e6e55cb099a3031c26993de6632ce59e9303a3035192489bde407cb8ffdc47
|
data/lib/tomlrb.rb
CHANGED
@@ -18,7 +18,7 @@ module Tomlrb
|
|
18
18
|
def self.parse(string_or_io, **options)
|
19
19
|
io = string_or_io.is_a?(String) ? StringIO.new(string_or_io) : string_or_io
|
20
20
|
scanner = Scanner.new(io)
|
21
|
-
parser = Parser.new(scanner, options)
|
21
|
+
parser = Parser.new(scanner, **options)
|
22
22
|
begin
|
23
23
|
handler = parser.parse
|
24
24
|
rescue Racc::ParseError => e
|
@@ -39,6 +39,6 @@ module Tomlrb
|
|
39
39
|
# default external encoding. The default external encoding is set by
|
40
40
|
# locale encoding or the interpreter -E option.
|
41
41
|
tmp = File.read(path, :encoding=>'utf-8')
|
42
|
-
Tomlrb.parse(tmp, options)
|
42
|
+
Tomlrb.parse(tmp, **options)
|
43
43
|
end
|
44
44
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# DO NOT MODIFY!!!!
|
3
|
-
# This file is automatically generated by Racc 1.4.
|
3
|
+
# This file is automatically generated by Racc 1.4.16.pre.1
|
4
4
|
# from Racc grammer file "".
|
5
5
|
#
|
6
6
|
|
@@ -10,50 +10,50 @@ module Tomlrb
|
|
10
10
|
##### State transition tables begin ###
|
11
11
|
|
12
12
|
racc_action_table = [
|
13
|
-
2,
|
14
|
-
15, 16, 8, 78,
|
13
|
+
2, 32, 11, 31, 12, 31, 13, 33, 14, 77,
|
14
|
+
15, 16, 8, 78, 34, 10, 35, 29, 36, 29,
|
15
15
|
57, 58, 59, 60, 56, 53, 52, 54, 55, 46,
|
16
|
-
|
16
|
+
73, 37, 10, 57, 58, 59, 60, 56, 53, 52,
|
17
17
|
54, 55, 46, 69, 70, 10, 57, 58, 59, 60,
|
18
|
-
56, 53, 52, 54, 55, 46,
|
19
|
-
58, 59, 60, 56, 53, 52, 54, 55, 46,
|
20
|
-
|
21
|
-
55, 46,
|
22
|
-
53, 52, 54, 55, 46,
|
18
|
+
56, 53, 52, 54, 55, 46, 40, 41, 10, 57,
|
19
|
+
58, 59, 60, 56, 53, 52, 54, 55, 46, 38,
|
20
|
+
43, 10, 57, 58, 59, 60, 56, 53, 52, 54,
|
21
|
+
55, 46, 66, 17, 10, 57, 58, 59, 60, 56,
|
22
|
+
53, 52, 54, 55, 46, 27, nil, 10, 57, 58,
|
23
23
|
59, 60, 56, 53, 52, 54, 55, 46, nil, nil,
|
24
24
|
10, 57, 58, 59, 60, 56, 53, 52, 54, 55,
|
25
|
-
46,
|
25
|
+
46, nil, nil, 10, 57, 58, 59, 60, 56, 53,
|
26
26
|
52, 54, 55, 46, 73, 21, 10, 22, nil, 23,
|
27
27
|
nil, 24, nil, 25, 26, 21, 19, 22, nil, 23,
|
28
28
|
nil, 24, nil, 25, 26, nil, 19 ]
|
29
29
|
|
30
30
|
racc_action_check = [
|
31
|
-
1,
|
32
|
-
1, 1, 1, 74,
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
31
|
+
1, 11, 1, 9, 1, 70, 1, 12, 1, 74,
|
32
|
+
1, 1, 1, 74, 13, 1, 14, 9, 15, 70,
|
33
|
+
78, 78, 78, 78, 78, 78, 78, 78, 78, 78,
|
34
|
+
78, 16, 78, 32, 32, 32, 32, 32, 32, 32,
|
35
|
+
32, 32, 32, 42, 42, 32, 33, 33, 33, 33,
|
36
|
+
33, 33, 33, 33, 33, 33, 20, 20, 33, 34,
|
37
|
+
34, 34, 34, 34, 34, 34, 34, 34, 34, 19,
|
38
|
+
30, 34, 35, 35, 35, 35, 35, 35, 35, 35,
|
39
|
+
35, 35, 40, 2, 35, 36, 36, 36, 36, 36,
|
40
|
+
36, 36, 36, 36, 36, 8, nil, 36, 37, 37,
|
41
|
+
37, 37, 37, 37, 37, 37, 37, 37, nil, nil,
|
42
|
+
37, 43, 43, 43, 43, 43, 43, 43, 43, 43,
|
43
|
+
43, nil, nil, 43, 45, 45, 45, 45, 45, 45,
|
44
|
+
45, 45, 45, 45, 45, 7, 45, 7, nil, 7,
|
45
45
|
nil, 7, nil, 7, 7, 41, 7, 41, nil, 41,
|
46
46
|
nil, 41, nil, 41, 41, nil, 41 ]
|
47
47
|
|
48
48
|
racc_action_pointer = [
|
49
|
-
nil, 0,
|
50
|
-
nil, -4, -2, 0,
|
51
|
-
|
52
|
-
|
53
|
-
|
49
|
+
nil, 0, 83, nil, nil, nil, nil, 133, 83, 1,
|
50
|
+
nil, -17, -11, -4, -2, 0, 13, nil, nil, 56,
|
51
|
+
43, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
52
|
+
52, nil, 30, 43, 56, 69, 82, 95, nil, nil,
|
53
|
+
69, 143, 27, 108, nil, 121, nil, nil, nil, nil,
|
54
54
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
55
55
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
56
|
-
3, nil, nil, nil, -4, nil, nil, nil,
|
56
|
+
3, nil, nil, nil, -4, nil, nil, nil, 17, nil ]
|
57
57
|
|
58
58
|
racc_action_default = [
|
59
59
|
-1, -56, -56, -2, -3, -4, -5, -56, -8, -56,
|
@@ -66,8 +66,8 @@ racc_action_default = [
|
|
66
66
|
-56, -28, -35, -36, -56, -26, -37, -38, -46, -39 ]
|
67
67
|
|
68
68
|
racc_goto_table = [
|
69
|
-
28, 18,
|
70
|
-
|
69
|
+
28, 18, 6, 72, 44, 61, 62, 63, 64, 65,
|
70
|
+
7, 39, 42, 68, 1, 71, 76, 3, 4, 5,
|
71
71
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
72
72
|
nil, nil, nil, nil, nil, 67, 79, nil, nil, nil,
|
73
73
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
@@ -75,8 +75,8 @@ racc_goto_table = [
|
|
75
75
|
nil, 75 ]
|
76
76
|
|
77
77
|
racc_goto_check = [
|
78
|
-
11, 7,
|
79
|
-
|
78
|
+
11, 7, 5, 18, 15, 15, 15, 15, 15, 15,
|
79
|
+
6, 9, 13, 14, 1, 15, 19, 2, 3, 4,
|
80
80
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
81
81
|
nil, nil, nil, nil, nil, 7, 18, nil, nil, nil,
|
82
82
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
@@ -84,8 +84,8 @@ racc_goto_check = [
|
|
84
84
|
nil, 11 ]
|
85
85
|
|
86
86
|
racc_goto_pointer = [
|
87
|
-
nil,
|
88
|
-
nil, -9, nil, -
|
87
|
+
nil, 14, 16, 17, 18, 1, 9, -6, nil, -9,
|
88
|
+
nil, -9, nil, -18, -29, -28, nil, nil, -42, -58,
|
89
89
|
nil, nil, nil ]
|
90
90
|
|
91
91
|
racc_goto_default = [
|
@@ -539,4 +539,4 @@ def _reduce_none(val, _values, result)
|
|
539
539
|
end
|
540
540
|
|
541
541
|
end # class GeneratedParser
|
542
|
-
|
542
|
+
end # module Tomlrb
|
data/lib/tomlrb/parser.rb
CHANGED
data/lib/tomlrb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tomlrb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francois Bernier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A racc based toml parser
|
14
14
|
email:
|