ruby-next-parser 3.0.1.0 → 3.1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/parser/ruby-next/AST_FORMAT.md +0 -50
- data/lib/parser/ruby-next/ast/processor.rb +0 -4
- data/lib/parser/ruby-next/builder.rb +0 -8
- data/lib/parser/ruby-next/lexer.rb +12253 -11327
- data/lib/parser/ruby-next/lexer.rl +35 -5
- data/lib/parser/ruby-next/meta.rb +1 -1
- data/lib/parser/ruby-next/version.rb +1 -1
- data/lib/parser/rubynext.rb +2692 -2699
- data/lib/parser/rubynext.y +72 -64
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fef58891b1748f78a7d8bc115658f1f85ee6179b75183e1b6aec99aabc8b2309
|
4
|
+
data.tar.gz: 0223d5f562f913dbc918833c60ed8922935e2579c71380143c032c47d3b6c7a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d4452ccfec4ee8bfae97444722a8ef2540f0b22532d5339e53e70bb60e316ba6a5fffea659e7e1609b6e1b305f4f40c33d0e9624d858f561979b4b38b3f27a2
|
7
|
+
data.tar.gz: e9045782a4123b9fa52d313aea22febf514d09639679a81c19231842ba92058b2c1492e01291d096110fc65aa54be7049e8428b534db943d95fa390352eeda73
|
@@ -12,53 +12,3 @@ Format:
|
|
12
12
|
^^^ selector
|
13
13
|
^^^^^^^^^ expression
|
14
14
|
~~~
|
15
|
-
|
16
|
-
### Hash
|
17
|
-
|
18
|
-
#### Implicit pair
|
19
|
-
|
20
|
-
Format:
|
21
|
-
|
22
|
-
~~~
|
23
|
-
(hash (ipair (send nil :x)))
|
24
|
-
"{x}"
|
25
|
-
^ begin^ end
|
26
|
-
~~~~~~ expression (send)
|
27
|
-
~~~~~~ expression (spair)
|
28
|
-
~~~~~~~~ expression (hash)
|
29
|
-
~~~
|
30
|
-
|
31
|
-
~~~
|
32
|
-
(hash (ipair (lvar :foo)))
|
33
|
-
"{foo}"
|
34
|
-
^ begin^ end
|
35
|
-
~~~~~~ expression (send)
|
36
|
-
~~~~~~ expression (spair)
|
37
|
-
~~~~~~~~ expression (hash)
|
38
|
-
~~~
|
39
|
-
|
40
|
-
### Kwargs
|
41
|
-
|
42
|
-
#### Implicit kwarg
|
43
|
-
|
44
|
-
Format:
|
45
|
-
|
46
|
-
~~~
|
47
|
-
(hash (ipair (send nil :x)))
|
48
|
-
"foo x:"
|
49
|
-
~~ expression
|
50
|
-
~~~
|
51
|
-
|
52
|
-
~~~
|
53
|
-
(hash (ipair (lvar :foo)))
|
54
|
-
"foo(foo:)"
|
55
|
-
~~~~ expression
|
56
|
-
~~~
|
57
|
-
|
58
|
-
If `emit_kwargs` compatibility flag is enabled:
|
59
|
-
|
60
|
-
~~~
|
61
|
-
(kwargs (ipair (send nil :x)))
|
62
|
-
"foo x:"
|
63
|
-
~~ expression
|
64
|
-
~~~
|
@@ -11,14 +11,6 @@ module Parser
|
|
11
11
|
send_map(receiver, dot_t, selector_t, nil, [], nil))
|
12
12
|
end
|
13
13
|
|
14
|
-
def ipair(var)
|
15
|
-
n(:ipair, [ var ], var.loc)
|
16
|
-
end
|
17
|
-
|
18
|
-
def ipair_keyword(var)
|
19
|
-
n(:ipair, [ var ], var.loc)
|
20
|
-
end
|
21
|
-
|
22
14
|
def check_reserved_for_numparam(name, loc)
|
23
15
|
# We don't want to raise SyntaxError, 'cause we want to use _x vars for older Rubies.
|
24
16
|
# The exception should be raised by Ruby itself for versions supporting numbered parameters
|