jievro-parser 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/jievro/parser/grammar/declaration/constant_declaration.treetop +1 -1
- data/lib/jievro/parser/grammar/declaration/function_declaration.treetop +1 -1
- data/lib/jievro/parser/grammar/declaration/variable_declaration.treetop +1 -1
- data/lib/jievro/parser/grammar/expression/closure_expression.treetop +1 -1
- data/lib/jievro/parser/grammar/expression/function_call_expression.treetop +1 -1
- data/lib/jievro/parser/grammar/expression/parenthesized_expression.treetop +1 -1
- data/lib/jievro/parser/grammar/expression/prefix_expression.treetop +1 -1
- data/lib/jievro/parser/grammar/expression/range_expression.treetop +1 -1
- data/lib/jievro/parser/grammar/expression/self_expression.treetop +1 -1
- data/lib/jievro/parser/grammar/expression/super_expression.treetop +1 -1
- data/lib/jievro/parser/grammar/grammar.treetop +1 -1
- data/lib/jievro/parser/grammar/identifier.treetop +2 -2
- data/lib/jievro/parser/grammar/implicit_parameter_name.treetop +1 -1
- data/lib/jievro/parser/grammar/literal/literal_array.treetop +1 -1
- data/lib/jievro/parser/grammar/literal/literal_boolean.treetop +2 -2
- data/lib/jievro/parser/grammar/literal/literal_decimal_floating_point.treetop +1 -1
- data/lib/jievro/parser/grammar/literal/literal_dictionary.treetop +2 -2
- data/lib/jievro/parser/grammar/literal/literal_hexadecimal_floating_point.treetop +1 -1
- data/lib/jievro/parser/grammar/literal/literal_integer_binary.treetop +1 -1
- data/lib/jievro/parser/grammar/literal/literal_integer_decimal.treetop +1 -1
- data/lib/jievro/parser/grammar/literal/literal_integer_hexadecimal.treetop +1 -1
- data/lib/jievro/parser/grammar/literal/literal_integer_octal.treetop +1 -1
- data/lib/jievro/parser/grammar/literal/literal_nil.treetop +1 -1
- data/lib/jievro/parser/grammar/literal/literal_string.treetop +3 -3
- data/lib/jievro/parser/grammar/statement/branch/if.treetop +1 -1
- data/lib/jievro/parser/grammar/statement/loop/do_while.treetop +1 -1
- data/lib/jievro/parser/grammar/statement/loop/for.treetop +1 -1
- data/lib/jievro/parser/grammar/statement/loop/for_in.treetop +1 -1
- data/lib/jievro/parser/grammar/statement/loop/while.treetop +1 -1
- data/lib/jievro/parser/grammar/type/type_array.treetop +1 -1
- data/lib/jievro/parser/grammar/type/type_dictionary.treetop +1 -1
- data/lib/jievro/parser/grammar/wildcard.treetop +1 -1
- data/lib/jievro/parser/string_parser.rb +1 -1
- data/lib/jievro/parser/tools/shunting_yard.rb +1 -1
- data/lib/jievro/parser/version.rb +1 -1
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9265ff73d1bf35da428218e5880fadd8db1742d4
|
4
|
+
data.tar.gz: aac8b8c5d9b50f766ab0a0f91f1a633753ab3dc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2783011135c322c5d83a8b6c5e796705e296c665b7233758c4bb06708a3e97ab8c8ae9fe3df82a5f68859b17e4610a0755103129c4be6963fb8d8b8c7c80ea0f
|
7
|
+
data.tar.gz: 9ea99720dd29d55207ef5f74f146f9e0de39ea8195b8e552eed504de979e4e88a676c132884bea17d0f19713814aaaf455b4fc6e97969d679ebfb3af32c7ea82
|
data/Gemfile.lock
CHANGED
@@ -23,7 +23,7 @@ module Kauri
|
|
23
23
|
def ast
|
24
24
|
[
|
25
25
|
{
|
26
|
-
|
26
|
+
node_type: 'identifier',
|
27
27
|
value: text_value
|
28
28
|
}
|
29
29
|
]
|
@@ -45,7 +45,7 @@ module Kauri
|
|
45
45
|
def ast
|
46
46
|
[
|
47
47
|
{
|
48
|
-
|
48
|
+
node_type: 'identifier',
|
49
49
|
value: regular_identifier.text_value
|
50
50
|
}
|
51
51
|
]
|
@@ -18,7 +18,7 @@ module Kauri
|
|
18
18
|
def ast
|
19
19
|
[
|
20
20
|
{
|
21
|
-
|
21
|
+
node_type: 'literal-boolean',
|
22
22
|
value: true
|
23
23
|
}
|
24
24
|
]
|
@@ -39,7 +39,7 @@ module Kauri
|
|
39
39
|
def ast
|
40
40
|
[
|
41
41
|
{
|
42
|
-
|
42
|
+
node_type: 'literal-boolean',
|
43
43
|
value: false
|
44
44
|
}
|
45
45
|
]
|
@@ -57,7 +57,7 @@ module Kauri
|
|
57
57
|
ast = items.ast
|
58
58
|
else
|
59
59
|
ast = [{
|
60
|
-
|
60
|
+
node_type: 'literal-dictionary',
|
61
61
|
pairs: []
|
62
62
|
}]
|
63
63
|
end
|
@@ -146,7 +146,7 @@ module Kauri
|
|
146
146
|
|
147
147
|
[
|
148
148
|
{
|
149
|
-
|
149
|
+
node_type: 'literal-dictionary',
|
150
150
|
pairs: pairs
|
151
151
|
}
|
152
152
|
]
|
@@ -29,7 +29,7 @@ module Kauri
|
|
29
29
|
if quoted_text.text_value.empty?
|
30
30
|
ast = [
|
31
31
|
{
|
32
|
-
|
32
|
+
node_type: 'literal-string',
|
33
33
|
value: ''
|
34
34
|
}
|
35
35
|
]
|
@@ -75,7 +75,7 @@ module Kauri
|
|
75
75
|
ast[-1][:value] += value
|
76
76
|
else
|
77
77
|
ast.push({
|
78
|
-
|
78
|
+
node_type: 'literal-string',
|
79
79
|
value: value
|
80
80
|
})
|
81
81
|
end
|
@@ -86,7 +86,7 @@ module Kauri
|
|
86
86
|
if is_interpolated_string
|
87
87
|
ast = [
|
88
88
|
{
|
89
|
-
|
89
|
+
node_type: 'interpolated-string',
|
90
90
|
value: ast
|
91
91
|
}
|
92
92
|
]
|
metadata
CHANGED
@@ -1,69 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jievro-parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefano Azzalini
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: treetop
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.6'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.9'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.9'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '10.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '10.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '3.2'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '3.2'
|
69
69
|
description:
|
@@ -72,8 +72,8 @@ executables: []
|
|
72
72
|
extensions: []
|
73
73
|
extra_rdoc_files: []
|
74
74
|
files:
|
75
|
-
-
|
76
|
-
-
|
75
|
+
- .gitignore
|
76
|
+
- .travis.yml
|
77
77
|
- Gemfile
|
78
78
|
- Gemfile.lock
|
79
79
|
- LICENSE.txt
|
@@ -161,17 +161,17 @@ require_paths:
|
|
161
161
|
- lib
|
162
162
|
required_ruby_version: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- -
|
164
|
+
- - ~>
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '2.0'
|
167
167
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
168
168
|
requirements:
|
169
|
-
- -
|
169
|
+
- - '>='
|
170
170
|
- !ruby/object:Gem::Version
|
171
171
|
version: '0'
|
172
172
|
requirements: []
|
173
173
|
rubyforge_project:
|
174
|
-
rubygems_version: 2.
|
174
|
+
rubygems_version: 2.0.14
|
175
175
|
signing_key:
|
176
176
|
specification_version: 4
|
177
177
|
summary: Source code parser used internally by jievro
|