diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-19 15:43:42 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-19 15:43:42 +0000 |
commit | a64054cd343d53f84efb88794d6cb12a8b676a69 (patch) | |
tree | 6e426d57019777114741a61972db38882de30b3d /ext/ripper/tools | |
parent | 2a628a434636d21ee2512acb774364e8fb064687 (diff) | |
download | ruby-a64054cd343d53f84efb88794d6cb12a8b676a69.tar.gz |
parse.y: Remove unneeded type decls for Ripper
I think that they are not used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/ripper/tools')
-rw-r--r-- | ext/ripper/tools/dsl.rb | 2 | ||||
-rwxr-xr-x | ext/ripper/tools/preproc.rb | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/ext/ripper/tools/dsl.rb b/ext/ripper/tools/dsl.rb index dec4820d74..6b4742f17c 100644 --- a/ext/ripper/tools/dsl.rb +++ b/ext/ripper/tools/dsl.rb @@ -8,6 +8,7 @@ class DSL @events = {} @error = options.include?("error") @brace = options.include?("brace") + @final = options.include?("final") # create $1 == "$1", $2 == "$2", ... re, s = "", "" @@ -28,6 +29,7 @@ class DSL def generate s = "$$" + s = "p->result" if @final s = "\t\t\t#{ s } = #@code;" s << "ripper_error(p);" if @error s = "{#{ s }}" if @brace diff --git a/ext/ripper/tools/preproc.rb b/ext/ripper/tools/preproc.rb index 418a0dfb02..f5d0115184 100755 --- a/ext/ripper/tools/preproc.rb +++ b/ext/ripper/tools/preproc.rb @@ -43,12 +43,6 @@ def prelude(f, out) @exprs = {} while line = f.gets case line - when %r</\*%%%\*/> - out << '/*' << $/ - when %r</\*%> - out << '*/' << $/ - when %r<%\*/> - out << $/ when /\A%%/ out << '%%' << $/ return |