brakeman 3.2.1 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +18 -0
- data/bin/brakeman +1 -1
- data/bundle/load.rb +14 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/CHANGES.txt +828 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/MIT-LICENSE +20 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/README.txt +102 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/Makefile +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/bench.rb +313 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/bench_context.yaml +141 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/_footer.html +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/_header.html +52 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/bench_erb.rhtml +29 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/bench_erubis.rhtml +29 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/bench_eruby.rhtml +29 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/bin/erubis +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/contrib/erubis +3468 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/contrib/erubis-run.rb +132 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/contrib/inline-require +179 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/ActionView.html +105 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/ActionView/TemplateHandlers/ErubisHandler.html +209 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/ERB.html +101 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis.html +362 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayBufferEnhancer.html +175 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayBufferEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayEnhancer.html +174 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Basic.html +112 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Basic/Converter.html +327 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Basic/Engine.html +130 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/BiPatternEnhancer.html +215 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/BiPatternEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/CGenerator.html +386 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/CommandOptionError.html +113 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Context.html +344 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Converter.html +283 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/CppGenerator.html +382 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/DeleteIndentEnhancer.html +150 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/DeleteIndentEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ec.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ecpp.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ejava.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ejavascript.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Engine.html +305 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Eperl.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ephp.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ErboutEnhancer.html +175 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ErboutEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ErubisError.html +117 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Eruby.html +132 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapeEnhancer.html +165 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEc.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEcpp.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEjava.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEjavascript.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEperl.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEphp.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEruby.html +127 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEscheme.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Escheme.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Evaluator.html +212 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/FastEruby.html +131 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Generator.html +416 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/HeaderFooterEnhancer.html +267 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/HeaderFooterEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers.html +116 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers/RailsFormHelper.html +787 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers/RailsHelper.html +349 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers/RailsHelper/TemplateConverter.html +213 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/InterpolationEnhancer.html +305 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/InterpolationEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/JavaGenerator.html +359 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/JavascriptGenerator.html +386 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Main.html +341 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoCodeEnhancer.html +249 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoCodeEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoTextEnhancer.html +159 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoTextEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NotSupportedError.html +119 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/OptimizedEruby.html +163 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/OptimizedGenerator.html +439 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/OptimizedXmlEruby.html +163 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI.html +125 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Converter.html +266 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ec.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ecpp.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ejava.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ejavascript.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Engine.html +122 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Eperl.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ephp.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Eruby.html +155 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Escheme.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/TinyEruby.html +293 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PercentLineEnhancer.html +163 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PercentLineEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PerlGenerator.html +344 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PhpGenerator.html +350 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrefixedLineEnhancer.html +210 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrefixedLineEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PreprocessingEruby.html +183 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PreprocessingHelper.html +212 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintEnabledEnhancer.html +212 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintEnabledEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintOutEnhancer.html +244 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintOutEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintOutSimplifiedEruby.html +121 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/RubyEvaluator.html +227 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/RubyGenerator.html +328 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/SchemeGenerator.html +382 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/SimplifiedEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/SimplifyEnhancer.html +191 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StdoutEnhancer.html +173 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StdoutEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StdoutSimplifiedEruby.html +121 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StringBufferEnhancer.html +174 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StringBufferEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StringIOEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/TinyEruby.html +298 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/XmlEruby.html +130 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/XmlHelper.html +255 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Kernel.html +155 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/created.rid +1 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/README_txt.html +247 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/context_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/converter_rb.html +114 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ec_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ecpp_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ejava_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ejavascript_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/enhanced_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/eperl_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ephp_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/eruby_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/escheme_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/optimized_rb.html +114 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine_rb.html +117 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/enhancer_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/error_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/evaluator_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/generator_rb.html +114 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/helper_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/helpers/rails_form_helper_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/helpers/rails_helper_rb.html +116 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/local-setting_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/main_rb.html +129 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/preprocessing_rb.html +114 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/tiny_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/util_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis_rb.html +118 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/fr_class_index.html +129 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/fr_file_index.html +53 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/fr_method_index.html +265 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/index.html +24 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/rdoc-style.css +208 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc/docstyle.css +209 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc/users-guide.html +3551 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/Makefile +58 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ec +42 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ecpp +33 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ejava +45 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ejs +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.eperl +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ephp +17 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.eruby +15 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.escheme +26 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/Makefile +54 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.ec +42 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.ejava +45 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.ejs +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.eperl +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.ephp +17 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.eruby +15 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.escheme +26 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis.rb +73 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/context.rb +83 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/converter.rb +357 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine.rb +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/ec.rb +117 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/ecpp.rb +113 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/ejava.rb +110 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/ejavascript.rb +119 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/enhanced.rb +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/eperl.rb +95 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/ephp.rb +99 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/eruby.rb +125 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/escheme.rb +114 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/optimized.rb +127 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/enhancer.rb +723 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/error.rb +23 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/evaluator.rb +88 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/generator.rb +85 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/helper.rb +47 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/helpers/rails_form_helper.rb +197 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/helpers/rails_helper.rb +353 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/local-setting.rb +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/main.rb +516 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/preprocessing.rb +58 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/tiny.rb +144 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/util.rb +22 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/setup.rb +1331 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/assert-text-equal.rb +44 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/Example.ejava +55 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/array_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/arraybuffer_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bipattern-example.rhtml +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bipattern_example.result +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.rb +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result +17 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/context.rb +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/context.yaml +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/def_method.rb +14 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/def_method.result +3 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/escape_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.ec +27 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.ecpp +30 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.ejs +20 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.eperl +18 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.ephp +18 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.eruby +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.escheme +28 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example1.eruby +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example1.rb +17 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example1.result +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example10.rb +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example10.result +17 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example10.xhtml +14 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example10_x.result +17 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11.php +20 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11.result +23 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11.rhtml +21 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11_C.result +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11_N.result +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11_U.result +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11_php.result +15 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example1_x.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2.eruby +7 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2.rb +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2.result +27 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2_trim.result +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2_x.result +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example3.eruby +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example3.rb +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example31.result +22 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example32.result +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example3_e.result +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example4.eruby +3 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example4.rb +11 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example4.result +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example4_x.result +5 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example5.eruby +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example5.rb +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example5.result +7 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example6.rb +12 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example6.result +7 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example7.eruby +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example71.result +13 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example72.result +13 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example8.eruby +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example8_ruby.result +7 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example8_yaml.result +7 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example9.eruby +3 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example9.rb +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example9.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example91.result +5 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example92.result +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_c.result +32 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_java.result +56 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_js.result +22 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_perl.result +20 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_php.result +19 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_scheme.result +30 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_scheme_display.result +29 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby-example.rb +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby-example.result +18 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby.rb +11 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby.result +38 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby.rhtml +15 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter-example.eruby +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter-example2.rb +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter-example2.rhtml +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter_example.result +11 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter_example2.result +13 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/interpolation_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/main_program1.rb +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/main_program1.result +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/main_program2.rb +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/main_program2.result +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/nocode-example.eruby +14 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/nocode-php.result +20 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/nocode_example.result +15 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/normal-eruby-test.eruby +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/normal_eruby_test.result +11 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/notext-example.eruby +14 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/notext-example.php +19 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/notext-php.result +20 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/notext_example.result +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/percentline-example.rhtml +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/percentline_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/prefixedline-example.rb +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/prefixedline-example.rhtml +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/prefixedline_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/printenable_example.result +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/printenabled-example.eruby +3 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/printenabled-example.rb +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/printstatement_example.result +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/simplify_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/stderr.log +3 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/stdout_exmple.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/stringbuffer_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/tail_260.result +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/tailnewline.rhtml +3 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/template1.rhtml +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/template2.rhtml +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-engines.rb +425 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-enhancers.rb +646 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-erubis.rb +887 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-index-cgi.rb +191 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-main.rb +752 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-users-guide.rb +73 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test.rb +45 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/testutil.rb +111 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/CHANGELOG.md +1363 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/FAQ.md +157 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/MIT-LICENSE +20 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/README.md +173 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/REFERENCE.md +1294 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/Rakefile +134 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/bin/haml +9 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml.rb +23 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/buffer.rb +345 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/compiler.rb +540 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/engine.rb +245 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/error.rb +61 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/exec.rb +329 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/filters.rb +404 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers.rb +664 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/action_view_extensions.rb +58 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/action_view_mods.rb +147 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/action_view_xss_mods.rb +58 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/safe_erubis_template.rb +29 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/xss_mods.rb +104 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/options.rb +279 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/parser.rb +764 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/railtie.rb +22 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/sass_rails_filter.rb +33 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/template.rb +32 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/template/options.rb +16 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/template/plugin.rb +41 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/util.rb +377 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/version.rb +3 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/engine_test.rb +2013 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/erb/_av_partial_1.erb +12 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/erb/_av_partial_2.erb +8 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/erb/action_view.erb +62 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/erb/standard.erb +55 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/filters_test.rb +254 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-3.0.x +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-3.1.x +6 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-3.2.x +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-4.0.x +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/LICENSE +14 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/README.md +106 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/lua_haml_spec.lua +38 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/perl_haml_test.pl +81 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/ruby_haml_test.rb +23 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/tests.json +660 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/helper_test.rb +583 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/markaby/standard.mab +52 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/mocks/article.rb +6 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/parser_test.rb +105 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/content_for_layout.xhtml +12 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/eval_suppressed.xhtml +9 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/helpers.xhtml +70 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/helpful.xhtml +10 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/just_stuff.xhtml +70 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/list.xhtml +12 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/nuke_inner_whitespace.xhtml +40 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/nuke_outer_whitespace.xhtml +148 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/original_engine.xhtml +20 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/partial_layout.xhtml +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/partial_layout_erb.xhtml +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/partials.xhtml +21 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/render_layout.xhtml +3 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/silent_script.xhtml +74 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/standard.xhtml +162 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/tag_parsing.xhtml +23 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/very_basic.xhtml +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/whitespace_handling.xhtml +90 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/template_test.rb +354 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_av_partial_1.haml +9 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_av_partial_1_ugly.haml +9 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_av_partial_2.haml +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_av_partial_2_ugly.haml +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_layout.erb +3 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_layout_for_partial.haml +3 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_partial.haml +8 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_text_area.haml +3 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_text_area_helper.html.haml +4 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/action_view.haml +47 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/action_view_ugly.haml +47 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/breakage.haml +8 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/content_for_layout.haml +8 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/eval_suppressed.haml +11 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/helpers.haml +55 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/helpful.haml +11 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/just_stuff.haml +85 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/list.haml +12 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/nuke_inner_whitespace.haml +32 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/nuke_outer_whitespace.haml +144 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/original_engine.haml +17 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/partial_layout.haml +3 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/partial_layout_erb.erb +4 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/partialize.haml +1 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/partials.haml +12 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/render_layout.haml +2 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/silent_script.haml +45 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/standard.haml +43 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/standard_ugly.haml +43 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/tag_parsing.haml +21 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/very_basic.haml +4 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/whitespace_handling.haml +87 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/test_helper.rb +81 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/util_test.rb +63 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/AUTHORS +3 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/COPYING +339 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/Changelog.md +415 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/Gemfile +9 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/INSTALL +59 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/LICENSE +7 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/README.rdoc +74 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/Rakefile +30 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/TODO +6 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/ansi_colors.rb +38 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/asking_for_arrays.rb +18 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/basic_usage.rb +75 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/color_scheme.rb +32 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/get_character.rb +12 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/limit.rb +12 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/menus.rb +65 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/overwrite.rb +19 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/page_and_wrap.rb +322 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/password.rb +7 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/repeat_entry.rb +21 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/trapping_eof.rb +22 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/using_readline.rb +17 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/highline.gemspec +37 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline.rb +1048 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/color_scheme.rb +134 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/compatibility.rb +16 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/import.rb +41 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/menu.rb +381 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/question.rb +480 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/simulate.rb +48 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/string_extensions.rb +111 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/style.rb +192 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/system_extensions.rb +254 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/version.rb +4 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/setup.rb +1360 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/site/highline.css +65 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/site/images/logo.png +0 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/site/index.html +58 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/string_methods.rb +32 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_color_scheme.rb +96 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_highline.rb +1402 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_import.rb +52 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_menu.rb +439 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_simulator.rb +23 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_string_extension.rb +33 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_string_highline.rb +38 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_style.rb +578 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/History.txt +371 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/Manifest.txt +8 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/README.txt +87 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/Rakefile +92 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/bin/r2r_show +33 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/lib/ruby2ruby.rb +1159 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/test/test_ruby2ruby.rb +709 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/History.txt +882 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/Manifest.txt +29 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/README.txt +93 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/Rakefile +187 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/bin/ruby_parse +96 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/bin/ruby_parse_extract_error +156 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby18_parser.rb +5773 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby18_parser.y +1899 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby19_parser.rb +6171 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby19_parser.y +2109 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby20_parser.rb +6723 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby20_parser.y +2372 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby21_parser.rb +6764 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby21_parser.y +2382 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby22_parser.rb +6804 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby22_parser.y +2393 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby23_parser.rb +6905 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby23_parser.y +2425 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_lexer.rb +1237 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_lexer.rex +177 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_lexer.rex.rb +317 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_parser.rb +7 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_parser.yy +2506 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_parser_extras.rb +1460 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/test/test_ruby_lexer.rb +2723 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/test/test_ruby_parser.rb +3502 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/test/test_ruby_parser_extras.rb +228 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/CHANGES.md +149 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/Gemfile +11 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/LICENSE.txt +22 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/README.md +191 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/Rakefile +26 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/bin/safe_yaml +75 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/bundle_install_all_ruby_versions.sh +11 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml.rb +94 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/deep.rb +34 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/libyaml_checker.rb +36 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/load.rb +181 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/parse/date.rb +35 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/parse/hexadecimal.rb +12 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/parse/sexagesimal.rb +26 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/psych_handler.rb +99 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/psych_resolver.rb +52 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/resolver.rb +94 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/safe_to_ruby_visitor.rb +29 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/syck_hack.rb +36 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/syck_node_monkeypatch.rb +43 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/syck_resolver.rb +38 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform.rb +41 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_boolean.rb +21 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_date.rb +13 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_float.rb +33 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_integer.rb +26 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_nil.rb +18 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_symbol.rb +17 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/transformation_map.rb +47 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/version.rb +3 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/run_specs_all_ruby_versions.sh +38 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/safe_yaml.gemspec +19 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/exploit.1.9.2.yaml +2 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/exploit.1.9.3.yaml +2 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/issue48.txt +20 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/issue49.yml +0 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/libyaml_checker_spec.rb +69 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/psych_resolver_spec.rb +10 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/resolver_specs.rb +278 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/safe_yaml_spec.rb +731 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/spec_helper.rb +42 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/support/exploitable_back_door.rb +29 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/syck_resolver_spec.rb +10 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb +11 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/to_date_spec.rb +60 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/to_float_spec.rb +42 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/to_integer_spec.rb +64 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/to_symbol_spec.rb +51 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/yaml_spec.rb +15 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/CODE_OF_CONDUCT.md +10 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/CONTRIBUTING.md +125 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/MIT-LICENSE +20 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/README.md +227 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/REVISION +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/Rakefile +432 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/VERSION +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/VERSION_DATE +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/VERSION_NAME +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/bin/sass +13 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/bin/sass-convert +12 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/bin/scss +13 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/extra/update_watch.rb +13 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/init.rb +18 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass.rb +109 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores.rb +15 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores/base.rb +88 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores/chain.rb +34 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores/filesystem.rb +60 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores/memory.rb +46 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores/null.rb +25 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/callbacks.rb +67 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/css.rb +408 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/engine.rb +1218 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/environment.rb +215 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/error.rb +198 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/exec.rb +9 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/exec/base.rb +199 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/exec/sass_convert.rb +283 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/exec/sass_scss.rb +440 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/features.rb +47 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/importers.rb +23 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/importers/base.rb +182 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/importers/deprecated_path.rb +51 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/importers/filesystem.rb +219 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/logger.rb +12 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/logger/base.rb +30 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/logger/log_level.rb +45 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/media.rb +210 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin.rb +134 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/compiler.rb +582 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/configuration.rb +134 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/generic.rb +15 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/merb.rb +48 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/rack.rb +60 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/rails.rb +47 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/staleness_checker.rb +199 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/railtie.rb +10 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/repl.rb +57 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/root.rb +7 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script.rb +66 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/css_lexer.rb +33 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/css_parser.rb +33 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/css_variable_warning.rb +52 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/functions.rb +2690 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/lexer.rb +464 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/parser.rb +825 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree.rb +16 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/funcall.rb +313 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/interpolation.rb +223 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/list_literal.rb +104 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/literal.rb +49 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/map_literal.rb +64 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/node.rb +127 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/operation.rb +129 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/selector.rb +26 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/string_interpolation.rb +125 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/unary_operation.rb +69 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/variable.rb +57 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value.rb +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/arg_list.rb +36 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/base.rb +241 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/bool.rb +35 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/color.rb +698 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/helpers.rb +272 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/list.rb +113 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/map.rb +70 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/null.rb +44 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/number.rb +561 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/string.rb +145 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss.rb +14 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss/css_parser.rb +56 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss/parser.rb +1236 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss/rx.rb +140 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss/static_parser.rb +366 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector.rb +323 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/abstract_sequence.rb +111 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/comma_sequence.rb +179 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/pseudo.rb +266 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/sequence.rb +636 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/simple.rb +116 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/simple_sequence.rb +344 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/shared.rb +76 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/source/map.rb +211 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/source/position.rb +39 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/source/range.rb +41 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/stack.rb +120 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/supports.rb +225 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/at_root_node.rb +83 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/charset_node.rb +22 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/comment_node.rb +82 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/content_node.rb +9 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/css_import_node.rb +68 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/debug_node.rb +18 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/directive_node.rb +59 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/each_node.rb +24 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/error_node.rb +18 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/extend_node.rb +43 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/for_node.rb +36 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/function_node.rb +44 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/if_node.rb +52 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/import_node.rb +75 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/keyframe_rule_node.rb +15 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/media_node.rb +48 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/mixin_def_node.rb +38 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/mixin_node.rb +52 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/node.rb +240 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/prop_node.rb +170 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/return_node.rb +19 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/root_node.rb +44 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/rule_node.rb +146 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/supports_node.rb +38 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/trace_node.rb +33 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/variable_node.rb +36 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/base.rb +72 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/check_nesting.rb +173 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/convert.rb +349 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/cssize.rb +373 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/deep_copy.rb +107 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/extend.rb +70 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb +563 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/set_options.rb +139 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/to_css.rb +409 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/warn_node.rb +18 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/while_node.rb +18 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util.rb +1350 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/cross_platform_random.rb +19 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/multibyte_string_scanner.rb +155 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/normalized_map.rb +129 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/ordered_hash.rb +192 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/subset_map.rb +109 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/test.rb +9 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/version.rb +124 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/rails/init.rb +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass-spec.yml +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/cache_test.rb +131 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/callbacks_test.rb +61 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/compiler_test.rb +236 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/conversion_test.rb +2171 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/css2sass_test.rb +526 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/css_variable_test.rb +132 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/data/hsl-rgb.txt +319 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/encoding_test.rb +219 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/engine_test.rb +3441 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/exec_test.rb +96 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/extend_test.rb +1707 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/fixtures/test_staleness_check_across_importers.css +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/fixtures/test_staleness_check_across_importers.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/functions_test.rb +1974 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/importer_test.rb +421 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/logger_test.rb +58 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/mock_importer.rb +49 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_results/more1.css +9 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_results/more1_with_line_comments.css +26 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_results/more_import.css +29 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_templates/_more_partial.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_templates/more1.sass +23 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_templates/more_import.sass +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/plugin_test.rb +556 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/alt.css +4 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/basic.css +9 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/cached_import_option.css +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/compact.css +5 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/complex.css +86 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/compressed.css +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/expanded.css +19 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/filename_fn.css +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/if.css +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/import.css +31 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/import_charset.css +5 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/import_charset_1_8.css +5 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/import_charset_ibm866.css +5 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/import_content.css +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/line_numbers.css +49 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/mixins.css +95 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/multiline.css +24 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/nested.css +22 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/options.css +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/parent_ref.css +13 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/script.css +16 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/scss_import.css +31 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/scss_importee.css +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/subdir/nested_subdir/nested_subdir.css +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/subdir/subdir.css +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/units.css +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/warn.css +0 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/warn_imported.css +0 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/script_conversion_test.rb +357 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/script_test.rb +1422 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/scss/css_test.rb +1281 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/scss/rx_test.rb +160 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/scss/scss_test.rb +4157 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/scss/test_helper.rb +37 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/source_map_test.rb +1055 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/superselector_test.rb +210 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_cached_import_option_partial.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_double_import_loop2.sass +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_filename_fn_import.scss +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_imported_charset_ibm866.sass +4 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_imported_charset_utf8.sass +4 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_imported_content.sass +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_partial.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_same_name_different_partiality.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/alt.sass +16 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/basic.sass +23 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/bork1.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/bork2.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/bork3.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/bork4.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/bork5.sass +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/cached_import_option.scss +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/compact.sass +17 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/complex.sass +305 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/compressed.sass +15 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/double_import_loop1.sass +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/expanded.sass +17 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/filename_fn.scss +18 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/if.sass +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/import.sass +12 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/import_charset.sass +9 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/import_charset_1_8.sass +6 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/import_charset_ibm866.sass +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/import_content.sass +4 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/importee.less +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/importee.sass +19 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/line_numbers.sass +13 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/mixin_bork.sass +5 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/mixins.sass +76 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/multiline.sass +20 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested.sass +25 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_bork1.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_bork2.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_bork3.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_bork4.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_import.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_mixin_bork.sass +6 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/options.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/parent_ref.sass +25 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/same_name_different_ext.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/same_name_different_ext.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/same_name_different_partiality.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/script.sass +101 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/scss_import.scss +12 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/scss_importee.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/single_import_loop.sass +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/subdir/import_up1.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/subdir/import_up2.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/subdir/nested_subdir/_nested_partial.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/subdir/nested_subdir/nested_subdir.sass +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/subdir/subdir.sass +6 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/units.sass +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/warn.sass +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/warn_imported.sass +4 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/test_helper.rb +8 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/util/multibyte_string_scanner_test.rb +147 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/util/normalized_map_test.rb +51 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/util/subset_map_test.rb +91 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/util_test.rb +438 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/value_helpers_test.rb +179 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/test_helper.rb +110 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/CHANGELOG.md +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/CONTRIBUTING.md +38 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/Gemfile +20 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/Guardfile +8 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/LICENSE +20 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/README.md +349 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/Rakefile +5 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/Vagrantfile +96 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen.rb +54 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapter.rb +327 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapters/bsd.rb +75 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapters/darwin.rb +48 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapters/linux.rb +81 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapters/polling.rb +58 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapters/windows.rb +91 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/directory_record.rb +406 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/listener.rb +323 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/turnstile.rb +32 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/version.rb +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/listen.gemspec +28 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapter_spec.rb +149 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapters/bsd_spec.rb +36 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapters/darwin_spec.rb +37 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapters/linux_spec.rb +47 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapters/polling_spec.rb +68 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapters/windows_spec.rb +30 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/directory_record_spec.rb +1250 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/listener_spec.rb +258 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/turnstile_spec.rb +56 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen_spec.rb +67 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/spec_helper.rb +25 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/support/adapter_helper.rb +666 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/support/directory_record_helper.rb +57 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/support/fixtures_helper.rb +29 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/support/listeners_helper.rb +179 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/support/platform_helper.rb +15 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/History.txt +278 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/Manifest.txt +13 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/README.txt +64 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/Rakefile +12 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/composite_sexp_processor.rb +49 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/pt_testcase.rb +3125 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/sexp.rb +338 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/sexp_processor.rb +695 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/unique.rb +15 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/test/test_composite_sexp_processor.rb +69 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/test/test_environment.rb +94 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/test/test_sexp.rb +356 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/test/test_sexp_processor.rb +373 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/CHANGES +426 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/Gemfile +69 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/LICENSE +21 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/README.jp.md +1205 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/README.md +1205 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/Rakefile +100 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/context.rb +11 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/profile-parser.rb +10 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/profile-render.rb +12 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/run-benchmarks.rb +119 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/run-diffbench.rb +21 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/view.erb +23 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/view.haml +18 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/view.slim +17 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/bin/slimrb +6 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/include.md +20 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/jp/include.md +20 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/jp/logic_less.md +137 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/jp/smart.md +102 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/jp/translator.md +28 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/logic_less.md +137 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/smart.md +103 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/translator.md +28 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim.rb +14 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/code_attributes.rb +67 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/command.rb +128 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/controls.rb +60 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/do_inserter.rb +33 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/embedded.rb +273 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/end_inserter.rb +62 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/engine.rb +41 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/erb_converter.rb +14 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/filter.rb +30 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/grammar.rb +20 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/include.rb +57 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/interpolation.rb +35 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/logic_less.rb +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/logic_less/context.rb +127 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/logic_less/filter.rb +80 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/parser.rb +527 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/smart.rb +8 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/smart/escaper.rb +42 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/smart/filter.rb +96 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/smart/parser.rb +36 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/splat/builder.rb +101 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/splat/filter.rb +91 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/template.rb +19 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/translator.rb +118 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/version.rb +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/slim.gemspec +24 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/helper.rb +211 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_code_blocks.rb +183 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_code_escaping.rb +150 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_code_evaluation.rb +180 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_code_output.rb +168 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_code_structure.rb +168 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_commands.rb +223 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_embedded_engines.rb +242 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_encoding.rb +28 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_erb_converter.rb +67 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_html_attributes.rb +268 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_html_escaping.rb +65 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_html_structure.rb +537 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_parser_errors.rb +148 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_pretty.rb +166 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_ruby_errors.rb +207 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_slim_template.rb +77 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_tabs.rb +169 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_text_interpolation.rb +79 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_thread_options.rb +18 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_unicode.rb +16 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/include/files/recursive.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/include/files/slimfile.slim +3 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/include/files/subdir/test.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/include/files/textfile +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/include/test_include.rb +24 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/literate/TESTS.md +1290 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/literate/helper.rb +15 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/literate/run.rb +92 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/logic_less/test_logic_less.rb +295 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/Rakefile +7 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/controllers/application_controller.rb +2 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/controllers/entries_controller.rb +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/controllers/slim_controller.rb +40 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/helpers/application_helper.rb +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/models/entry.rb +16 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/entries/edit.html.slim +3 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/layouts/application.html.slim +10 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/_partial.html.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/content_for.html.slim +7 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/erb.html.erb +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/form_for.html.slim +2 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/helper.html.slim +4 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/integers.html.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/no_layout.html.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/normal.html.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/partial.html.slim +2 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/splat.html.slim +2 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/thread_options.html.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/variables.html.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/xml.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config.ru +4 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/application.rb +44 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/boot.rb +10 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/environment.rb +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/environments/test.rb +34 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/initializers/backtrace_silencers.rb +7 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/initializers/inflections.rb +10 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/initializers/mime_types.rb +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/initializers/secret_token.rb +7 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/initializers/session_store.rb +8 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/locales/en.yml +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/routes.rb +60 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/script/rails +6 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/test/helper.rb +31 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/test/test_slim.rb +90 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/smart/test_smart_text.rb +296 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/translator/test_translator.rb +76 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/CHANGES +235 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/EXPRESSIONS.md +261 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/Gemfile +3 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/LICENSE +20 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/README.md +267 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/Rakefile +25 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple.rb +64 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/engine.rb +67 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/erb/engine.rb +15 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/erb/parser.rb +40 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/erb/template.rb +11 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/erb/trimming.rb +23 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/exceptions.rb +13 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filter.rb +9 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/code_merger.rb +30 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/control_flow.rb +42 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/dynamic_inliner.rb +71 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/encoding.rb +24 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/eraser.rb +22 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/escapable.rb +40 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/multi_flattener.rb +25 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/remove_bom.rb +13 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/static_merger.rb +37 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/validator.rb +15 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generator.rb +88 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generators/array.rb +21 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generators/array_buffer.rb +28 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generators/erb.rb +32 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generators/rails_output_buffer.rb +35 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generators/string_buffer.rb +25 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/grammar.rb +57 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/attribute_merger.rb +47 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/attribute_remover.rb +35 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/attribute_sorter.rb +21 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/dispatcher.rb +31 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/fast.rb +130 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/filter.rb +21 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/pretty.rb +103 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/safe.rb +23 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/map.rb +105 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/mixins/dispatcher.rb +158 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/mixins/engine_dsl.rb +145 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/mixins/grammar_dsl.rb +170 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/mixins/options.rb +87 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/mixins/template.rb +28 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/parser.rb +8 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/templates.rb +11 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/templates/rails.rb +26 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/templates/tilt.rb +46 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/utils.rb +90 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/version.rb +3 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/temple.gemspec +29 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_code_merger.rb +38 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_control_flow.rb +90 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_dynamic_inliner.rb +95 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_eraser.rb +55 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_escapable.rb +49 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_multi_flattener.rb +33 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_static_merger.rb +41 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/helper.rb +30 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/html/test_attribute_merger.rb +76 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/html/test_attribute_remover.rb +43 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/html/test_attribute_sorter.rb +48 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/html/test_fast.rb +97 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/html/test_pretty.rb +55 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/mixins/test_dispatcher.rb +70 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/mixins/test_grammar_dsl.rb +86 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_engine.rb +189 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_erb.rb +61 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_filter.rb +29 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_generator.rb +158 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_grammar.rb +47 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_map.rb +39 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_utils.rb +39 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/Gemfile +4 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/History.rdoc +48 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/Manifest +27 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/README.rdoc +240 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/Rakefile +9 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/Todo.rdoc +14 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/examples/examples.rb +83 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table.rb +26 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/cell.rb +92 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/import.rb +3 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/row.rb +48 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/separator.rb +14 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/style.rb +62 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/table.rb +226 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/table_helper.rb +9 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/version.rb +5 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/terminal-table.gemspec +24 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/CHANGELOG.md +84 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/COPYING +18 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/Gemfile +64 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/HACKING +16 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/README.md +226 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/Rakefile +105 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/bin/tilt +122 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/docs/TEMPLATES.md +524 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/docs/common.css +14 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt.rb +159 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/asciidoc.rb +27 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/babel.rb +15 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/bluecloth.rb +24 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/builder.rb +33 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/coffee.rb +58 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/creole.rb +25 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/csv.rb +65 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/erb.rb +57 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/erubis.rb +43 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/etanni.rb +27 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/haml.rb +58 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/kramdown.rb +25 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/less.rb +30 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/liquid.rb +38 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/mapping.rb +265 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/markaby.rb +45 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/maruku.rb +22 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/nokogiri.rb +36 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/plain.rb +16 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/prawn.rb +43 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/radius.rb +48 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/rdiscount.rb +39 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/rdoc.rb +40 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/redcarpet.rb +83 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/redcloth.rb +23 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/sass.rb +41 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/string.rb +21 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/template.rb +295 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/wikicloth.rb +22 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/yajl.rb +87 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/man/index.txt +2 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/man/tilt.1.ronn +59 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/locals.mab +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/markaby.mab +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/markaby_other_static.mab +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/render_twice.mab +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/scope.mab +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/yielding.mab +2 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/test_helper.rb +64 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_asciidoctor_test.rb +50 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_babeltemplate.rb +33 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_blueclothtemplate_test.rb +33 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_buildertemplate_test.rb +59 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_cache_test.rb +43 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_coffeescripttemplate_test.rb +141 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_compilesite_test.rb +51 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_creoletemplate_test.rb +24 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_csv_test.rb +77 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_erbtemplate_test.rb +239 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_erubistemplate_test.rb +151 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_etannitemplate_test.rb +174 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_hamltemplate_test.rb +166 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_kramdown_test.rb +20 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_lesstemplate_test.less +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_lesstemplate_test.rb +42 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_liquidtemplate_test.rb +78 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_mapping_test.rb +229 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_markaby_test.rb +88 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_markdown_test.rb +177 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_marukutemplate_test.rb +36 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_metadata_test.rb +42 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_nokogiritemplate_test.rb +87 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_prawntemplate.prawn +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_prawntemplate_test.rb +75 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_radiustemplate_test.rb +75 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_rdiscounttemplate_test.rb +43 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_rdoctemplate_test.rb +29 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_redcarpettemplate_test.rb +54 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_redclothtemplate_test.rb +36 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_sasstemplate_test.rb +41 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_stringtemplate_test.rb +171 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_template_test.rb +308 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_test.rb +60 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_wikiclothtemplate_test.rb +32 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_yajltemplate_test.rb +101 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/tilt.gemspec +114 -0
- data/lib/brakeman.rb +9 -1
- data/lib/brakeman/call_index.rb +1 -1
- data/lib/brakeman/checks/check_content_tag.rb +1 -1
- data/lib/brakeman/checks/check_cross_site_scripting.rb +1 -1
- data/lib/brakeman/checks/check_execute.rb +4 -0
- data/lib/brakeman/checks/check_forgery_setting.rb +3 -2
- data/lib/brakeman/checks/check_link_to.rb +1 -1
- data/lib/brakeman/checks/check_link_to_href.rb +2 -2
- data/lib/brakeman/checks/check_mass_assignment.rb +1 -1
- data/lib/brakeman/checks/check_redirect.rb +6 -0
- data/lib/brakeman/checks/check_secrets.rb +40 -0
- data/lib/brakeman/checks/check_sql.rb +1 -1
- data/lib/brakeman/processor.rb +6 -6
- data/lib/brakeman/processors/alias_processor.rb +29 -3
- data/lib/brakeman/processors/base_processor.rb +35 -4
- data/lib/brakeman/processors/controller_alias_processor.rb +4 -4
- data/lib/brakeman/processors/haml_template_processor.rb +1 -1
- data/lib/brakeman/processors/lib/basic_processor.rb +18 -0
- data/lib/brakeman/processors/lib/rails2_config_processor.rb +3 -2
- data/lib/brakeman/processors/lib/rails2_route_processor.rb +2 -1
- data/lib/brakeman/processors/lib/rails3_config_processor.rb +3 -2
- data/lib/brakeman/processors/lib/rails3_route_processor.rb +2 -1
- data/lib/brakeman/processors/template_alias_processor.rb +4 -4
- data/lib/brakeman/processors/template_processor.rb +1 -0
- data/lib/brakeman/report/report_codeclimate.rb +2 -1
- data/lib/brakeman/scanner.rb +1 -1
- data/lib/brakeman/tracker.rb +11 -1
- data/lib/brakeman/tracker/constants.rb +101 -0
- data/lib/brakeman/util.rb +4 -0
- data/lib/brakeman/version.rb +1 -1
- data/lib/brakeman/warning_codes.rb +1 -0
- data/lib/ruby_parser/bm_sexp.rb +6 -0
- metadata +1171 -162
@@ -0,0 +1,2506 @@
|
|
1
|
+
# -*- racc -*-
|
2
|
+
|
3
|
+
#if defined(RUBY20)
|
4
|
+
class Ruby20Parser
|
5
|
+
#elif defined(RUBY21)
|
6
|
+
class Ruby21Parser
|
7
|
+
#elif defined(RUBY22)
|
8
|
+
class Ruby22Parser
|
9
|
+
#elif defined(RUBY23)
|
10
|
+
class Ruby23Parser
|
11
|
+
#endif
|
12
|
+
|
13
|
+
token kCLASS kMODULE kDEF kUNDEF kBEGIN kRESCUE kENSURE kEND kIF kUNLESS
|
14
|
+
kTHEN kELSIF kELSE kCASE kWHEN kWHILE kUNTIL kFOR kBREAK kNEXT
|
15
|
+
kREDO kRETRY kIN kDO kDO_COND kDO_BLOCK kDO_LAMBDA kRETURN kYIELD kSUPER
|
16
|
+
kSELF kNIL kTRUE kFALSE kAND kOR kNOT kIF_MOD kUNLESS_MOD kWHILE_MOD
|
17
|
+
kUNTIL_MOD kRESCUE_MOD kALIAS kDEFINED klBEGIN klEND k__LINE__
|
18
|
+
k__FILE__ k__ENCODING__ tIDENTIFIER tFID tGVAR tIVAR tCONSTANT
|
19
|
+
tLABEL tCVAR tNTH_REF tBACK_REF tSTRING_CONTENT tINTEGER tFLOAT
|
20
|
+
tREGEXP_END tUPLUS tUMINUS tUMINUS_NUM tPOW tCMP tEQ tEQQ tNEQ
|
21
|
+
tGEQ tLEQ tANDOP tOROP tMATCH tNMATCH tDOT tDOT2 tDOT3 tAREF
|
22
|
+
tASET tLSHFT tRSHFT tCOLON2 tCOLON3 tOP_ASGN tASSOC tLPAREN
|
23
|
+
tLPAREN2 tRPAREN tLPAREN_ARG tLBRACK tLBRACK2 tRBRACK tLBRACE
|
24
|
+
tLBRACE_ARG tSTAR tSTAR2 tAMPER tAMPER2 tTILDE tPERCENT tDIVIDE
|
25
|
+
tPLUS tMINUS tLT tGT tPIPE tBANG tCARET tLCURLY tRCURLY
|
26
|
+
tBACK_REF2 tSYMBEG tSTRING_BEG tXSTRING_BEG tREGEXP_BEG
|
27
|
+
tWORDS_BEG tQWORDS_BEG tSTRING_DBEG tSTRING_DVAR tSTRING_END
|
28
|
+
tSTRING tSYMBOL tNL tEH tCOLON tCOMMA tSPACE tSEMI tLAMBDA
|
29
|
+
tLAMBEG tDSTAR tCHAR tSYMBOLS_BEG tQSYMBOLS_BEG tSTRING_DEND tUBANG
|
30
|
+
#if defined(RUBY21) || defined(RUBY22) || defined(RUBY23))
|
31
|
+
tRATIONAL tIMAGINARY
|
32
|
+
#endif
|
33
|
+
#if defined(RUBY22 || defined(RUBY23))
|
34
|
+
tLABEL_END
|
35
|
+
#endif
|
36
|
+
#if defined(RUBY23)
|
37
|
+
tLONELY
|
38
|
+
#endif
|
39
|
+
|
40
|
+
prechigh
|
41
|
+
right tBANG tTILDE tUPLUS
|
42
|
+
right tPOW
|
43
|
+
right tUMINUS_NUM tUMINUS
|
44
|
+
left tSTAR2 tDIVIDE tPERCENT
|
45
|
+
left tPLUS tMINUS
|
46
|
+
left tLSHFT tRSHFT
|
47
|
+
left tAMPER2
|
48
|
+
left tPIPE tCARET
|
49
|
+
left tGT tGEQ tLT tLEQ
|
50
|
+
nonassoc tCMP tEQ tEQQ tNEQ tMATCH tNMATCH
|
51
|
+
left tANDOP
|
52
|
+
left tOROP
|
53
|
+
nonassoc tDOT2 tDOT3
|
54
|
+
right tEH tCOLON
|
55
|
+
left kRESCUE_MOD
|
56
|
+
right tEQL tOP_ASGN
|
57
|
+
nonassoc kDEFINED
|
58
|
+
right kNOT
|
59
|
+
left kOR kAND
|
60
|
+
nonassoc kIF_MOD kUNLESS_MOD kWHILE_MOD kUNTIL_MOD
|
61
|
+
nonassoc tLBRACE_ARG
|
62
|
+
nonassoc tLOWEST
|
63
|
+
preclow
|
64
|
+
|
65
|
+
rule
|
66
|
+
|
67
|
+
program: {
|
68
|
+
self.lexer.lex_state = :expr_beg
|
69
|
+
}
|
70
|
+
top_compstmt
|
71
|
+
{
|
72
|
+
result = new_compstmt val
|
73
|
+
}
|
74
|
+
|
75
|
+
top_compstmt: top_stmts opt_terms
|
76
|
+
{
|
77
|
+
result = val[0]
|
78
|
+
}
|
79
|
+
|
80
|
+
top_stmts: none
|
81
|
+
| top_stmt
|
82
|
+
| top_stmts terms top_stmt
|
83
|
+
{
|
84
|
+
result = self.block_append val[0], val[2]
|
85
|
+
}
|
86
|
+
| error top_stmt
|
87
|
+
|
88
|
+
top_stmt: stmt
|
89
|
+
{
|
90
|
+
result = val[0]
|
91
|
+
|
92
|
+
# TODO: remove once I have more confidence this is fixed
|
93
|
+
# result.each_of_type :call_args do |s|
|
94
|
+
# debug20 666, s, result
|
95
|
+
# end
|
96
|
+
}
|
97
|
+
| klBEGIN
|
98
|
+
{
|
99
|
+
if (self.in_def || self.in_single > 0) then
|
100
|
+
debug20 1
|
101
|
+
yyerror "BEGIN in method"
|
102
|
+
end
|
103
|
+
self.env.extend
|
104
|
+
}
|
105
|
+
tLCURLY top_compstmt tRCURLY
|
106
|
+
{
|
107
|
+
result = new_iter s(:preexe), nil, val[3]
|
108
|
+
}
|
109
|
+
|
110
|
+
bodystmt: compstmt opt_rescue opt_else opt_ensure
|
111
|
+
{
|
112
|
+
result = new_body val
|
113
|
+
}
|
114
|
+
|
115
|
+
compstmt: stmts opt_terms
|
116
|
+
{
|
117
|
+
result = new_compstmt val
|
118
|
+
}
|
119
|
+
|
120
|
+
stmts: none
|
121
|
+
| stmt
|
122
|
+
| stmts terms stmt
|
123
|
+
{
|
124
|
+
result = self.block_append val[0], val[2]
|
125
|
+
}
|
126
|
+
| error stmt
|
127
|
+
{
|
128
|
+
result = val[1]
|
129
|
+
debug20 2, val, result
|
130
|
+
}
|
131
|
+
|
132
|
+
stmt: kALIAS fitem
|
133
|
+
{
|
134
|
+
lexer.lex_state = :expr_fname
|
135
|
+
result = self.lexer.lineno
|
136
|
+
}
|
137
|
+
fitem
|
138
|
+
{
|
139
|
+
result = s(:alias, val[1], val[3]).line(val[2])
|
140
|
+
}
|
141
|
+
| kALIAS tGVAR tGVAR
|
142
|
+
{
|
143
|
+
result = s(:valias, val[1].to_sym, val[2].to_sym)
|
144
|
+
}
|
145
|
+
| kALIAS tGVAR tBACK_REF
|
146
|
+
{
|
147
|
+
result = s(:valias, val[1].to_sym, :"$#{val[2]}")
|
148
|
+
}
|
149
|
+
| kALIAS tGVAR tNTH_REF
|
150
|
+
{
|
151
|
+
yyerror "can't make alias for the number variables"
|
152
|
+
}
|
153
|
+
| kUNDEF undef_list
|
154
|
+
{
|
155
|
+
result = val[1]
|
156
|
+
}
|
157
|
+
| stmt kIF_MOD expr_value
|
158
|
+
{
|
159
|
+
result = new_if val[2], val[0], nil
|
160
|
+
}
|
161
|
+
| stmt kUNLESS_MOD expr_value
|
162
|
+
{
|
163
|
+
result = new_if val[2], nil, val[0]
|
164
|
+
}
|
165
|
+
| stmt kWHILE_MOD expr_value
|
166
|
+
{
|
167
|
+
result = new_while val[0], val[2], true
|
168
|
+
}
|
169
|
+
| stmt kUNTIL_MOD expr_value
|
170
|
+
{
|
171
|
+
result = new_until val[0], val[2], true
|
172
|
+
}
|
173
|
+
| stmt kRESCUE_MOD stmt
|
174
|
+
{
|
175
|
+
result = s(:rescue, val[0], new_resbody(s(:array), val[2]))
|
176
|
+
}
|
177
|
+
| klEND tLCURLY compstmt tRCURLY
|
178
|
+
{
|
179
|
+
if (self.in_def || self.in_single > 0) then
|
180
|
+
debug20 3
|
181
|
+
yyerror "END in method; use at_exit"
|
182
|
+
end
|
183
|
+
result = new_iter s(:postexe), 0, val[2]
|
184
|
+
}
|
185
|
+
| command_asgn
|
186
|
+
| mlhs tEQL command_call
|
187
|
+
{
|
188
|
+
result = new_masgn val[0], val[2], :wrap
|
189
|
+
}
|
190
|
+
| var_lhs tOP_ASGN command_call
|
191
|
+
{
|
192
|
+
result = new_op_asgn val
|
193
|
+
}
|
194
|
+
| primary_value tLBRACK2 opt_call_args rbracket tOP_ASGN command_call
|
195
|
+
{
|
196
|
+
result = s(:op_asgn1, val[0], val[2], val[4].to_sym, val[5])
|
197
|
+
}
|
198
|
+
| primary_value tDOT tIDENTIFIER tOP_ASGN command_call
|
199
|
+
{
|
200
|
+
result = s(:op_asgn, val[0], val[4], val[2].to_sym, val[3].to_sym)
|
201
|
+
}
|
202
|
+
| primary_value tDOT tCONSTANT tOP_ASGN command_call
|
203
|
+
{
|
204
|
+
result = s(:op_asgn, val[0], val[4], val[2].to_sym, val[3].to_sym)
|
205
|
+
}
|
206
|
+
| primary_value tCOLON2 tCONSTANT tOP_ASGN command_call
|
207
|
+
{
|
208
|
+
result = s(:op_asgn, val[0], val[4], val[2], val[3])
|
209
|
+
debug20 4, val, result
|
210
|
+
}
|
211
|
+
| primary_value tCOLON2 tIDENTIFIER tOP_ASGN command_call
|
212
|
+
{
|
213
|
+
result = s(:op_asgn, val[0], val[4], val[2], val[3])
|
214
|
+
debug20 5, val, result
|
215
|
+
}
|
216
|
+
| backref tOP_ASGN command_call
|
217
|
+
{
|
218
|
+
self.backref_assign_error val[0]
|
219
|
+
}
|
220
|
+
| lhs tEQL mrhs
|
221
|
+
{
|
222
|
+
result = self.node_assign val[0], s(:svalue, val[2])
|
223
|
+
}
|
224
|
+
#if defined(RUBY20)
|
225
|
+
| mlhs tEQL arg_value
|
226
|
+
{
|
227
|
+
result = new_masgn val[0], val[2], :wrap
|
228
|
+
}
|
229
|
+
| mlhs tEQL mrhs
|
230
|
+
#elif defined(RUBY21) || defined(RUBY22 || defined(RUBY23))
|
231
|
+
| mlhs tEQL mrhs_arg
|
232
|
+
#endif
|
233
|
+
{
|
234
|
+
result = new_masgn val[0], val[2]
|
235
|
+
}
|
236
|
+
| expr
|
237
|
+
|
238
|
+
command_asgn: lhs tEQL command_call
|
239
|
+
{
|
240
|
+
result = self.node_assign val[0], val[2]
|
241
|
+
}
|
242
|
+
| lhs tEQL command_asgn
|
243
|
+
{
|
244
|
+
result = self.node_assign val[0], val[2]
|
245
|
+
}
|
246
|
+
|
247
|
+
expr: command_call
|
248
|
+
| expr kAND expr
|
249
|
+
{
|
250
|
+
result = logop(:and, val[0], val[2])
|
251
|
+
}
|
252
|
+
| expr kOR expr
|
253
|
+
{
|
254
|
+
result = logop(:or, val[0], val[2])
|
255
|
+
}
|
256
|
+
| kNOT opt_nl expr
|
257
|
+
{
|
258
|
+
result = s(:call, val[2], :"!")
|
259
|
+
}
|
260
|
+
| tBANG command_call
|
261
|
+
{
|
262
|
+
result = s(:call, val[1], :"!")
|
263
|
+
}
|
264
|
+
| arg
|
265
|
+
|
266
|
+
expr_value: expr
|
267
|
+
{
|
268
|
+
result = value_expr(val[0])
|
269
|
+
}
|
270
|
+
|
271
|
+
command_call: command
|
272
|
+
| block_command
|
273
|
+
|
274
|
+
block_command: block_call
|
275
|
+
| block_call dot_or_colon operation2 command_args
|
276
|
+
{
|
277
|
+
result = new_call val[0], val[2].to_sym, val[3]
|
278
|
+
}
|
279
|
+
|
280
|
+
cmd_brace_block: tLBRACE_ARG
|
281
|
+
{
|
282
|
+
self.env.extend(:dynamic)
|
283
|
+
result = self.lexer.lineno
|
284
|
+
}
|
285
|
+
opt_block_param
|
286
|
+
{
|
287
|
+
result = nil # self.env.dynamic.keys
|
288
|
+
}
|
289
|
+
compstmt tRCURLY
|
290
|
+
{
|
291
|
+
result = new_iter nil, val[2], val[4]
|
292
|
+
result.line = val[1]
|
293
|
+
|
294
|
+
self.env.unextend
|
295
|
+
}
|
296
|
+
|
297
|
+
fcall: operation
|
298
|
+
{
|
299
|
+
result = new_call nil, val[0].to_sym
|
300
|
+
}
|
301
|
+
|
302
|
+
command: fcall command_args =tLOWEST
|
303
|
+
{
|
304
|
+
result = val[0].concat val[1][1..-1] # REFACTOR pattern
|
305
|
+
}
|
306
|
+
| fcall command_args cmd_brace_block
|
307
|
+
{
|
308
|
+
result = val[0].concat val[1][1..-1]
|
309
|
+
if val[2] then
|
310
|
+
block_dup_check result, val[2]
|
311
|
+
|
312
|
+
result, operation = val[2], result
|
313
|
+
result.insert 1, operation
|
314
|
+
end
|
315
|
+
}
|
316
|
+
| primary_value tDOT operation2 command_args =tLOWEST
|
317
|
+
{
|
318
|
+
result = new_call val[0], val[2].to_sym, val[3]
|
319
|
+
}
|
320
|
+
#if defined(RUBY23)
|
321
|
+
| primary_value tLONELY operation2 command_args =tLOWEST
|
322
|
+
{
|
323
|
+
result = new_call val[0], val[2].to_sym, val[3]
|
324
|
+
result[0] = :safe_call
|
325
|
+
}
|
326
|
+
#endif
|
327
|
+
| primary_value tDOT operation2 command_args cmd_brace_block
|
328
|
+
{
|
329
|
+
recv, _, msg, args, block = val
|
330
|
+
call = new_call recv, msg.to_sym, args
|
331
|
+
|
332
|
+
block_dup_check call, block
|
333
|
+
|
334
|
+
block.insert 1, call
|
335
|
+
result = block
|
336
|
+
}
|
337
|
+
| primary_value tCOLON2 operation2 command_args =tLOWEST
|
338
|
+
{
|
339
|
+
result = new_call val[0], val[2].to_sym, val[3]
|
340
|
+
}
|
341
|
+
| primary_value tCOLON2 operation2 command_args cmd_brace_block
|
342
|
+
{
|
343
|
+
recv, _, msg, args, block = val
|
344
|
+
call = new_call recv, msg.to_sym, args
|
345
|
+
|
346
|
+
block_dup_check call, block
|
347
|
+
|
348
|
+
block.insert 1, call
|
349
|
+
result = block
|
350
|
+
}
|
351
|
+
| kSUPER command_args
|
352
|
+
{
|
353
|
+
result = new_super val[1]
|
354
|
+
}
|
355
|
+
| kYIELD command_args
|
356
|
+
{
|
357
|
+
result = new_yield val[1]
|
358
|
+
}
|
359
|
+
| kRETURN call_args
|
360
|
+
{
|
361
|
+
line = val[0].last
|
362
|
+
result = s(:return, ret_args(val[1])).line(line)
|
363
|
+
}
|
364
|
+
| kBREAK call_args
|
365
|
+
{
|
366
|
+
line = val[0].last
|
367
|
+
result = s(:break, ret_args(val[1])).line(line)
|
368
|
+
}
|
369
|
+
| kNEXT call_args
|
370
|
+
{
|
371
|
+
line = val[0].last
|
372
|
+
result = s(:next, ret_args(val[1])).line(line)
|
373
|
+
}
|
374
|
+
|
375
|
+
mlhs: mlhs_basic
|
376
|
+
| tLPAREN mlhs_inner rparen
|
377
|
+
{
|
378
|
+
result = val[1]
|
379
|
+
}
|
380
|
+
|
381
|
+
mlhs_inner: mlhs_basic
|
382
|
+
| tLPAREN mlhs_inner rparen
|
383
|
+
{
|
384
|
+
result = s(:masgn, s(:array, val[1]))
|
385
|
+
}
|
386
|
+
|
387
|
+
mlhs_basic: mlhs_head
|
388
|
+
{
|
389
|
+
result = s(:masgn, val[0])
|
390
|
+
}
|
391
|
+
| mlhs_head mlhs_item
|
392
|
+
{
|
393
|
+
result = s(:masgn, val[0] << val[1].compact)
|
394
|
+
}
|
395
|
+
| mlhs_head tSTAR mlhs_node
|
396
|
+
{
|
397
|
+
result = s(:masgn, val[0] << s(:splat, val[2]))
|
398
|
+
}
|
399
|
+
| mlhs_head tSTAR mlhs_node tCOMMA mlhs_post
|
400
|
+
{
|
401
|
+
ary1, _, splat, _, ary2 = val
|
402
|
+
|
403
|
+
result = list_append ary1, s(:splat, splat)
|
404
|
+
result.concat ary2[1..-1]
|
405
|
+
result = s(:masgn, result)
|
406
|
+
}
|
407
|
+
| mlhs_head tSTAR
|
408
|
+
{
|
409
|
+
result = s(:masgn, val[0] << s(:splat))
|
410
|
+
}
|
411
|
+
| mlhs_head tSTAR tCOMMA mlhs_post
|
412
|
+
{
|
413
|
+
ary = list_append val[0], s(:splat)
|
414
|
+
ary.concat val[3][1..-1]
|
415
|
+
result = s(:masgn, ary)
|
416
|
+
}
|
417
|
+
| tSTAR mlhs_node
|
418
|
+
{
|
419
|
+
result = s(:masgn, s(:array, s(:splat, val[1])))
|
420
|
+
}
|
421
|
+
| tSTAR mlhs_node tCOMMA mlhs_post
|
422
|
+
{
|
423
|
+
ary = s(:array, s(:splat, val[1]))
|
424
|
+
ary.concat val[3][1..-1]
|
425
|
+
result = s(:masgn, ary)
|
426
|
+
}
|
427
|
+
| tSTAR
|
428
|
+
{
|
429
|
+
result = s(:masgn, s(:array, s(:splat)))
|
430
|
+
}
|
431
|
+
| tSTAR tCOMMA mlhs_post
|
432
|
+
{
|
433
|
+
result = s(:masgn, s(:array, s(:splat), *val[2][1..-1]))
|
434
|
+
}
|
435
|
+
|
436
|
+
mlhs_item: mlhs_node
|
437
|
+
| tLPAREN mlhs_inner rparen
|
438
|
+
{
|
439
|
+
result = val[1]
|
440
|
+
}
|
441
|
+
|
442
|
+
mlhs_head: mlhs_item tCOMMA
|
443
|
+
{
|
444
|
+
result = s(:array, val[0])
|
445
|
+
}
|
446
|
+
| mlhs_head mlhs_item tCOMMA
|
447
|
+
{
|
448
|
+
result = val[0] << val[1].compact
|
449
|
+
}
|
450
|
+
|
451
|
+
mlhs_post: mlhs_item
|
452
|
+
{
|
453
|
+
result = s(:array, val[0])
|
454
|
+
}
|
455
|
+
| mlhs_post tCOMMA mlhs_item
|
456
|
+
{
|
457
|
+
result = list_append val[0], val[2]
|
458
|
+
}
|
459
|
+
|
460
|
+
mlhs_node: user_variable
|
461
|
+
{
|
462
|
+
result = self.assignable val[0]
|
463
|
+
}
|
464
|
+
| keyword_variable
|
465
|
+
{
|
466
|
+
result = self.assignable val[0]
|
467
|
+
}
|
468
|
+
| primary_value tLBRACK2 opt_call_args rbracket
|
469
|
+
{
|
470
|
+
result = self.aryset val[0], val[2]
|
471
|
+
}
|
472
|
+
| primary_value tDOT tIDENTIFIER
|
473
|
+
{
|
474
|
+
result = s(:attrasgn, val[0], :"#{val[2]}=")
|
475
|
+
}
|
476
|
+
#if defined(RUBY23)
|
477
|
+
| primary_value tLONELY tIDENTIFIER
|
478
|
+
{
|
479
|
+
result = s(:attrasgnx, val[0], :"#{val[2]}=")
|
480
|
+
}
|
481
|
+
#endif
|
482
|
+
| primary_value tCOLON2 tIDENTIFIER
|
483
|
+
{
|
484
|
+
result = s(:attrasgn, val[0], :"#{val[2]}=")
|
485
|
+
}
|
486
|
+
| primary_value tDOT tCONSTANT
|
487
|
+
{
|
488
|
+
result = s(:attrasgn, val[0], :"#{val[2]}=")
|
489
|
+
}
|
490
|
+
#if defined(RUBY23)
|
491
|
+
| primary_value tLONELY tCONSTANT
|
492
|
+
{
|
493
|
+
result = s(:attrasgnx, val[0], :"#{val[2]}=")
|
494
|
+
}
|
495
|
+
#endif
|
496
|
+
| primary_value tCOLON2 tCONSTANT
|
497
|
+
{
|
498
|
+
if (self.in_def || self.in_single > 0) then
|
499
|
+
debug20 7
|
500
|
+
yyerror "dynamic constant assignment"
|
501
|
+
end
|
502
|
+
|
503
|
+
result = s(:const, s(:colon2, val[0], val[2].to_sym), nil)
|
504
|
+
}
|
505
|
+
| tCOLON3 tCONSTANT
|
506
|
+
{
|
507
|
+
if (self.in_def || self.in_single > 0) then
|
508
|
+
debug20 8
|
509
|
+
yyerror "dynamic constant assignment"
|
510
|
+
end
|
511
|
+
|
512
|
+
result = s(:const, nil, s(:colon3, val[1].to_sym))
|
513
|
+
}
|
514
|
+
| backref
|
515
|
+
{
|
516
|
+
self.backref_assign_error val[0]
|
517
|
+
}
|
518
|
+
|
519
|
+
lhs: user_variable
|
520
|
+
{
|
521
|
+
result = self.assignable val[0]
|
522
|
+
}
|
523
|
+
| keyword_variable
|
524
|
+
{
|
525
|
+
result = self.assignable val[0]
|
526
|
+
debug20 9, val, result
|
527
|
+
}
|
528
|
+
| primary_value tLBRACK2 opt_call_args rbracket
|
529
|
+
{
|
530
|
+
result = self.aryset val[0], val[2]
|
531
|
+
}
|
532
|
+
| primary_value tDOT tIDENTIFIER # REFACTOR
|
533
|
+
{
|
534
|
+
result = s(:attrasgn, val[0], :"#{val[2]}=")
|
535
|
+
}
|
536
|
+
#if defined(RUBY23)
|
537
|
+
| primary_value tLONELY tIDENTIFIER
|
538
|
+
{
|
539
|
+
result = s(:safe_attrasgn, val[0], :"#{val[2]}=")
|
540
|
+
}
|
541
|
+
#endif
|
542
|
+
| primary_value tCOLON2 tIDENTIFIER
|
543
|
+
{
|
544
|
+
result = s(:attrasgn, val[0], :"#{val[2]}=")
|
545
|
+
}
|
546
|
+
| primary_value tDOT tCONSTANT # REFACTOR?
|
547
|
+
{
|
548
|
+
result = s(:attrasgn, val[0], :"#{val[2]}=")
|
549
|
+
}
|
550
|
+
#if defined(RUBY23)
|
551
|
+
| primary_value tLONELY tCONSTANT
|
552
|
+
{
|
553
|
+
result = s(:safe_attrasgn, val[0], :"#{val[2]}=")
|
554
|
+
}
|
555
|
+
#endif
|
556
|
+
| primary_value tCOLON2 tCONSTANT
|
557
|
+
{
|
558
|
+
if (self.in_def || self.in_single > 0) then
|
559
|
+
debug20 10
|
560
|
+
yyerror "dynamic constant assignment"
|
561
|
+
end
|
562
|
+
|
563
|
+
result = s(:const, s(:colon2, val[0], val[2].to_sym))
|
564
|
+
}
|
565
|
+
| tCOLON3 tCONSTANT
|
566
|
+
{
|
567
|
+
if (self.in_def || self.in_single > 0) then
|
568
|
+
debug20 11
|
569
|
+
yyerror "dynamic constant assignment"
|
570
|
+
end
|
571
|
+
|
572
|
+
result = s(:const, s(:colon3, val[1].to_sym))
|
573
|
+
}
|
574
|
+
| backref
|
575
|
+
{
|
576
|
+
self.backref_assign_error val[0]
|
577
|
+
}
|
578
|
+
|
579
|
+
cname: tIDENTIFIER
|
580
|
+
{
|
581
|
+
yyerror "class/module name must be CONSTANT"
|
582
|
+
}
|
583
|
+
| tCONSTANT
|
584
|
+
|
585
|
+
cpath: tCOLON3 cname
|
586
|
+
{
|
587
|
+
result = s(:colon3, val[1].to_sym)
|
588
|
+
}
|
589
|
+
| cname
|
590
|
+
{
|
591
|
+
result = val[0].to_sym
|
592
|
+
}
|
593
|
+
| primary_value tCOLON2 cname
|
594
|
+
{
|
595
|
+
result = s(:colon2, val[0], val[2].to_sym)
|
596
|
+
}
|
597
|
+
|
598
|
+
fname: tIDENTIFIER | tCONSTANT | tFID
|
599
|
+
| op
|
600
|
+
{
|
601
|
+
lexer.lex_state = :expr_end
|
602
|
+
result = val[0]
|
603
|
+
}
|
604
|
+
|
605
|
+
| reswords
|
606
|
+
{
|
607
|
+
lexer.lex_state = :expr_end
|
608
|
+
result = val[0]
|
609
|
+
}
|
610
|
+
|
611
|
+
fsym: fname | symbol
|
612
|
+
|
613
|
+
fitem: fsym
|
614
|
+
{
|
615
|
+
result = s(:lit, val[0].to_sym)
|
616
|
+
}
|
617
|
+
| dsym
|
618
|
+
|
619
|
+
undef_list: fitem
|
620
|
+
{
|
621
|
+
result = new_undef val[0]
|
622
|
+
}
|
623
|
+
|
|
624
|
+
undef_list tCOMMA
|
625
|
+
{
|
626
|
+
lexer.lex_state = :expr_fname
|
627
|
+
}
|
628
|
+
fitem
|
629
|
+
{
|
630
|
+
result = new_undef val[0], val[3]
|
631
|
+
}
|
632
|
+
|
633
|
+
op: tPIPE | tCARET | tAMPER2 | tCMP | tEQ | tEQQ
|
634
|
+
| tMATCH | tNMATCH | tGT | tGEQ | tLT | tLEQ
|
635
|
+
| tNEQ | tLSHFT | tRSHFT | tPLUS | tMINUS | tSTAR2
|
636
|
+
| tSTAR | tDIVIDE | tPERCENT | tPOW | tDSTAR | tBANG | tTILDE
|
637
|
+
| tUPLUS | tUMINUS | tAREF | tASET | tBACK_REF2
|
638
|
+
#if defined(RUBY20)
|
639
|
+
| tUBANG
|
640
|
+
#endif
|
641
|
+
|
642
|
+
reswords: k__LINE__ | k__FILE__ | k__ENCODING__ | klBEGIN | klEND
|
643
|
+
| kALIAS | kAND | kBEGIN | kBREAK | kCASE
|
644
|
+
| kCLASS | kDEF | kDEFINED | kDO | kELSE
|
645
|
+
| kELSIF | kEND | kENSURE | kFALSE | kFOR
|
646
|
+
| kIN | kMODULE | kNEXT | kNIL | kNOT
|
647
|
+
| kOR | kREDO | kRESCUE | kRETRY | kRETURN
|
648
|
+
| kSELF | kSUPER | kTHEN | kTRUE | kUNDEF
|
649
|
+
| kWHEN | kYIELD | kIF | kUNLESS | kWHILE
|
650
|
+
| kUNTIL
|
651
|
+
|
652
|
+
arg: lhs tEQL arg
|
653
|
+
{
|
654
|
+
result = self.node_assign val[0], val[2]
|
655
|
+
}
|
656
|
+
| lhs tEQL arg kRESCUE_MOD arg
|
657
|
+
{
|
658
|
+
result = self.node_assign val[0], s(:rescue, val[2], new_resbody(s(:array), val[4]))
|
659
|
+
}
|
660
|
+
| var_lhs tOP_ASGN arg
|
661
|
+
{
|
662
|
+
result = new_op_asgn val
|
663
|
+
}
|
664
|
+
| var_lhs tOP_ASGN arg kRESCUE_MOD arg
|
665
|
+
{
|
666
|
+
result = new_op_asgn val
|
667
|
+
result = s(:rescue, result, new_resbody(s(:array), val[4]))
|
668
|
+
}
|
669
|
+
| primary_value tLBRACK2 opt_call_args rbracket tOP_ASGN arg
|
670
|
+
{
|
671
|
+
val[2][0] = :arglist if val[2]
|
672
|
+
result = s(:op_asgn1, val[0], val[2], val[4].to_sym, val[5])
|
673
|
+
}
|
674
|
+
| primary_value tDOT tIDENTIFIER tOP_ASGN arg
|
675
|
+
{
|
676
|
+
result = s(:op_asgn2, val[0], :"#{val[2]}=", val[3].to_sym, val[4])
|
677
|
+
}
|
678
|
+
| primary_value tDOT tCONSTANT tOP_ASGN arg
|
679
|
+
{
|
680
|
+
result = s(:op_asgn2, val[0], :"#{val[2]}=", val[3].to_sym, val[4])
|
681
|
+
}
|
682
|
+
| primary_value tCOLON2 tIDENTIFIER tOP_ASGN arg
|
683
|
+
{
|
684
|
+
result = s(:op_asgn, val[0], val[4], val[2].to_sym, val[3].to_sym)
|
685
|
+
}
|
686
|
+
| primary_value tCOLON2 tCONSTANT tOP_ASGN arg
|
687
|
+
{
|
688
|
+
yyerror "constant re-assignment"
|
689
|
+
}
|
690
|
+
| tCOLON3 tCONSTANT tOP_ASGN arg
|
691
|
+
{
|
692
|
+
yyerror "constant re-assignment"
|
693
|
+
}
|
694
|
+
| backref tOP_ASGN arg
|
695
|
+
{
|
696
|
+
self.backref_assign_error val[0]
|
697
|
+
}
|
698
|
+
| arg tDOT2 arg
|
699
|
+
{
|
700
|
+
v1, v2 = val[0], val[2]
|
701
|
+
if v1.node_type == :lit and v2.node_type == :lit and Fixnum === v1.last and Fixnum === v2.last then
|
702
|
+
result = s(:lit, (v1.last)..(v2.last))
|
703
|
+
else
|
704
|
+
result = s(:dot2, v1, v2)
|
705
|
+
end
|
706
|
+
}
|
707
|
+
| arg tDOT3 arg
|
708
|
+
{
|
709
|
+
v1, v2 = val[0], val[2]
|
710
|
+
if v1.node_type == :lit and v2.node_type == :lit and Fixnum === v1.last and Fixnum === v2.last then
|
711
|
+
result = s(:lit, (v1.last)...(v2.last))
|
712
|
+
else
|
713
|
+
result = s(:dot3, v1, v2)
|
714
|
+
end
|
715
|
+
}
|
716
|
+
| arg tPLUS arg
|
717
|
+
{
|
718
|
+
result = new_call val[0], :+, argl(val[2])
|
719
|
+
}
|
720
|
+
| arg tMINUS arg
|
721
|
+
{
|
722
|
+
result = new_call val[0], :-, argl(val[2])
|
723
|
+
}
|
724
|
+
| arg tSTAR2 arg # TODO: rename
|
725
|
+
{
|
726
|
+
result = new_call val[0], :*, argl(val[2])
|
727
|
+
}
|
728
|
+
| arg tDIVIDE arg
|
729
|
+
{
|
730
|
+
result = new_call val[0], :"/", argl(val[2])
|
731
|
+
}
|
732
|
+
| arg tPERCENT arg
|
733
|
+
{
|
734
|
+
result = new_call val[0], :"%", argl(val[2])
|
735
|
+
}
|
736
|
+
| arg tPOW arg
|
737
|
+
{
|
738
|
+
result = new_call val[0], :**, argl(val[2])
|
739
|
+
}
|
740
|
+
#if defined(RUBY20)
|
741
|
+
| tUMINUS_NUM tINTEGER tPOW arg
|
742
|
+
{
|
743
|
+
result = new_call(new_call(s(:lit, val[1]), :"**", argl(val[3])), :"-@")
|
744
|
+
}
|
745
|
+
| tUMINUS_NUM tFLOAT tPOW arg
|
746
|
+
#elif defined(RUBY21) || defined(RUBY22 || defined(RUBY23))
|
747
|
+
| tUMINUS_NUM simple_numeric tPOW arg
|
748
|
+
#endif
|
749
|
+
{
|
750
|
+
result = new_call(new_call(s(:lit, val[1]), :"**", argl(val[3])), :"-@")
|
751
|
+
#if defined(RUBY20)
|
752
|
+
## TODO: why is this 2.0 only?
|
753
|
+
debug20 12, val, result
|
754
|
+
#endif
|
755
|
+
}
|
756
|
+
| tUPLUS arg
|
757
|
+
{
|
758
|
+
result = new_call val[1], :"+@"
|
759
|
+
}
|
760
|
+
| tUMINUS arg
|
761
|
+
{
|
762
|
+
result = new_call val[1], :"-@"
|
763
|
+
}
|
764
|
+
| arg tPIPE arg
|
765
|
+
{
|
766
|
+
result = new_call val[0], :"|", argl(val[2])
|
767
|
+
}
|
768
|
+
| arg tCARET arg
|
769
|
+
{
|
770
|
+
result = new_call val[0], :"^", argl(val[2])
|
771
|
+
}
|
772
|
+
| arg tAMPER2 arg
|
773
|
+
{
|
774
|
+
result = new_call val[0], :"&", argl(val[2])
|
775
|
+
}
|
776
|
+
| arg tCMP arg
|
777
|
+
{
|
778
|
+
result = new_call val[0], :"<=>", argl(val[2])
|
779
|
+
}
|
780
|
+
| arg tGT arg
|
781
|
+
{
|
782
|
+
result = new_call val[0], :">", argl(val[2])
|
783
|
+
}
|
784
|
+
| arg tGEQ arg
|
785
|
+
{
|
786
|
+
result = new_call val[0], :">=", argl(val[2])
|
787
|
+
}
|
788
|
+
| arg tLT arg
|
789
|
+
{
|
790
|
+
result = new_call val[0], :"<", argl(val[2])
|
791
|
+
}
|
792
|
+
| arg tLEQ arg
|
793
|
+
{
|
794
|
+
result = new_call val[0], :"<=", argl(val[2])
|
795
|
+
}
|
796
|
+
| arg tEQ arg
|
797
|
+
{
|
798
|
+
result = new_call val[0], :"==", argl(val[2])
|
799
|
+
}
|
800
|
+
| arg tEQQ arg
|
801
|
+
{
|
802
|
+
result = new_call val[0], :"===", argl(val[2])
|
803
|
+
}
|
804
|
+
| arg tNEQ arg
|
805
|
+
{
|
806
|
+
result = new_call val[0], :"!=", argl(val[2])
|
807
|
+
}
|
808
|
+
| arg tMATCH arg
|
809
|
+
{
|
810
|
+
result = self.get_match_node val[0], val[2]
|
811
|
+
}
|
812
|
+
| arg tNMATCH arg
|
813
|
+
{
|
814
|
+
result = s(:not, self.get_match_node(val[0], val[2]))
|
815
|
+
}
|
816
|
+
| tBANG arg
|
817
|
+
{
|
818
|
+
result = new_call val[1], :"!"
|
819
|
+
}
|
820
|
+
| tTILDE arg
|
821
|
+
{
|
822
|
+
result = new_call value_expr(val[1]), :"~"
|
823
|
+
}
|
824
|
+
| arg tLSHFT arg
|
825
|
+
{
|
826
|
+
val[0] = value_expr val[0]
|
827
|
+
val[2] = value_expr val[2]
|
828
|
+
result = new_call val[0], :"\<\<", argl(val[2])
|
829
|
+
}
|
830
|
+
| arg tRSHFT arg
|
831
|
+
{
|
832
|
+
val[0] = value_expr val[0]
|
833
|
+
val[2] = value_expr val[2]
|
834
|
+
result = new_call val[0], :">>", argl(val[2])
|
835
|
+
}
|
836
|
+
| arg tANDOP arg
|
837
|
+
{
|
838
|
+
result = logop(:and, val[0], val[2])
|
839
|
+
}
|
840
|
+
| arg tOROP arg
|
841
|
+
{
|
842
|
+
result = logop(:or, val[0], val[2])
|
843
|
+
}
|
844
|
+
| kDEFINED opt_nl arg
|
845
|
+
{
|
846
|
+
result = s(:defined, val[2])
|
847
|
+
}
|
848
|
+
| arg tEH arg opt_nl tCOLON arg
|
849
|
+
{
|
850
|
+
result = s(:if, val[0], val[2], val[5])
|
851
|
+
}
|
852
|
+
| primary
|
853
|
+
|
854
|
+
arg_value: arg
|
855
|
+
{
|
856
|
+
result = value_expr(val[0])
|
857
|
+
}
|
858
|
+
|
859
|
+
aref_args: none
|
860
|
+
| args trailer
|
861
|
+
{
|
862
|
+
result = args [val[0]]
|
863
|
+
}
|
864
|
+
| args tCOMMA assocs trailer
|
865
|
+
{
|
866
|
+
result = args [val[0], array_to_hash(val[2])]
|
867
|
+
}
|
868
|
+
| assocs trailer
|
869
|
+
{
|
870
|
+
result = args [array_to_hash(val[0])]
|
871
|
+
}
|
872
|
+
|
873
|
+
paren_args: tLPAREN2 opt_call_args rparen
|
874
|
+
{
|
875
|
+
result = val[1]
|
876
|
+
}
|
877
|
+
|
878
|
+
opt_paren_args: none
|
879
|
+
| paren_args
|
880
|
+
|
881
|
+
opt_call_args: none
|
882
|
+
{
|
883
|
+
result = val[0]
|
884
|
+
}
|
885
|
+
| call_args
|
886
|
+
{
|
887
|
+
result = val[0]
|
888
|
+
}
|
889
|
+
| args tCOMMA
|
890
|
+
{
|
891
|
+
result = args val
|
892
|
+
}
|
893
|
+
| args tCOMMA assocs tCOMMA
|
894
|
+
{
|
895
|
+
result = args [val[0], array_to_hash(val[2])]
|
896
|
+
}
|
897
|
+
| assocs tCOMMA
|
898
|
+
{
|
899
|
+
result = args [array_to_hash(val[0])]
|
900
|
+
}
|
901
|
+
|
902
|
+
call_args: command
|
903
|
+
{
|
904
|
+
warning "parenthesize argument(s) for future version"
|
905
|
+
result = call_args val
|
906
|
+
}
|
907
|
+
| args opt_block_arg
|
908
|
+
{
|
909
|
+
result = call_args val
|
910
|
+
result = self.arg_blk_pass val[0], val[1]
|
911
|
+
}
|
912
|
+
| assocs opt_block_arg
|
913
|
+
{
|
914
|
+
result = call_args [array_to_hash(val[0])]
|
915
|
+
result = self.arg_blk_pass result, val[1]
|
916
|
+
}
|
917
|
+
| args tCOMMA assocs opt_block_arg
|
918
|
+
{
|
919
|
+
result = call_args [val[0], array_to_hash(val[2])]
|
920
|
+
result = self.arg_blk_pass result, val[3]
|
921
|
+
}
|
922
|
+
| block_arg
|
923
|
+
{
|
924
|
+
result = call_args val
|
925
|
+
}
|
926
|
+
|
927
|
+
command_args: {
|
928
|
+
result = lexer.cmdarg.stack.dup # TODO: smell?
|
929
|
+
lexer.cmdarg.push true
|
930
|
+
}
|
931
|
+
call_args
|
932
|
+
{
|
933
|
+
lexer.cmdarg.stack.replace val[0]
|
934
|
+
result = val[1]
|
935
|
+
}
|
936
|
+
|
937
|
+
block_arg: tAMPER arg_value
|
938
|
+
{
|
939
|
+
result = s(:block_pass, val[1])
|
940
|
+
}
|
941
|
+
|
942
|
+
opt_block_arg: tCOMMA block_arg
|
943
|
+
{
|
944
|
+
result = val[1]
|
945
|
+
}
|
946
|
+
| none
|
947
|
+
|
948
|
+
args: arg_value
|
949
|
+
{
|
950
|
+
result = s(:array, val[0])
|
951
|
+
}
|
952
|
+
| tSTAR arg_value
|
953
|
+
{
|
954
|
+
result = s(:array, s(:splat, val[1]))
|
955
|
+
}
|
956
|
+
| args tCOMMA arg_value
|
957
|
+
{
|
958
|
+
result = self.list_append val[0], val[2]
|
959
|
+
}
|
960
|
+
| args tCOMMA tSTAR arg_value
|
961
|
+
{
|
962
|
+
result = self.list_append val[0], s(:splat, val[3])
|
963
|
+
}
|
964
|
+
|
965
|
+
#if defined(RUBY21) || defined(RUBY22 || defined(RUBY23))
|
966
|
+
mrhs_arg: mrhs
|
967
|
+
{
|
968
|
+
result = new_masgn_arg val[0]
|
969
|
+
}
|
970
|
+
| arg_value
|
971
|
+
{
|
972
|
+
result = new_masgn_arg val[0], :wrap
|
973
|
+
}
|
974
|
+
|
975
|
+
#endif
|
976
|
+
mrhs: args tCOMMA arg_value
|
977
|
+
{
|
978
|
+
result = val[0] << val[2]
|
979
|
+
}
|
980
|
+
| args tCOMMA tSTAR arg_value
|
981
|
+
{
|
982
|
+
result = self.arg_concat val[0], val[3]
|
983
|
+
}
|
984
|
+
| tSTAR arg_value
|
985
|
+
{
|
986
|
+
result = s(:splat, val[1])
|
987
|
+
}
|
988
|
+
|
989
|
+
primary: literal
|
990
|
+
| strings
|
991
|
+
| xstring
|
992
|
+
| regexp
|
993
|
+
| words
|
994
|
+
| qwords
|
995
|
+
| symbols
|
996
|
+
| qsymbols
|
997
|
+
| var_ref
|
998
|
+
| backref
|
999
|
+
| tFID
|
1000
|
+
{
|
1001
|
+
result = new_call nil, val[0].to_sym
|
1002
|
+
}
|
1003
|
+
| kBEGIN
|
1004
|
+
{
|
1005
|
+
result = self.lexer.lineno
|
1006
|
+
}
|
1007
|
+
bodystmt kEND
|
1008
|
+
{
|
1009
|
+
unless val[2] then
|
1010
|
+
result = s(:nil)
|
1011
|
+
else
|
1012
|
+
result = s(:begin, val[2])
|
1013
|
+
end
|
1014
|
+
|
1015
|
+
result.line = val[1]
|
1016
|
+
}
|
1017
|
+
| tLPAREN_ARG rparen
|
1018
|
+
{
|
1019
|
+
debug20 13, val, result
|
1020
|
+
}
|
1021
|
+
| tLPAREN_ARG expr
|
1022
|
+
{
|
1023
|
+
lexer.lex_state = :expr_endarg
|
1024
|
+
}
|
1025
|
+
rparen
|
1026
|
+
{
|
1027
|
+
warning "(...) interpreted as grouped expression"
|
1028
|
+
result = val[1]
|
1029
|
+
}
|
1030
|
+
| tLPAREN compstmt tRPAREN
|
1031
|
+
{
|
1032
|
+
result = val[1] || s(:nil)
|
1033
|
+
result.paren = true
|
1034
|
+
}
|
1035
|
+
| primary_value tCOLON2 tCONSTANT
|
1036
|
+
{
|
1037
|
+
result = s(:colon2, val[0], val[2].to_sym)
|
1038
|
+
}
|
1039
|
+
| tCOLON3 tCONSTANT
|
1040
|
+
{
|
1041
|
+
result = s(:colon3, val[1].to_sym)
|
1042
|
+
}
|
1043
|
+
| tLBRACK aref_args tRBRACK
|
1044
|
+
{
|
1045
|
+
result = val[1] || s(:array)
|
1046
|
+
result[0] = :array # aref_args is :args
|
1047
|
+
}
|
1048
|
+
| tLBRACE assoc_list tRCURLY
|
1049
|
+
{
|
1050
|
+
result = s(:hash, *val[1].values) # TODO: array_to_hash?
|
1051
|
+
}
|
1052
|
+
| kRETURN
|
1053
|
+
{
|
1054
|
+
result = s(:return)
|
1055
|
+
}
|
1056
|
+
| kYIELD tLPAREN2 call_args rparen
|
1057
|
+
{
|
1058
|
+
result = new_yield val[2]
|
1059
|
+
}
|
1060
|
+
| kYIELD tLPAREN2 rparen
|
1061
|
+
{
|
1062
|
+
result = new_yield
|
1063
|
+
}
|
1064
|
+
| kYIELD
|
1065
|
+
{
|
1066
|
+
result = new_yield
|
1067
|
+
}
|
1068
|
+
| kDEFINED opt_nl tLPAREN2 expr rparen
|
1069
|
+
{
|
1070
|
+
result = s(:defined, val[3])
|
1071
|
+
}
|
1072
|
+
| kNOT tLPAREN2 expr rparen
|
1073
|
+
{
|
1074
|
+
result = s(:call, val[2], :"!")
|
1075
|
+
}
|
1076
|
+
| kNOT tLPAREN2 rparen
|
1077
|
+
{
|
1078
|
+
debug20 14, val, result
|
1079
|
+
}
|
1080
|
+
| fcall brace_block
|
1081
|
+
{
|
1082
|
+
oper, iter = val[0], val[1]
|
1083
|
+
call = oper # FIX
|
1084
|
+
iter.insert 1, call
|
1085
|
+
result = iter
|
1086
|
+
call.line = iter.line
|
1087
|
+
}
|
1088
|
+
| method_call
|
1089
|
+
| method_call brace_block
|
1090
|
+
{
|
1091
|
+
call, iter = val[0], val[1]
|
1092
|
+
block_dup_check call, iter
|
1093
|
+
iter.insert 1, call # FIX
|
1094
|
+
result = iter
|
1095
|
+
}
|
1096
|
+
| tLAMBDA lambda
|
1097
|
+
{
|
1098
|
+
result = val[1] # TODO: fix lineno
|
1099
|
+
}
|
1100
|
+
| kIF expr_value then compstmt if_tail kEND
|
1101
|
+
{
|
1102
|
+
result = new_if val[1], val[3], val[4]
|
1103
|
+
}
|
1104
|
+
| kUNLESS expr_value then compstmt opt_else kEND
|
1105
|
+
{
|
1106
|
+
result = new_if val[1], val[4], val[3]
|
1107
|
+
}
|
1108
|
+
| kWHILE
|
1109
|
+
{
|
1110
|
+
lexer.cond.push true
|
1111
|
+
}
|
1112
|
+
expr_value do
|
1113
|
+
{
|
1114
|
+
lexer.cond.pop
|
1115
|
+
}
|
1116
|
+
compstmt kEND
|
1117
|
+
{
|
1118
|
+
result = new_while val[5], val[2], true
|
1119
|
+
}
|
1120
|
+
| kUNTIL
|
1121
|
+
{
|
1122
|
+
lexer.cond.push true
|
1123
|
+
}
|
1124
|
+
expr_value do
|
1125
|
+
{
|
1126
|
+
lexer.cond.pop
|
1127
|
+
}
|
1128
|
+
compstmt kEND
|
1129
|
+
{
|
1130
|
+
result = new_until val[5], val[2], true
|
1131
|
+
}
|
1132
|
+
| kCASE expr_value opt_terms case_body kEND
|
1133
|
+
{
|
1134
|
+
(_, line), expr, _, body, _ = val
|
1135
|
+
result = new_case expr, body, line
|
1136
|
+
}
|
1137
|
+
| kCASE opt_terms case_body kEND
|
1138
|
+
{
|
1139
|
+
(_, line), _, body, _ = val
|
1140
|
+
result = new_case nil, body, line
|
1141
|
+
}
|
1142
|
+
| kFOR for_var kIN
|
1143
|
+
{
|
1144
|
+
lexer.cond.push true
|
1145
|
+
}
|
1146
|
+
expr_value do
|
1147
|
+
{
|
1148
|
+
lexer.cond.pop
|
1149
|
+
}
|
1150
|
+
compstmt kEND
|
1151
|
+
{
|
1152
|
+
result = new_for val[4], val[1], val[7]
|
1153
|
+
}
|
1154
|
+
| kCLASS
|
1155
|
+
{
|
1156
|
+
result = self.lexer.lineno
|
1157
|
+
}
|
1158
|
+
cpath superclass
|
1159
|
+
{
|
1160
|
+
self.comments.push self.lexer.comments
|
1161
|
+
if (self.in_def || self.in_single > 0) then
|
1162
|
+
yyerror "class definition in method body"
|
1163
|
+
end
|
1164
|
+
self.env.extend
|
1165
|
+
}
|
1166
|
+
bodystmt kEND
|
1167
|
+
{
|
1168
|
+
result = new_class val
|
1169
|
+
self.env.unextend
|
1170
|
+
self.lexer.comments # we don't care about comments in the body
|
1171
|
+
}
|
1172
|
+
| kCLASS tLSHFT
|
1173
|
+
{
|
1174
|
+
result = self.lexer.lineno
|
1175
|
+
}
|
1176
|
+
expr
|
1177
|
+
{
|
1178
|
+
result = self.in_def
|
1179
|
+
self.in_def = false
|
1180
|
+
}
|
1181
|
+
term
|
1182
|
+
{
|
1183
|
+
result = self.in_single
|
1184
|
+
self.in_single = 0
|
1185
|
+
self.env.extend
|
1186
|
+
}
|
1187
|
+
bodystmt kEND
|
1188
|
+
{
|
1189
|
+
result = new_sclass val
|
1190
|
+
self.env.unextend
|
1191
|
+
self.lexer.comments # we don't care about comments in the body
|
1192
|
+
}
|
1193
|
+
| kMODULE
|
1194
|
+
{
|
1195
|
+
result = self.lexer.lineno
|
1196
|
+
}
|
1197
|
+
cpath
|
1198
|
+
{
|
1199
|
+
self.comments.push self.lexer.comments
|
1200
|
+
yyerror "module definition in method body" if
|
1201
|
+
self.in_def or self.in_single > 0
|
1202
|
+
|
1203
|
+
self.env.extend
|
1204
|
+
}
|
1205
|
+
bodystmt kEND
|
1206
|
+
{
|
1207
|
+
result = new_module val
|
1208
|
+
self.env.unextend
|
1209
|
+
self.lexer.comments # we don't care about comments in the body
|
1210
|
+
}
|
1211
|
+
| kDEF fname
|
1212
|
+
{
|
1213
|
+
result = [self.in_def, self.lexer.cmdarg.stack.dup]
|
1214
|
+
|
1215
|
+
self.comments.push self.lexer.comments
|
1216
|
+
self.in_def = true
|
1217
|
+
self.env.extend
|
1218
|
+
# TODO: local->cmdargs = cmdarg_stack;
|
1219
|
+
# TODO: port local_push_gen and local_pop_gen
|
1220
|
+
lexer.cmdarg.stack.replace [false]
|
1221
|
+
}
|
1222
|
+
f_arglist bodystmt kEND
|
1223
|
+
{
|
1224
|
+
in_def, cmdarg = val[2]
|
1225
|
+
|
1226
|
+
result = new_defn val
|
1227
|
+
|
1228
|
+
lexer.cmdarg.stack.replace cmdarg
|
1229
|
+
self.env.unextend
|
1230
|
+
self.in_def = in_def
|
1231
|
+
self.lexer.comments # we don't care about comments in the body
|
1232
|
+
}
|
1233
|
+
| kDEF singleton dot_or_colon
|
1234
|
+
{
|
1235
|
+
self.comments.push self.lexer.comments
|
1236
|
+
lexer.lex_state = :expr_fname
|
1237
|
+
}
|
1238
|
+
fname
|
1239
|
+
{
|
1240
|
+
self.in_single += 1
|
1241
|
+
self.env.extend
|
1242
|
+
lexer.lex_state = :expr_endfn # force for args
|
1243
|
+
result = lexer.lineno
|
1244
|
+
}
|
1245
|
+
f_arglist bodystmt kEND
|
1246
|
+
{
|
1247
|
+
result = new_defs val
|
1248
|
+
result[3].line val[5]
|
1249
|
+
|
1250
|
+
self.env.unextend
|
1251
|
+
self.in_single -= 1
|
1252
|
+
self.lexer.comments # we don't care about comments in the body
|
1253
|
+
}
|
1254
|
+
| kBREAK
|
1255
|
+
{
|
1256
|
+
result = s(:break)
|
1257
|
+
}
|
1258
|
+
| kNEXT
|
1259
|
+
{
|
1260
|
+
result = s(:next)
|
1261
|
+
}
|
1262
|
+
| kREDO
|
1263
|
+
{
|
1264
|
+
result = s(:redo)
|
1265
|
+
}
|
1266
|
+
| kRETRY
|
1267
|
+
{
|
1268
|
+
result = s(:retry)
|
1269
|
+
}
|
1270
|
+
|
1271
|
+
primary_value: primary
|
1272
|
+
{
|
1273
|
+
result = value_expr(val[0])
|
1274
|
+
}
|
1275
|
+
|
1276
|
+
# These are really stupid
|
1277
|
+
k_begin: kBEGIN
|
1278
|
+
k_if: kIF
|
1279
|
+
k_unless: kUNLESS
|
1280
|
+
k_while: kWHILE
|
1281
|
+
k_until: kUNTIL
|
1282
|
+
k_case: kCASE
|
1283
|
+
k_for: kFOR
|
1284
|
+
k_class: kCLASS
|
1285
|
+
k_module: kMODULE
|
1286
|
+
k_def: kDEF
|
1287
|
+
k_end: kEND
|
1288
|
+
|
1289
|
+
then: term
|
1290
|
+
| kTHEN
|
1291
|
+
| term kTHEN
|
1292
|
+
|
1293
|
+
do: term
|
1294
|
+
| kDO_COND
|
1295
|
+
|
1296
|
+
if_tail: opt_else
|
1297
|
+
| kELSIF expr_value then compstmt if_tail
|
1298
|
+
{
|
1299
|
+
result = s(:if, val[1], val[3], val[4])
|
1300
|
+
}
|
1301
|
+
|
1302
|
+
opt_else: none
|
1303
|
+
| kELSE compstmt
|
1304
|
+
{
|
1305
|
+
result = val[1]
|
1306
|
+
}
|
1307
|
+
|
1308
|
+
for_var: lhs
|
1309
|
+
| mlhs
|
1310
|
+
{
|
1311
|
+
val[0].delete_at 1 if val[0][1].nil? # HACK
|
1312
|
+
}
|
1313
|
+
|
1314
|
+
f_marg: f_norm_arg
|
1315
|
+
| tLPAREN f_margs rparen
|
1316
|
+
{
|
1317
|
+
result = val[1]
|
1318
|
+
}
|
1319
|
+
|
1320
|
+
f_marg_list: f_marg
|
1321
|
+
{
|
1322
|
+
result = s(:array, val[0])
|
1323
|
+
}
|
1324
|
+
| f_marg_list tCOMMA f_marg
|
1325
|
+
{
|
1326
|
+
result = list_append val[0], val[2]
|
1327
|
+
}
|
1328
|
+
|
1329
|
+
f_margs: f_marg_list
|
1330
|
+
{
|
1331
|
+
args, = val
|
1332
|
+
|
1333
|
+
result = block_var args
|
1334
|
+
}
|
1335
|
+
| f_marg_list tCOMMA tSTAR f_norm_arg
|
1336
|
+
{
|
1337
|
+
args, _, _, splat = val
|
1338
|
+
|
1339
|
+
result = block_var args, "*#{splat}".to_sym
|
1340
|
+
}
|
1341
|
+
| f_marg_list tCOMMA tSTAR f_norm_arg tCOMMA f_marg_list
|
1342
|
+
{
|
1343
|
+
args, _, _, splat, _, args2 = val
|
1344
|
+
|
1345
|
+
result = block_var args, "*#{splat}".to_sym, args2
|
1346
|
+
}
|
1347
|
+
| f_marg_list tCOMMA tSTAR
|
1348
|
+
{
|
1349
|
+
args, _, _ = val
|
1350
|
+
|
1351
|
+
result = block_var args, :*
|
1352
|
+
}
|
1353
|
+
| f_marg_list tCOMMA tSTAR tCOMMA f_marg_list
|
1354
|
+
{
|
1355
|
+
args, _, _, _, args2 = val
|
1356
|
+
|
1357
|
+
result = block_var args, :*, args2
|
1358
|
+
debug20 16, val, result
|
1359
|
+
}
|
1360
|
+
| tSTAR f_norm_arg
|
1361
|
+
{
|
1362
|
+
_, splat = val
|
1363
|
+
|
1364
|
+
result = block_var :"*#{splat}"
|
1365
|
+
}
|
1366
|
+
| tSTAR f_norm_arg tCOMMA f_marg_list
|
1367
|
+
{
|
1368
|
+
_, splat, _, args = val
|
1369
|
+
|
1370
|
+
result = block_var :"*#{splat}", args
|
1371
|
+
debug20 17, val, result
|
1372
|
+
}
|
1373
|
+
| tSTAR
|
1374
|
+
{
|
1375
|
+
result = block_var :*
|
1376
|
+
debug20 18, val, result
|
1377
|
+
}
|
1378
|
+
| tSTAR tCOMMA f_marg_list
|
1379
|
+
{
|
1380
|
+
_, _, args = val
|
1381
|
+
|
1382
|
+
result = block_var :*, args
|
1383
|
+
}
|
1384
|
+
|
1385
|
+
block_args_tail: f_block_kwarg tCOMMA f_kwrest opt_f_block_arg
|
1386
|
+
{
|
1387
|
+
result = call_args val
|
1388
|
+
}
|
1389
|
+
| f_block_kwarg opt_f_block_arg
|
1390
|
+
{
|
1391
|
+
result = call_args val
|
1392
|
+
}
|
1393
|
+
| f_kwrest opt_f_block_arg
|
1394
|
+
{
|
1395
|
+
result = call_args val
|
1396
|
+
}
|
1397
|
+
| f_block_arg
|
1398
|
+
{
|
1399
|
+
result = call_args val
|
1400
|
+
}
|
1401
|
+
|
1402
|
+
opt_block_args_tail: tCOMMA block_args_tail
|
1403
|
+
{
|
1404
|
+
result = args val
|
1405
|
+
}
|
1406
|
+
| none
|
1407
|
+
|
1408
|
+
block_param: f_arg tCOMMA f_block_optarg tCOMMA f_rest_arg opt_block_args_tail
|
1409
|
+
{
|
1410
|
+
result = args val
|
1411
|
+
}
|
1412
|
+
| f_arg tCOMMA f_block_optarg tCOMMA f_rest_arg tCOMMA f_arg opt_block_args_tail
|
1413
|
+
{
|
1414
|
+
result = args val
|
1415
|
+
}
|
1416
|
+
| f_arg tCOMMA f_block_optarg opt_block_args_tail
|
1417
|
+
{
|
1418
|
+
result = args val
|
1419
|
+
}
|
1420
|
+
| f_arg tCOMMA f_block_optarg tCOMMA f_arg opt_block_args_tail
|
1421
|
+
{
|
1422
|
+
result = args val
|
1423
|
+
}
|
1424
|
+
| f_arg tCOMMA f_rest_arg opt_block_args_tail
|
1425
|
+
{
|
1426
|
+
result = args val
|
1427
|
+
}
|
1428
|
+
| f_arg tCOMMA
|
1429
|
+
{
|
1430
|
+
result = args val
|
1431
|
+
}
|
1432
|
+
| f_arg tCOMMA f_rest_arg tCOMMA f_arg opt_block_args_tail
|
1433
|
+
{
|
1434
|
+
result = args val
|
1435
|
+
}
|
1436
|
+
| f_arg opt_block_args_tail
|
1437
|
+
{
|
1438
|
+
result = args val
|
1439
|
+
}
|
1440
|
+
| f_block_optarg tCOMMA f_rest_arg opt_block_args_tail
|
1441
|
+
{
|
1442
|
+
result = args val
|
1443
|
+
}
|
1444
|
+
| f_block_optarg tCOMMA f_rest_arg tCOMMA f_arg opt_block_args_tail
|
1445
|
+
{
|
1446
|
+
result = args val
|
1447
|
+
}
|
1448
|
+
| f_block_optarg opt_block_args_tail
|
1449
|
+
{
|
1450
|
+
result = args val
|
1451
|
+
}
|
1452
|
+
| f_block_optarg tCOMMA f_arg opt_block_args_tail
|
1453
|
+
{
|
1454
|
+
result = args val
|
1455
|
+
}
|
1456
|
+
| f_rest_arg opt_block_args_tail
|
1457
|
+
{
|
1458
|
+
result = args val
|
1459
|
+
}
|
1460
|
+
| f_rest_arg tCOMMA f_arg opt_block_args_tail
|
1461
|
+
{
|
1462
|
+
result = args val
|
1463
|
+
}
|
1464
|
+
| block_args_tail
|
1465
|
+
{
|
1466
|
+
result = args val
|
1467
|
+
}
|
1468
|
+
|
1469
|
+
opt_block_param: none { result = 0 }
|
1470
|
+
| block_param_def
|
1471
|
+
|
1472
|
+
block_param_def: tPIPE opt_bv_decl tPIPE
|
1473
|
+
{
|
1474
|
+
result = args val
|
1475
|
+
}
|
1476
|
+
| tOROP
|
1477
|
+
{
|
1478
|
+
self.lexer.command_start = true
|
1479
|
+
result = s(:args)
|
1480
|
+
}
|
1481
|
+
| tPIPE block_param opt_bv_decl tPIPE
|
1482
|
+
{
|
1483
|
+
result = args val
|
1484
|
+
}
|
1485
|
+
|
1486
|
+
opt_bv_decl: opt_nl
|
1487
|
+
| opt_nl tSEMI bv_decls opt_nl
|
1488
|
+
{
|
1489
|
+
result = args val
|
1490
|
+
}
|
1491
|
+
|
1492
|
+
bv_decls: bvar
|
1493
|
+
{
|
1494
|
+
result = args val
|
1495
|
+
}
|
1496
|
+
| bv_decls tCOMMA bvar
|
1497
|
+
{
|
1498
|
+
result = args val
|
1499
|
+
}
|
1500
|
+
|
1501
|
+
bvar: tIDENTIFIER
|
1502
|
+
{
|
1503
|
+
result = s(:shadow, val[0].to_sym)
|
1504
|
+
}
|
1505
|
+
| f_bad_arg
|
1506
|
+
|
1507
|
+
lambda: {
|
1508
|
+
self.env.extend :dynamic
|
1509
|
+
result = self.lexer.lineno
|
1510
|
+
|
1511
|
+
result = lexer.lpar_beg
|
1512
|
+
lexer.paren_nest += 1
|
1513
|
+
lexer.lpar_beg = lexer.paren_nest
|
1514
|
+
}
|
1515
|
+
f_larglist lambda_body
|
1516
|
+
{
|
1517
|
+
lpar, args, body = val
|
1518
|
+
lexer.lpar_beg = lpar
|
1519
|
+
|
1520
|
+
call = new_call nil, :lambda
|
1521
|
+
result = new_iter call, args, body
|
1522
|
+
self.env.unextend
|
1523
|
+
}
|
1524
|
+
|
1525
|
+
f_larglist: tLPAREN2 f_args opt_bv_decl rparen
|
1526
|
+
{
|
1527
|
+
result = args val
|
1528
|
+
}
|
1529
|
+
| f_args
|
1530
|
+
{
|
1531
|
+
result = val[0]
|
1532
|
+
result = 0 if result == s(:args)
|
1533
|
+
}
|
1534
|
+
|
1535
|
+
lambda_body: tLAMBEG compstmt tRCURLY
|
1536
|
+
{
|
1537
|
+
result = val[1]
|
1538
|
+
}
|
1539
|
+
| kDO_LAMBDA compstmt kEND
|
1540
|
+
{
|
1541
|
+
result = val[1]
|
1542
|
+
}
|
1543
|
+
|
1544
|
+
do_block: kDO_BLOCK
|
1545
|
+
{
|
1546
|
+
self.env.extend :dynamic
|
1547
|
+
result = self.lexer.lineno
|
1548
|
+
}
|
1549
|
+
opt_block_param
|
1550
|
+
{
|
1551
|
+
result = nil # self.env.dynamic.keys
|
1552
|
+
}
|
1553
|
+
compstmt kEND
|
1554
|
+
{
|
1555
|
+
args = val[2]
|
1556
|
+
body = val[4]
|
1557
|
+
result = new_iter nil, args, body
|
1558
|
+
result.line = val[1]
|
1559
|
+
|
1560
|
+
self.env.unextend
|
1561
|
+
}
|
1562
|
+
|
1563
|
+
block_call: command do_block
|
1564
|
+
{
|
1565
|
+
# TODO:
|
1566
|
+
## if (nd_type($1) == NODE_YIELD) {
|
1567
|
+
## compile_error(PARSER_ARG "block given to yield");
|
1568
|
+
|
1569
|
+
syntax_error "Both block arg and actual block given." if
|
1570
|
+
val[0].block_pass?
|
1571
|
+
|
1572
|
+
val = invert_block_call val if inverted? val
|
1573
|
+
|
1574
|
+
result = val[1]
|
1575
|
+
result.insert 1, val[0]
|
1576
|
+
}
|
1577
|
+
| block_call dot_or_colon operation2 opt_paren_args
|
1578
|
+
{
|
1579
|
+
result = new_call val[0], val[2].to_sym, val[3]
|
1580
|
+
}
|
1581
|
+
| block_call dot_or_colon operation2 opt_paren_args brace_block
|
1582
|
+
{
|
1583
|
+
iter1, _, name, args, iter2 = val
|
1584
|
+
|
1585
|
+
call = new_call iter1, name.to_sym, args
|
1586
|
+
iter2.insert 1, call
|
1587
|
+
|
1588
|
+
result = iter2
|
1589
|
+
}
|
1590
|
+
| block_call dot_or_colon operation2 command_args do_block
|
1591
|
+
{
|
1592
|
+
iter1, _, name, args, iter2 = val
|
1593
|
+
|
1594
|
+
call = new_call iter1, name.to_sym, args
|
1595
|
+
iter2.insert 1, call
|
1596
|
+
|
1597
|
+
result = iter2
|
1598
|
+
}
|
1599
|
+
|
1600
|
+
method_call: fcall
|
1601
|
+
{
|
1602
|
+
result = self.lexer.lineno
|
1603
|
+
}
|
1604
|
+
paren_args
|
1605
|
+
{
|
1606
|
+
args = self.call_args val[2..-1]
|
1607
|
+
result = val[0].concat args[1..-1]
|
1608
|
+
}
|
1609
|
+
| primary_value tDOT operation2 opt_paren_args
|
1610
|
+
{
|
1611
|
+
result = new_call val[0], val[2].to_sym, val[3]
|
1612
|
+
}
|
1613
|
+
#if defined(RUBY23)
|
1614
|
+
| primary_value tLONELY operation2 opt_paren_args
|
1615
|
+
{
|
1616
|
+
result = new_call val[0], val[2].to_sym, val[3]
|
1617
|
+
result[0] = :safe_call
|
1618
|
+
}
|
1619
|
+
#endif
|
1620
|
+
| primary_value tCOLON2 operation2 paren_args
|
1621
|
+
{
|
1622
|
+
result = new_call val[0], val[2].to_sym, val[3]
|
1623
|
+
}
|
1624
|
+
| primary_value tCOLON2 operation3
|
1625
|
+
{
|
1626
|
+
result = new_call val[0], val[2].to_sym
|
1627
|
+
}
|
1628
|
+
| primary_value tDOT paren_args
|
1629
|
+
{
|
1630
|
+
result = new_call val[0], :call, val[2]
|
1631
|
+
}
|
1632
|
+
#if defined(RUBY23)
|
1633
|
+
| primary_value tLONELY paren_args
|
1634
|
+
{
|
1635
|
+
result = new_call val[0], :call, val[2]
|
1636
|
+
result[0] = :safe_call
|
1637
|
+
}
|
1638
|
+
#endif
|
1639
|
+
| primary_value tCOLON2 paren_args
|
1640
|
+
{
|
1641
|
+
result = new_call val[0], :call, val[2]
|
1642
|
+
}
|
1643
|
+
| kSUPER paren_args
|
1644
|
+
{
|
1645
|
+
result = new_super val[1]
|
1646
|
+
}
|
1647
|
+
| kSUPER
|
1648
|
+
{
|
1649
|
+
result = s(:zsuper)
|
1650
|
+
}
|
1651
|
+
| primary_value tLBRACK2 opt_call_args rbracket
|
1652
|
+
{
|
1653
|
+
result = new_aref val
|
1654
|
+
}
|
1655
|
+
|
1656
|
+
brace_block: tLCURLY
|
1657
|
+
{
|
1658
|
+
self.env.extend :dynamic
|
1659
|
+
result = self.lexer.lineno
|
1660
|
+
}
|
1661
|
+
opt_block_param
|
1662
|
+
{
|
1663
|
+
result = nil # self.env.dynamic.keys
|
1664
|
+
}
|
1665
|
+
compstmt tRCURLY
|
1666
|
+
{
|
1667
|
+
_, line, args, _, body, _ = val
|
1668
|
+
|
1669
|
+
result = new_iter nil, args, body
|
1670
|
+
result.line = line
|
1671
|
+
|
1672
|
+
self.env.unextend
|
1673
|
+
}
|
1674
|
+
| kDO
|
1675
|
+
{
|
1676
|
+
self.env.extend :dynamic
|
1677
|
+
result = self.lexer.lineno
|
1678
|
+
}
|
1679
|
+
opt_block_param
|
1680
|
+
{
|
1681
|
+
result = nil # self.env.dynamic.keys
|
1682
|
+
}
|
1683
|
+
compstmt kEND
|
1684
|
+
{
|
1685
|
+
_, line, args, _, body, _ = val
|
1686
|
+
|
1687
|
+
result = new_iter nil, args, body
|
1688
|
+
result.line = line
|
1689
|
+
|
1690
|
+
self.env.unextend
|
1691
|
+
}
|
1692
|
+
|
1693
|
+
case_body: kWHEN
|
1694
|
+
{
|
1695
|
+
result = self.lexer.lineno
|
1696
|
+
}
|
1697
|
+
args then compstmt cases
|
1698
|
+
{
|
1699
|
+
result = new_when(val[2], val[4])
|
1700
|
+
result.line = val[1]
|
1701
|
+
result << val[5] if val[5]
|
1702
|
+
}
|
1703
|
+
|
1704
|
+
cases: opt_else | case_body
|
1705
|
+
|
1706
|
+
opt_rescue: kRESCUE exc_list exc_var then compstmt opt_rescue
|
1707
|
+
{
|
1708
|
+
_, klasses, var, _, body, rest = val
|
1709
|
+
|
1710
|
+
klasses ||= s(:array)
|
1711
|
+
klasses << node_assign(var, s(:gvar, :"$!")) if var
|
1712
|
+
|
1713
|
+
result = new_resbody(klasses, body)
|
1714
|
+
result << rest if rest # UGH, rewritten above
|
1715
|
+
}
|
1716
|
+
|
|
1717
|
+
{
|
1718
|
+
result = nil
|
1719
|
+
}
|
1720
|
+
|
1721
|
+
exc_list: arg_value
|
1722
|
+
{
|
1723
|
+
result = s(:array, val[0])
|
1724
|
+
}
|
1725
|
+
| mrhs
|
1726
|
+
| none
|
1727
|
+
|
1728
|
+
exc_var: tASSOC lhs
|
1729
|
+
{
|
1730
|
+
result = val[1]
|
1731
|
+
}
|
1732
|
+
| none
|
1733
|
+
|
1734
|
+
opt_ensure: kENSURE compstmt
|
1735
|
+
{
|
1736
|
+
_, body = val
|
1737
|
+
|
1738
|
+
result = body || s(:nil)
|
1739
|
+
}
|
1740
|
+
| none
|
1741
|
+
|
1742
|
+
literal: numeric
|
1743
|
+
{
|
1744
|
+
result = s(:lit, val[0])
|
1745
|
+
}
|
1746
|
+
| symbol
|
1747
|
+
{
|
1748
|
+
result = s(:lit, val[0])
|
1749
|
+
}
|
1750
|
+
| dsym
|
1751
|
+
|
1752
|
+
strings: string
|
1753
|
+
{
|
1754
|
+
val[0] = s(:dstr, val[0].value) if val[0][0] == :evstr
|
1755
|
+
result = val[0]
|
1756
|
+
}
|
1757
|
+
|
1758
|
+
string: tCHAR
|
1759
|
+
{
|
1760
|
+
debug20 23, val, result
|
1761
|
+
}
|
1762
|
+
| string1
|
1763
|
+
| string string1
|
1764
|
+
{
|
1765
|
+
result = self.literal_concat val[0], val[1]
|
1766
|
+
}
|
1767
|
+
|
1768
|
+
string1: tSTRING_BEG string_contents tSTRING_END
|
1769
|
+
{
|
1770
|
+
result = val[1]
|
1771
|
+
}
|
1772
|
+
| tSTRING
|
1773
|
+
{
|
1774
|
+
result = new_string val
|
1775
|
+
}
|
1776
|
+
|
1777
|
+
xstring: tXSTRING_BEG xstring_contents tSTRING_END
|
1778
|
+
{
|
1779
|
+
result = new_xstring val[1]
|
1780
|
+
}
|
1781
|
+
|
1782
|
+
regexp: tREGEXP_BEG regexp_contents tREGEXP_END
|
1783
|
+
{
|
1784
|
+
result = new_regexp val
|
1785
|
+
}
|
1786
|
+
|
1787
|
+
words: tWORDS_BEG tSPACE tSTRING_END
|
1788
|
+
{
|
1789
|
+
result = s(:array)
|
1790
|
+
}
|
1791
|
+
| tWORDS_BEG word_list tSTRING_END
|
1792
|
+
{
|
1793
|
+
result = val[1]
|
1794
|
+
}
|
1795
|
+
|
1796
|
+
word_list: none
|
1797
|
+
{
|
1798
|
+
result = s(:array)
|
1799
|
+
}
|
1800
|
+
| word_list word tSPACE
|
1801
|
+
{
|
1802
|
+
word = val[1][0] == :evstr ? s(:dstr, "", val[1]) : val[1]
|
1803
|
+
result = val[0].dup << word
|
1804
|
+
}
|
1805
|
+
|
1806
|
+
word: string_content
|
1807
|
+
| word string_content
|
1808
|
+
{
|
1809
|
+
result = self.literal_concat val[0], val[1]
|
1810
|
+
}
|
1811
|
+
|
1812
|
+
symbols: tSYMBOLS_BEG tSPACE tSTRING_END
|
1813
|
+
{
|
1814
|
+
result = s(:array)
|
1815
|
+
}
|
1816
|
+
| tSYMBOLS_BEG symbol_list tSTRING_END
|
1817
|
+
{
|
1818
|
+
result = val[1]
|
1819
|
+
}
|
1820
|
+
|
1821
|
+
symbol_list: none
|
1822
|
+
{
|
1823
|
+
result = s(:array)
|
1824
|
+
}
|
1825
|
+
| symbol_list word tSPACE
|
1826
|
+
{
|
1827
|
+
list, sym, _ = val
|
1828
|
+
|
1829
|
+
case sym[0]
|
1830
|
+
when :dstr then
|
1831
|
+
sym[0] = :dsym
|
1832
|
+
when :str then
|
1833
|
+
sym = s(:lit, sym.last.to_sym)
|
1834
|
+
else
|
1835
|
+
debug20 24
|
1836
|
+
sym = s(:dsym, "", result)
|
1837
|
+
end
|
1838
|
+
|
1839
|
+
result = list.dup << sym
|
1840
|
+
}
|
1841
|
+
|
1842
|
+
qwords: tQWORDS_BEG tSPACE tSTRING_END
|
1843
|
+
{
|
1844
|
+
result = s(:array)
|
1845
|
+
}
|
1846
|
+
| tQWORDS_BEG qword_list tSTRING_END
|
1847
|
+
{
|
1848
|
+
result = val[1]
|
1849
|
+
}
|
1850
|
+
|
1851
|
+
qsymbols: tQSYMBOLS_BEG tSPACE tSTRING_END
|
1852
|
+
{
|
1853
|
+
result = s(:array)
|
1854
|
+
}
|
1855
|
+
| tQSYMBOLS_BEG qsym_list tSTRING_END
|
1856
|
+
{
|
1857
|
+
result = val[1]
|
1858
|
+
}
|
1859
|
+
|
1860
|
+
qword_list: none
|
1861
|
+
{
|
1862
|
+
result = s(:array)
|
1863
|
+
}
|
1864
|
+
| qword_list tSTRING_CONTENT tSPACE
|
1865
|
+
{
|
1866
|
+
result = val[0].dup << s(:str, val[1])
|
1867
|
+
}
|
1868
|
+
|
1869
|
+
qsym_list: none
|
1870
|
+
{
|
1871
|
+
result = s(:array)
|
1872
|
+
}
|
1873
|
+
| qsym_list tSTRING_CONTENT tSPACE
|
1874
|
+
{
|
1875
|
+
result = val[0].dup << s(:lit, val[1].to_sym)
|
1876
|
+
}
|
1877
|
+
|
1878
|
+
string_contents: none
|
1879
|
+
{
|
1880
|
+
result = s(:str, "")
|
1881
|
+
}
|
1882
|
+
| string_contents string_content
|
1883
|
+
{
|
1884
|
+
result = literal_concat(val[0], val[1])
|
1885
|
+
}
|
1886
|
+
|
1887
|
+
xstring_contents: none
|
1888
|
+
{
|
1889
|
+
result = nil
|
1890
|
+
}
|
1891
|
+
| xstring_contents string_content
|
1892
|
+
{
|
1893
|
+
result = literal_concat(val[0], val[1])
|
1894
|
+
}
|
1895
|
+
|
1896
|
+
regexp_contents: none
|
1897
|
+
{
|
1898
|
+
result = nil
|
1899
|
+
}
|
1900
|
+
| regexp_contents string_content
|
1901
|
+
{
|
1902
|
+
result = literal_concat(val[0], val[1])
|
1903
|
+
}
|
1904
|
+
|
1905
|
+
string_content: tSTRING_CONTENT
|
1906
|
+
{
|
1907
|
+
result = new_string val
|
1908
|
+
}
|
1909
|
+
| tSTRING_DVAR
|
1910
|
+
{
|
1911
|
+
result = lexer.lex_strterm
|
1912
|
+
|
1913
|
+
lexer.lex_strterm = nil
|
1914
|
+
lexer.lex_state = :expr_beg
|
1915
|
+
}
|
1916
|
+
string_dvar
|
1917
|
+
{
|
1918
|
+
lexer.lex_strterm = val[1]
|
1919
|
+
result = s(:evstr, val[2])
|
1920
|
+
}
|
1921
|
+
| tSTRING_DBEG
|
1922
|
+
{
|
1923
|
+
result = [lexer.lex_strterm,
|
1924
|
+
lexer.brace_nest,
|
1925
|
+
lexer.string_nest, # TODO: remove
|
1926
|
+
lexer.cond.store,
|
1927
|
+
lexer.cmdarg.store,
|
1928
|
+
lexer.lex_state,
|
1929
|
+
]
|
1930
|
+
|
1931
|
+
lexer.lex_strterm = nil
|
1932
|
+
lexer.brace_nest = 0
|
1933
|
+
lexer.string_nest = 0
|
1934
|
+
|
1935
|
+
lexer.lex_state = :expr_beg
|
1936
|
+
}
|
1937
|
+
compstmt tRCURLY
|
1938
|
+
{
|
1939
|
+
#if defined(RUBY20)
|
1940
|
+
# TODO: tRCURLY -> tSTRING_DEND
|
1941
|
+
#elif defined(RUBY21) || defined(RUBY22 || defined(RUBY23))
|
1942
|
+
# TODO: tRCURLY -> tSTRING_END
|
1943
|
+
#endif
|
1944
|
+
_, memo, stmt, _ = val
|
1945
|
+
|
1946
|
+
lex_strterm, brace_nest, string_nest, oldcond, oldcmdarg, oldlex_state = memo
|
1947
|
+
|
1948
|
+
lexer.lex_strterm = lex_strterm
|
1949
|
+
lexer.brace_nest = brace_nest
|
1950
|
+
lexer.string_nest = string_nest
|
1951
|
+
|
1952
|
+
lexer.cond.restore oldcond
|
1953
|
+
lexer.cmdarg.restore oldcmdarg
|
1954
|
+
|
1955
|
+
lexer.lex_state = oldlex_state
|
1956
|
+
|
1957
|
+
case stmt
|
1958
|
+
when Sexp then
|
1959
|
+
case stmt[0]
|
1960
|
+
when :str, :dstr, :evstr then
|
1961
|
+
result = stmt
|
1962
|
+
else
|
1963
|
+
result = s(:evstr, stmt)
|
1964
|
+
end
|
1965
|
+
when nil then
|
1966
|
+
result = s(:evstr)
|
1967
|
+
else
|
1968
|
+
debug20 25
|
1969
|
+
raise "unknown string body: #{stmt.inspect}"
|
1970
|
+
end
|
1971
|
+
}
|
1972
|
+
|
1973
|
+
string_dvar: tGVAR { result = s(:gvar, val[0].to_sym) }
|
1974
|
+
| tIVAR { result = s(:ivar, val[0].to_sym) }
|
1975
|
+
| tCVAR { result = s(:cvar, val[0].to_sym) }
|
1976
|
+
| backref
|
1977
|
+
|
1978
|
+
symbol: tSYMBEG sym
|
1979
|
+
{
|
1980
|
+
lexer.lex_state = :expr_end
|
1981
|
+
result = val[1].to_sym
|
1982
|
+
}
|
1983
|
+
| tSYMBOL
|
1984
|
+
{
|
1985
|
+
result = val[0].to_sym
|
1986
|
+
}
|
1987
|
+
|
1988
|
+
sym: fname | tIVAR | tGVAR | tCVAR
|
1989
|
+
|
1990
|
+
dsym: tSYMBEG xstring_contents tSTRING_END
|
1991
|
+
{
|
1992
|
+
lexer.lex_state = :expr_end
|
1993
|
+
result = val[1]
|
1994
|
+
|
1995
|
+
result ||= s(:str, "")
|
1996
|
+
|
1997
|
+
case result[0]
|
1998
|
+
when :dstr then
|
1999
|
+
result[0] = :dsym
|
2000
|
+
when :str then
|
2001
|
+
result = s(:lit, result.last.to_sym)
|
2002
|
+
when :evstr then
|
2003
|
+
result = s(:dsym, "", result)
|
2004
|
+
else
|
2005
|
+
debug20 26, val, result
|
2006
|
+
end
|
2007
|
+
}
|
2008
|
+
|
2009
|
+
#if defined(RUBY20)
|
2010
|
+
numeric: tINTEGER
|
2011
|
+
| tFLOAT
|
2012
|
+
| tUMINUS_NUM tINTEGER =tLOWEST
|
2013
|
+
#elif defined(RUBY21) || defined(RUBY22 || defined(RUBY23))
|
2014
|
+
numeric: simple_numeric
|
2015
|
+
| tUMINUS_NUM simple_numeric
|
2016
|
+
#endif
|
2017
|
+
{
|
2018
|
+
result = -val[1] # TODO: pt_testcase
|
2019
|
+
#if defined(RUBY20)
|
2020
|
+
}
|
2021
|
+
| tUMINUS_NUM tFLOAT =tLOWEST
|
2022
|
+
{
|
2023
|
+
result = -val[1] # TODO: pt_testcase
|
2024
|
+
#endif
|
2025
|
+
}
|
2026
|
+
|
2027
|
+
#if defined(RUBY21) || defined(RUBY22) || defined(RUBY23))
|
2028
|
+
simple_numeric: tINTEGER
|
2029
|
+
| tFLOAT
|
2030
|
+
| tRATIONAL
|
2031
|
+
| tIMAGINARY
|
2032
|
+
|
2033
|
+
#endif
|
2034
|
+
user_variable: tIDENTIFIER
|
2035
|
+
| tIVAR
|
2036
|
+
| tGVAR
|
2037
|
+
| tCONSTANT
|
2038
|
+
| tCVAR
|
2039
|
+
|
2040
|
+
keyword_variable: kNIL { result = s(:nil) }
|
2041
|
+
| kSELF { result = s(:self) }
|
2042
|
+
| kTRUE { result = s(:true) }
|
2043
|
+
| kFALSE { result = s(:false) }
|
2044
|
+
| k__FILE__ { result = s(:str, self.file) }
|
2045
|
+
| k__LINE__ { result = s(:lit, lexer.lineno) }
|
2046
|
+
| k__ENCODING__
|
2047
|
+
{
|
2048
|
+
result =
|
2049
|
+
if defined? Encoding then
|
2050
|
+
s(:colon2, s(:const, :Encoding), :UTF_8)
|
2051
|
+
else
|
2052
|
+
s(:str, "Unsupported!")
|
2053
|
+
end
|
2054
|
+
}
|
2055
|
+
|
2056
|
+
var_ref: user_variable
|
2057
|
+
{
|
2058
|
+
var = val[0]
|
2059
|
+
result = Sexp === var ? var : self.gettable(var)
|
2060
|
+
}
|
2061
|
+
| keyword_variable
|
2062
|
+
{
|
2063
|
+
var = val[0]
|
2064
|
+
result = Sexp === var ? var : self.gettable(var)
|
2065
|
+
}
|
2066
|
+
|
2067
|
+
var_lhs: user_variable
|
2068
|
+
{
|
2069
|
+
result = self.assignable val[0]
|
2070
|
+
}
|
2071
|
+
| keyword_variable
|
2072
|
+
{
|
2073
|
+
result = self.assignable val[0]
|
2074
|
+
debug20 29, val, result
|
2075
|
+
}
|
2076
|
+
|
2077
|
+
backref: tNTH_REF { result = s(:nth_ref, val[0]) }
|
2078
|
+
| tBACK_REF { result = s(:back_ref, val[0]) }
|
2079
|
+
|
2080
|
+
superclass: term
|
2081
|
+
{
|
2082
|
+
result = nil
|
2083
|
+
}
|
2084
|
+
| tLT
|
2085
|
+
{
|
2086
|
+
lexer.lex_state = :expr_beg
|
2087
|
+
}
|
2088
|
+
expr_value term
|
2089
|
+
{
|
2090
|
+
result = val[2]
|
2091
|
+
}
|
2092
|
+
| error term
|
2093
|
+
{
|
2094
|
+
yyerrok
|
2095
|
+
result = nil
|
2096
|
+
debug20 30, val, result
|
2097
|
+
}
|
2098
|
+
|
2099
|
+
f_arglist: tLPAREN2 f_args rparen
|
2100
|
+
{
|
2101
|
+
result = val[1]
|
2102
|
+
self.lexer.lex_state = :expr_beg
|
2103
|
+
self.lexer.command_start = true
|
2104
|
+
# TODO:
|
2105
|
+
# $<num>$ = parser->parser_in_kwarg;
|
2106
|
+
# parser->parser_in_kwarg = 1;
|
2107
|
+
}
|
2108
|
+
| f_args term
|
2109
|
+
{
|
2110
|
+
# TODO: parser->parser_in_kwarg = $<num>1;
|
2111
|
+
result = val[0]
|
2112
|
+
self.lexer.lex_state = :expr_beg
|
2113
|
+
self.lexer.command_start = true
|
2114
|
+
}
|
2115
|
+
|
2116
|
+
args_tail: f_kwarg tCOMMA f_kwrest opt_f_block_arg
|
2117
|
+
{
|
2118
|
+
result = args val
|
2119
|
+
}
|
2120
|
+
| f_kwarg opt_f_block_arg
|
2121
|
+
{
|
2122
|
+
result = args val
|
2123
|
+
}
|
2124
|
+
| f_kwrest opt_f_block_arg
|
2125
|
+
{
|
2126
|
+
result = args val
|
2127
|
+
}
|
2128
|
+
| f_block_arg
|
2129
|
+
|
2130
|
+
opt_args_tail: tCOMMA args_tail
|
2131
|
+
{
|
2132
|
+
result = val[1]
|
2133
|
+
}
|
2134
|
+
|
|
2135
|
+
{
|
2136
|
+
result = nil
|
2137
|
+
}
|
2138
|
+
|
2139
|
+
f_args: f_arg tCOMMA f_optarg tCOMMA f_rest_arg opt_args_tail
|
2140
|
+
{
|
2141
|
+
result = args val
|
2142
|
+
}
|
2143
|
+
| f_arg tCOMMA f_optarg tCOMMA f_rest_arg tCOMMA f_arg opt_args_tail
|
2144
|
+
{
|
2145
|
+
result = args val
|
2146
|
+
}
|
2147
|
+
| f_arg tCOMMA f_optarg opt_args_tail
|
2148
|
+
{
|
2149
|
+
result = args val
|
2150
|
+
}
|
2151
|
+
| f_arg tCOMMA f_optarg tCOMMA f_arg opt_args_tail
|
2152
|
+
{
|
2153
|
+
result = args val
|
2154
|
+
}
|
2155
|
+
| f_arg tCOMMA f_rest_arg opt_args_tail
|
2156
|
+
{
|
2157
|
+
result = args val
|
2158
|
+
}
|
2159
|
+
| f_arg tCOMMA f_rest_arg tCOMMA f_arg opt_args_tail
|
2160
|
+
{
|
2161
|
+
result = args val
|
2162
|
+
}
|
2163
|
+
| f_arg opt_args_tail
|
2164
|
+
{
|
2165
|
+
result = args val
|
2166
|
+
}
|
2167
|
+
| f_optarg tCOMMA f_rest_arg opt_args_tail
|
2168
|
+
{
|
2169
|
+
result = args val
|
2170
|
+
}
|
2171
|
+
| f_optarg tCOMMA f_rest_arg tCOMMA f_arg opt_args_tail
|
2172
|
+
{
|
2173
|
+
result = args val
|
2174
|
+
}
|
2175
|
+
| f_optarg opt_args_tail
|
2176
|
+
{
|
2177
|
+
result = args val
|
2178
|
+
}
|
2179
|
+
| f_optarg tCOMMA f_arg opt_args_tail
|
2180
|
+
{
|
2181
|
+
result = args val
|
2182
|
+
}
|
2183
|
+
| f_rest_arg opt_args_tail
|
2184
|
+
{
|
2185
|
+
result = args val
|
2186
|
+
}
|
2187
|
+
| f_rest_arg tCOMMA f_arg opt_args_tail
|
2188
|
+
{
|
2189
|
+
result = args val
|
2190
|
+
}
|
2191
|
+
| args_tail
|
2192
|
+
{
|
2193
|
+
result = args val
|
2194
|
+
}
|
2195
|
+
|
|
2196
|
+
{
|
2197
|
+
result = args val
|
2198
|
+
}
|
2199
|
+
|
2200
|
+
f_bad_arg: tCONSTANT
|
2201
|
+
{
|
2202
|
+
yyerror "formal argument cannot be a constant"
|
2203
|
+
}
|
2204
|
+
| tIVAR
|
2205
|
+
{
|
2206
|
+
yyerror "formal argument cannot be an instance variable"
|
2207
|
+
}
|
2208
|
+
| tGVAR
|
2209
|
+
{
|
2210
|
+
yyerror "formal argument cannot be a global variable"
|
2211
|
+
}
|
2212
|
+
| tCVAR
|
2213
|
+
{
|
2214
|
+
yyerror "formal argument cannot be a class variable"
|
2215
|
+
}
|
2216
|
+
|
2217
|
+
f_norm_arg: f_bad_arg
|
2218
|
+
| tIDENTIFIER
|
2219
|
+
{
|
2220
|
+
identifier = val[0].to_sym
|
2221
|
+
self.env[identifier] = :lvar
|
2222
|
+
|
2223
|
+
result = identifier
|
2224
|
+
}
|
2225
|
+
|
2226
|
+
#if defined(RUBY22) || defined(RUBY23))
|
2227
|
+
f_arg_asgn: f_norm_arg
|
2228
|
+
|
2229
|
+
f_arg_item: f_arg_asgn
|
2230
|
+
| tLPAREN f_margs rparen
|
2231
|
+
{
|
2232
|
+
result = val[1]
|
2233
|
+
}
|
2234
|
+
#else
|
2235
|
+
f_arg_item: f_norm_arg
|
2236
|
+
| tLPAREN f_margs rparen
|
2237
|
+
{
|
2238
|
+
result = val[1]
|
2239
|
+
}
|
2240
|
+
#endif
|
2241
|
+
|
2242
|
+
f_arg: f_arg_item
|
2243
|
+
{
|
2244
|
+
case val[0]
|
2245
|
+
when Symbol then
|
2246
|
+
result = s(:args)
|
2247
|
+
result << val[0]
|
2248
|
+
when Sexp then
|
2249
|
+
result = val[0]
|
2250
|
+
else
|
2251
|
+
debug20 32
|
2252
|
+
raise "Unknown f_arg type: #{val.inspect}"
|
2253
|
+
end
|
2254
|
+
}
|
2255
|
+
| f_arg tCOMMA f_arg_item
|
2256
|
+
{
|
2257
|
+
list, _, item = val
|
2258
|
+
|
2259
|
+
if list.sexp_type == :args then
|
2260
|
+
result = list
|
2261
|
+
else
|
2262
|
+
result = s(:args, list)
|
2263
|
+
end
|
2264
|
+
|
2265
|
+
result << item
|
2266
|
+
}
|
2267
|
+
|
2268
|
+
#if defined(RUBY20)
|
2269
|
+
f_kw: tLABEL arg_value
|
2270
|
+
#elif defined(RUBY21) || defined(RUBY22) || defined(RUBY23)
|
2271
|
+
f_label: tLABEL
|
2272
|
+
|
2273
|
+
f_kw: f_label arg_value
|
2274
|
+
#endif
|
2275
|
+
{
|
2276
|
+
# TODO: call_args
|
2277
|
+
label, _ = val[0] # TODO: fix lineno?
|
2278
|
+
identifier = label.to_sym
|
2279
|
+
self.env[identifier] = :lvar
|
2280
|
+
|
2281
|
+
result = s(:array, s(:kwarg, identifier, val[1]))
|
2282
|
+
}
|
2283
|
+
#if defined(RUBY21) || defined(RUBY22) || defined(RUBY23)
|
2284
|
+
| f_label
|
2285
|
+
{
|
2286
|
+
label, _ = val[0] # TODO: fix lineno?
|
2287
|
+
identifier = label.to_sym
|
2288
|
+
self.env[identifier] = :lvar
|
2289
|
+
|
2290
|
+
result = s(:array, s(:kwarg, identifier))
|
2291
|
+
}
|
2292
|
+
#endif
|
2293
|
+
|
2294
|
+
#if defined(RUBY20)
|
2295
|
+
f_block_kw: tLABEL primary_value
|
2296
|
+
#elif defined(RUBY21) || defined(RUBY22) || defined(RUBY23)
|
2297
|
+
f_block_kw: f_label primary_value
|
2298
|
+
#endif
|
2299
|
+
{
|
2300
|
+
# TODO: call_args
|
2301
|
+
label, _ = val[0] # TODO: fix lineno?
|
2302
|
+
identifier = label.to_sym
|
2303
|
+
self.env[identifier] = :lvar
|
2304
|
+
|
2305
|
+
result = s(:array, s(:kwarg, identifier, val[1]))
|
2306
|
+
}
|
2307
|
+
#if defined(RUBY21) || defined(RUBY22) || defined(RUBY23)
|
2308
|
+
| f_label
|
2309
|
+
{
|
2310
|
+
label, _ = val[0] # TODO: fix lineno?
|
2311
|
+
identifier = label.to_sym
|
2312
|
+
self.env[identifier] = :lvar
|
2313
|
+
|
2314
|
+
result = s(:array, s(:kwarg, identifier))
|
2315
|
+
}
|
2316
|
+
#endif
|
2317
|
+
|
2318
|
+
f_block_kwarg: f_block_kw
|
2319
|
+
| f_block_kwarg tCOMMA f_block_kw
|
2320
|
+
{
|
2321
|
+
list, _, item = val
|
2322
|
+
result = list << item.last
|
2323
|
+
}
|
2324
|
+
|
2325
|
+
f_kwarg: f_kw
|
2326
|
+
| f_kwarg tCOMMA f_kw
|
2327
|
+
{
|
2328
|
+
result = args val
|
2329
|
+
}
|
2330
|
+
|
2331
|
+
kwrest_mark: tPOW
|
2332
|
+
| tDSTAR
|
2333
|
+
|
2334
|
+
f_kwrest: kwrest_mark tIDENTIFIER
|
2335
|
+
{
|
2336
|
+
result = :"**#{val[1]}"
|
2337
|
+
}
|
2338
|
+
| kwrest_mark
|
2339
|
+
{
|
2340
|
+
debug20 36, val, result
|
2341
|
+
}
|
2342
|
+
|
2343
|
+
#if defined(RUBY20)
|
2344
|
+
f_opt: tIDENTIFIER tEQL arg_value
|
2345
|
+
#elif defined(RUBY21)
|
2346
|
+
f_opt: f_norm_arg tEQL arg_value
|
2347
|
+
#elif defined(RUBY22) || defined(RUBY23)
|
2348
|
+
f_opt: f_arg_asgn tEQL arg_value
|
2349
|
+
#endif
|
2350
|
+
{
|
2351
|
+
result = self.assignable val[0], val[2]
|
2352
|
+
# TODO: detect duplicate names
|
2353
|
+
}
|
2354
|
+
|
2355
|
+
#if defined(RUBY20)
|
2356
|
+
f_block_opt: tIDENTIFIER tEQL primary_value
|
2357
|
+
#elif defined(RUBY21)
|
2358
|
+
f_block_opt: f_norm_arg tEQL primary_value
|
2359
|
+
#elif defined(RUBY22) || defined(RUBY23)
|
2360
|
+
f_block_opt: f_arg_asgn tEQL primary_value
|
2361
|
+
#endif
|
2362
|
+
{
|
2363
|
+
result = self.assignable val[0], val[2]
|
2364
|
+
}
|
2365
|
+
|
2366
|
+
f_block_optarg: f_block_opt
|
2367
|
+
{
|
2368
|
+
result = s(:block, val[0])
|
2369
|
+
}
|
2370
|
+
| f_block_optarg tCOMMA f_block_opt
|
2371
|
+
{
|
2372
|
+
result = val[0]
|
2373
|
+
result << val[2]
|
2374
|
+
}
|
2375
|
+
|
2376
|
+
f_optarg: f_opt
|
2377
|
+
{
|
2378
|
+
result = s(:block, val[0])
|
2379
|
+
}
|
2380
|
+
| f_optarg tCOMMA f_opt
|
2381
|
+
{
|
2382
|
+
result = self.block_append val[0], val[2]
|
2383
|
+
}
|
2384
|
+
|
2385
|
+
restarg_mark: tSTAR2 | tSTAR
|
2386
|
+
|
2387
|
+
f_rest_arg: restarg_mark tIDENTIFIER
|
2388
|
+
{
|
2389
|
+
# TODO: differs from parse.y - needs tests
|
2390
|
+
name = val[1].to_sym
|
2391
|
+
self.assignable name
|
2392
|
+
result = :"*#{name}"
|
2393
|
+
}
|
2394
|
+
| restarg_mark
|
2395
|
+
{
|
2396
|
+
name = :"*"
|
2397
|
+
self.env[name] = :lvar
|
2398
|
+
result = name
|
2399
|
+
}
|
2400
|
+
|
2401
|
+
blkarg_mark: tAMPER2 | tAMPER
|
2402
|
+
|
2403
|
+
f_block_arg: blkarg_mark tIDENTIFIER
|
2404
|
+
{
|
2405
|
+
identifier = val[1].to_sym
|
2406
|
+
|
2407
|
+
self.env[identifier] = :lvar
|
2408
|
+
result = "&#{identifier}".to_sym
|
2409
|
+
}
|
2410
|
+
|
2411
|
+
opt_f_block_arg: tCOMMA f_block_arg
|
2412
|
+
{
|
2413
|
+
result = val[1]
|
2414
|
+
}
|
2415
|
+
|
|
2416
|
+
{
|
2417
|
+
result = nil
|
2418
|
+
}
|
2419
|
+
|
2420
|
+
singleton: var_ref
|
2421
|
+
| tLPAREN2
|
2422
|
+
{
|
2423
|
+
lexer.lex_state = :expr_beg
|
2424
|
+
}
|
2425
|
+
expr rparen
|
2426
|
+
{
|
2427
|
+
result = val[2]
|
2428
|
+
yyerror "Can't define single method for literals." if
|
2429
|
+
result[0] == :lit
|
2430
|
+
}
|
2431
|
+
|
2432
|
+
assoc_list: none # [!nil]
|
2433
|
+
{
|
2434
|
+
result = s(:array)
|
2435
|
+
}
|
2436
|
+
| assocs trailer # [!nil]
|
2437
|
+
{
|
2438
|
+
result = val[0]
|
2439
|
+
}
|
2440
|
+
|
2441
|
+
assocs: assoc
|
2442
|
+
| assocs tCOMMA assoc
|
2443
|
+
{
|
2444
|
+
list = val[0].dup
|
2445
|
+
more = val[2][1..-1]
|
2446
|
+
list.push(*more) unless more.empty?
|
2447
|
+
result = list
|
2448
|
+
result[0] = :hash
|
2449
|
+
# TODO: shouldn't this be a hash?
|
2450
|
+
}
|
2451
|
+
|
2452
|
+
assoc: arg_value tASSOC arg_value
|
2453
|
+
{
|
2454
|
+
result = s(:array, val[0], val[2])
|
2455
|
+
}
|
2456
|
+
| tLABEL arg_value
|
2457
|
+
{
|
2458
|
+
result = s(:array, s(:lit, val[0][0].to_sym), val[1])
|
2459
|
+
}
|
2460
|
+
#if defined(RUBY22) || defined(RUBY23)
|
2461
|
+
| tSTRING_BEG string_contents tLABEL_END arg_value
|
2462
|
+
{
|
2463
|
+
_, sym, _, value = val
|
2464
|
+
sym[0] = :dsym
|
2465
|
+
result = s(:array, sym, value)
|
2466
|
+
}
|
2467
|
+
| tSYMBOL arg_value
|
2468
|
+
{
|
2469
|
+
raise "not yet: #{val.inspect}"
|
2470
|
+
# result = s(:array, s(:lit, val[1].to_sym), val[1])
|
2471
|
+
}
|
2472
|
+
#endif
|
2473
|
+
| tDSTAR arg_value
|
2474
|
+
{
|
2475
|
+
result = s(:array, s(:kwsplat, val[1]))
|
2476
|
+
}
|
2477
|
+
|
2478
|
+
operation: tIDENTIFIER | tCONSTANT | tFID
|
2479
|
+
operation2: tIDENTIFIER | tCONSTANT | tFID | op
|
2480
|
+
operation3: tIDENTIFIER | tFID | op
|
2481
|
+
dot_or_colon: tDOT | tCOLON2
|
2482
|
+
opt_terms: | terms
|
2483
|
+
opt_nl: | tNL
|
2484
|
+
rparen: opt_nl tRPAREN
|
2485
|
+
rbracket: opt_nl tRBRACK
|
2486
|
+
trailer: | tNL | tCOMMA
|
2487
|
+
|
2488
|
+
term: tSEMI { yyerrok }
|
2489
|
+
| tNL
|
2490
|
+
|
2491
|
+
terms: term
|
2492
|
+
| terms tSEMI { yyerrok }
|
2493
|
+
|
2494
|
+
none: { result = nil; }
|
2495
|
+
end
|
2496
|
+
|
2497
|
+
---- inner
|
2498
|
+
|
2499
|
+
require "ruby_lexer"
|
2500
|
+
require "ruby_parser_extras"
|
2501
|
+
|
2502
|
+
# :stopdoc:
|
2503
|
+
|
2504
|
+
# Local Variables: **
|
2505
|
+
# racc-token-length-max:14 **
|
2506
|
+
# End: **
|