You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# (string):1:5: warning: `*' interpreted as argument prefix
76
+
# foo *bar
77
+
# ^
78
+
# (send nil :foo
79
+
# (splat
80
+
# (send nil :bar)))
81
+
```
74
82
75
83
If you reuse the same parser object for multiple `#parse` runs, you need to
76
84
`#reset` it.
@@ -138,7 +146,7 @@ Several Parser nodes seem to be confusing enough to warrant a dedicated README s
138
146
139
147
The `(block)` node passes a Ruby block, that is, a closure, to a method call represented by its first child, a `(send)`, `(super)` or `(zsuper)` node. To demonstrate:
140
148
141
-
```
149
+
```bash
142
150
$ ruby-parse -e 'foo { |x| x + 2 }'
143
151
(block
144
152
(send nil :foo)
@@ -162,7 +170,7 @@ Both `(begin)` and `(kwbegin)` nodes represent compound statements, that is, sev
0 commit comments