jpt 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/jpt.gemspec +1 -1
- data/lib/parser/jptgrammar.rb +9 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8384c2b533862dd8680c91a673db060c59f950a5f6f7e56962bb5d18913d3f54
|
4
|
+
data.tar.gz: f2700ad739f78beb7ed048998c7c6831c9c077a6810c723b51091b4c95176be6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dab70f4ce946f2716d403696d750ac97ddee416c9da1a04a2bc8b375c5c93ff9bf93aff1ccce23c0431820e7e6ef39fbb00f08a6cb4ff34c8e206dea4d97d33c
|
7
|
+
data.tar.gz: b4c83b1a0c98652b00359a554a6f75f3fcf8ab57330425b139f6093aec70505a5061fa0036f13b5d32006486d3928035558b50a346a004cfaa3310f5f4c94bc5
|
data/jpt.gemspec
CHANGED
data/lib/parser/jptgrammar.rb
CHANGED
@@ -3087,12 +3087,18 @@ module JPTGRAMMAR
|
|
3087
3087
|
end
|
3088
3088
|
|
3089
3089
|
module NameSegment1
|
3090
|
+
def ast
|
3091
|
+
elements[1].ast
|
3092
|
+
end
|
3093
|
+
end
|
3094
|
+
|
3095
|
+
module NameSegment2
|
3090
3096
|
def member_name_shorthand
|
3091
3097
|
elements[1]
|
3092
3098
|
end
|
3093
3099
|
end
|
3094
3100
|
|
3095
|
-
module
|
3101
|
+
module NameSegment3
|
3096
3102
|
def ast
|
3097
3103
|
elements[1].ast
|
3098
3104
|
end
|
@@ -3136,6 +3142,7 @@ module JPTGRAMMAR
|
|
3136
3142
|
if s1.last
|
3137
3143
|
r1 = instantiate_node(SyntaxNode,input, i1...index, s1)
|
3138
3144
|
r1.extend(NameSegment0)
|
3145
|
+
r1.extend(NameSegment1)
|
3139
3146
|
else
|
3140
3147
|
@index = i1
|
3141
3148
|
r1 = nil
|
@@ -3159,8 +3166,8 @@ module JPTGRAMMAR
|
|
3159
3166
|
end
|
3160
3167
|
if s5.last
|
3161
3168
|
r5 = instantiate_node(SyntaxNode,input, i5...index, s5)
|
3162
|
-
r5.extend(NameSegment1)
|
3163
3169
|
r5.extend(NameSegment2)
|
3170
|
+
r5.extend(NameSegment3)
|
3164
3171
|
else
|
3165
3172
|
@index = i5
|
3166
3173
|
r5 = nil
|