summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-20 05:39:03 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-20 05:39:03 +0000
commit0b8594209dfb536ee56269276c12d38ee4b85fcf (patch)
treef15b4bfff20cecc6af9c7c48c723afb9e6e4e2ab /ext
parentb5be3e78938ba17d389df1c8f4bdbcc8b4c73550 (diff)
dsl.rb: p
* ext/ripper/tools/dsl.rb (DSL#initialize): define `p` for `struct parser_params *p`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/ripper/tools/dsl.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/ripper/tools/dsl.rb b/ext/ripper/tools/dsl.rb
index 0997a09..3857ec0 100644
--- a/ext/ripper/tools/dsl.rb
+++ b/ext/ripper/tools/dsl.rb
@@ -19,6 +19,9 @@ class DSL
end
/#{ re }/ =~ s
+ # struct parser_params *p
+ p = "p"
+
@code = eval(code)
end