tdiary 3.2.2.20130507
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.coveralls.yml +1 -0
- data/.gitignore +16 -0
- data/.travis.yml +29 -0
- data/Capfile +2 -0
- data/ChangeLog +3173 -0
- data/Gemfile +58 -0
- data/Gemfile.lock +201 -0
- data/LICENSE +340 -0
- data/Procfile +1 -0
- data/README.md +33 -0
- data/Rakefile +26 -0
- data/bin/tdiary +7 -0
- data/config.ru +61 -0
- data/data/.htaccess +2 -0
- data/doc/HOWTO-authenticate-in-rack.md +89 -0
- data/doc/HOWTO-make-io.md +305 -0
- data/doc/HOWTO-make-plugin.md +279 -0
- data/doc/HOWTO-make-theme.md +67 -0
- data/doc/HOWTO-testing-tDiary.md +44 -0
- data/doc/HOWTO-use-plugin.md +148 -0
- data/doc/HOWTO-write-tDiary.en.md +131 -0
- data/doc/HOWTO-write-tDiary.md +136 -0
- data/doc/INSTALL-paas.md +202 -0
- data/doc/INSTALL.md +160 -0
- data/doc/README.en.md +174 -0
- data/doc/README.md +56 -0
- data/doc/UPGRADE.md +164 -0
- data/doc/doc.css +115 -0
- data/dot.htaccess +27 -0
- data/index.fcgi +45 -0
- data/index.rb +57 -0
- data/js/00default.js +60 -0
- data/js/01conf.js +62 -0
- data/js/02edit.coffee +5 -0
- data/js/02edit.js +15 -0
- data/js/amazon.js +43 -0
- data/js/calendar3.js +130 -0
- data/js/caretposition.js +170 -0
- data/js/category.js +29 -0
- data/js/category_autocomplete.js +96 -0
- data/js/comment_ajax.js +27 -0
- data/js/draft.js +149 -0
- data/js/highlight.js +36 -0
- data/js/image.js +181 -0
- data/misc/convert2.rb +123 -0
- data/misc/filter/antispamservice.rb +101 -0
- data/misc/filter/limitdays.rb +40 -0
- data/misc/filter/linkcheck.rb +81 -0
- data/misc/filter/plugin/antispamservice.rb +82 -0
- data/misc/filter/plugin/en/antispamservice.rb +21 -0
- data/misc/filter/plugin/ja/antispamservice.rb +20 -0
- data/misc/lib/README +4 -0
- data/misc/lib/compatible.rb +1 -0
- data/misc/lib/fcgi_patch.rb +90 -0
- data/misc/migrate.rb +157 -0
- data/misc/paas/cloudfoundry/Gemfile +26 -0
- data/misc/paas/cloudfoundry/Gemfile.lock +85 -0
- data/misc/paas/heroku/Gemfile +22 -0
- data/misc/paas/heroku/Gemfile.lock +85 -0
- data/misc/paas/sqale/Gemfile +19 -0
- data/misc/paas/sqale/Gemfile.lock +85 -0
- data/misc/paas/sqale/Procfile +1 -0
- data/misc/paas/sqale/dot.env +1 -0
- data/misc/plugin/ChangeLog.DO_NOT_UPDATE +2333 -0
- data/misc/plugin/a.rb +211 -0
- data/misc/plugin/amazon.rb +403 -0
- data/misc/plugin/amazon/README.en +17 -0
- data/misc/plugin/amazon/README.ja +29 -0
- data/misc/plugin/amazon/amazonimg.rb +113 -0
- data/misc/plugin/amazon/large.png +0 -0
- data/misc/plugin/amazon/medium.png +0 -0
- data/misc/plugin/amazon/small.png +0 -0
- data/misc/plugin/append-css.rb +51 -0
- data/misc/plugin/bq.rb +48 -0
- data/misc/plugin/calendar2.rb +184 -0
- data/misc/plugin/calendar3.rb +256 -0
- data/misc/plugin/category.rb +779 -0
- data/misc/plugin/category_autocomplete.rb +33 -0
- data/misc/plugin/comment_ajax.rb +11 -0
- data/misc/plugin/comment_mail-qmail.rb +57 -0
- data/misc/plugin/comment_mail-sendmail.rb +56 -0
- data/misc/plugin/comment_mail-smtp.rb +59 -0
- data/misc/plugin/comment_rank.rb +36 -0
- data/misc/plugin/counter.rb +631 -0
- data/misc/plugin/daily_theme.rb +55 -0
- data/misc/plugin/disp_referrer.rb +1486 -0
- data/misc/plugin/doctype-html401tr.rb +16 -0
- data/misc/plugin/draft.rb +20 -0
- data/misc/plugin/dropdown_calendar.rb +32 -0
- data/misc/plugin/edit_today.rb +50 -0
- data/misc/plugin/en/a.rb +10 -0
- data/misc/plugin/en/amazon.rb +71 -0
- data/misc/plugin/en/append-css.rb +17 -0
- data/misc/plugin/en/bq.rb +12 -0
- data/misc/plugin/en/calendar2.rb +12 -0
- data/misc/plugin/en/category.rb +204 -0
- data/misc/plugin/en/counter.rb +48 -0
- data/misc/plugin/en/daily_theme.rb +14 -0
- data/misc/plugin/en/disp_referrer.rb +387 -0
- data/misc/plugin/en/dropdown_calendar.rb +14 -0
- data/misc/plugin/en/edit_today.rb +22 -0
- data/misc/plugin/en/hide-mail-field.rb +19 -0
- data/misc/plugin/en/highlight.rb +29 -0
- data/misc/plugin/en/image.rb +54 -0
- data/misc/plugin/en/kw.rb +22 -0
- data/misc/plugin/en/makerss.rb +47 -0
- data/misc/plugin/en/pb-show.rb +21 -0
- data/misc/plugin/en/ping.rb +16 -0
- data/misc/plugin/en/recent_comment.rb +44 -0
- data/misc/plugin/en/recent_comment3.rb +56 -0
- data/misc/plugin/en/recent_rss.rb +33 -0
- data/misc/plugin/en/referer_scheme.rb +48 -0
- data/misc/plugin/en/search_control.rb +74 -0
- data/misc/plugin/en/search_form.rb +22 -0
- data/misc/plugin/en/speed_comment.rb +19 -0
- data/misc/plugin/en/tb-show.rb +37 -0
- data/misc/plugin/en/todo.rb +43 -0
- data/misc/plugin/en/weather.rb +185 -0
- data/misc/plugin/en/xmlrpc.rb +14 -0
- data/misc/plugin/footnote.rb +92 -0
- data/misc/plugin/gradation.rb +39 -0
- data/misc/plugin/gradient.rb +36 -0
- data/misc/plugin/hide-mail-field.rb +50 -0
- data/misc/plugin/highlight.rb +22 -0
- data/misc/plugin/html_anchor.rb +34 -0
- data/misc/plugin/image.rb +290 -0
- data/misc/plugin/ja/amazon.rb +89 -0
- data/misc/plugin/ja/bq.rb +13 -0
- data/misc/plugin/ja/calendar2.rb +12 -0
- data/misc/plugin/ja/category.rb +212 -0
- data/misc/plugin/ja/daily_theme.rb +15 -0
- data/misc/plugin/ja/disp_referrer.rb +644 -0
- data/misc/plugin/ja/edit_today.rb +23 -0
- data/misc/plugin/ja/hide-mail-field.rb +20 -0
- data/misc/plugin/ja/highlight.rb +30 -0
- data/misc/plugin/ja/makerss.rb +44 -0
- data/misc/plugin/ja/my-sequel.rb +52 -0
- data/misc/plugin/ja/pb-show.rb +23 -0
- data/misc/plugin/ja/ping.rb +17 -0
- data/misc/plugin/ja/recent_comment.rb +45 -0
- data/misc/plugin/ja/recent_comment3.rb +57 -0
- data/misc/plugin/ja/recent_rss.rb +34 -0
- data/misc/plugin/ja/referer_scheme.rb +86 -0
- data/misc/plugin/ja/search_control.rb +75 -0
- data/misc/plugin/ja/search_form.rb +32 -0
- data/misc/plugin/ja/tb-show.rb +38 -0
- data/misc/plugin/ja/todo.rb +46 -0
- data/misc/plugin/ja/weather.rb +402 -0
- data/misc/plugin/ja/xmlrpc.rb +15 -0
- data/misc/plugin/kw.rb +150 -0
- data/misc/plugin/list.rb +40 -0
- data/misc/plugin/makelirs.rb +89 -0
- data/misc/plugin/makerss.rb +744 -0
- data/misc/plugin/my-ex.rb +68 -0
- data/misc/plugin/my-sequel.rb +539 -0
- data/misc/plugin/navi_user.rb +19 -0
- data/misc/plugin/number_anchor.rb +47 -0
- data/misc/plugin/pb-show.rb +165 -0
- data/misc/plugin/ping.rb +99 -0
- data/misc/plugin/pre_wrap.rb +19 -0
- data/misc/plugin/random_google.rb +165 -0
- data/misc/plugin/recent_comment.rb +82 -0
- data/misc/plugin/recent_comment3.rb +192 -0
- data/misc/plugin/recent_list.rb +91 -0
- data/misc/plugin/recent_namazu.rb +50 -0
- data/misc/plugin/recent_rss.rb +305 -0
- data/misc/plugin/referer-antibot.rb +53 -0
- data/misc/plugin/referer-utf8.rb +12 -0
- data/misc/plugin/referer_scheme.rb +87 -0
- data/misc/plugin/search_control.rb +227 -0
- data/misc/plugin/search_form.rb +53 -0
- data/misc/plugin/sn.rb +107 -0
- data/misc/plugin/speed_comment.rb +68 -0
- data/misc/plugin/squeeze.rb +272 -0
- data/misc/plugin/src.rb +30 -0
- data/misc/plugin/tb-show.rb +212 -0
- data/misc/plugin/title_list.rb +41 -0
- data/misc/plugin/title_tag.rb +80 -0
- data/misc/plugin/tlink.rb +163 -0
- data/misc/plugin/todo.rb +182 -0
- data/misc/plugin/weather.rb +505 -0
- data/misc/plugin/whatsnew.rb +100 -0
- data/misc/plugin/xmlrpc.rb +80 -0
- data/misc/plugin/xmlrpc/README +20 -0
- data/misc/plugin/xmlrpc/xmlrpc.rb +575 -0
- data/misc/style/emptdiary/README.rd +83 -0
- data/misc/style/emptdiary/README.rd.en +78 -0
- data/misc/style/emptdiary/emptdiary_style.rb +199 -0
- data/misc/style/etdiary/README.rd +83 -0
- data/misc/style/etdiary/etdiary_style.rb +446 -0
- data/misc/style/gfm/gfm_style.rb +194 -0
- data/misc/style/rd/README.rd +71 -0
- data/misc/style/rd/rd_style.rb +366 -0
- data/misc/style/wiki/README +116 -0
- data/misc/style/wiki/README.en +101 -0
- data/misc/style/wiki/wiki_parser.rb +273 -0
- data/misc/style/wiki/wiki_style.rb +478 -0
- data/misc/theme_convert/Readme.rd +21 -0
- data/misc/theme_convert/append.rcss +150 -0
- data/misc/theme_convert/theme_convert.rb +453 -0
- data/plugin/00default.rb +1015 -0
- data/plugin/05referer.rb +298 -0
- data/plugin/10spamfilter.rb +183 -0
- data/plugin/50sp.rb +146 -0
- data/plugin/60sf.rb +152 -0
- data/plugin/90migrate.rb +109 -0
- data/plugin/en/00default.rb +390 -0
- data/plugin/en/05referer.rb +49 -0
- data/plugin/en/10spamfilter.rb +81 -0
- data/plugin/en/50sp.rb +56 -0
- data/plugin/en/60sf.rb +60 -0
- data/plugin/ja/00default.rb +401 -0
- data/plugin/ja/05referer.rb +47 -0
- data/plugin/ja/10spamfilter.rb +79 -0
- data/plugin/ja/50sp.rb +66 -0
- data/plugin/ja/60sf.rb +73 -0
- data/public/.gitkeep +0 -0
- data/public/images/.gitkeep +0 -0
- data/public/javascripts/.gitkeep +0 -0
- data/public/stylesheets/.gitkeep +0 -0
- data/skel/category.rhtml +9 -0
- data/skel/conf.rhtml +23 -0
- data/skel/day.rhtml +33 -0
- data/skel/diary.rhtml +83 -0
- data/skel/footer.rhtml +8 -0
- data/skel/header.rhtml +10 -0
- data/skel/i.category.rhtml +6 -0
- data/skel/i.conf.rhtml +14 -0
- data/skel/i.day.rhtml +28 -0
- data/skel/i.diary.rhtml +17 -0
- data/skel/i.footer.rhtml +2 -0
- data/skel/i.header.rhtml +3 -0
- data/skel/i.latest.rhtml +24 -0
- data/skel/i.month.rhtml +39 -0
- data/skel/i.search.rhtml +5 -0
- data/skel/i.update.rhtml +40 -0
- data/skel/i.update.rhtml.en +40 -0
- data/skel/latest.rhtml +27 -0
- data/skel/mail.rtxt +18 -0
- data/skel/mail.rtxt.en +18 -0
- data/skel/month.rhtml +27 -0
- data/skel/plugin_error.rhtml +27 -0
- data/skel/preview.rhtml +85 -0
- data/skel/preview.rhtml.en +72 -0
- data/skel/referer.rhtml +24 -0
- data/skel/search.rhtml +14 -0
- data/skel/tdiary.rconf +76 -0
- data/skel/update.rhtml +103 -0
- data/skel/update.rhtml.en +83 -0
- data/spec/acceptance/append_comment_spec.rb +94 -0
- data/spec/acceptance/append_diary_spec.rb +98 -0
- data/spec/acceptance/bugfix/encoding_error_spec.rb +27 -0
- data/spec/acceptance/save_conf_comment_spec.rb +87 -0
- data/spec/acceptance/save_conf_default_spec.rb +169 -0
- data/spec/acceptance/save_conf_dnsbl_spec.rb +152 -0
- data/spec/acceptance/save_conf_filter_spec.rb +50 -0
- data/spec/acceptance/save_conf_plugin_spec.rb +69 -0
- data/spec/acceptance/save_conf_referer_spec.rb +60 -0
- data/spec/acceptance/save_conf_security_spec.rb +280 -0
- data/spec/acceptance/support/helpers.rb +49 -0
- data/spec/acceptance/support/paths.rb +7 -0
- data/spec/acceptance/update_diary_spec.rb +113 -0
- data/spec/acceptance/view_category_spec.rb +38 -0
- data/spec/acceptance/view_comment_spec.rb +67 -0
- data/spec/acceptance/view_diary_spec.rb +126 -0
- data/spec/acceptance/view_referer_spec.rb +31 -0
- data/spec/acceptance_helper.rb +101 -0
- data/spec/core/compatible_spec.rb +54 -0
- data/spec/core/core_ext_spec.rb +59 -0
- data/spec/core/plugin_spec.rb +389 -0
- data/spec/core/rack/assets/precompile_spec.rb +76 -0
- data/spec/core/rack/html_anchor_spec.rb +57 -0
- data/spec/core/rack/valid_request_path_spec.rb +67 -0
- data/spec/core/style/emptdiary_style_spec.rb +165 -0
- data/spec/core/style/etdiary_style_spec.rb +512 -0
- data/spec/core/style/gfm_style_spec.rb +334 -0
- data/spec/core/style/rd_style_spec.rb +202 -0
- data/spec/core/style/tdiary_style_spec.rb +240 -0
- data/spec/core/style/wiki_style_spec.rb +441 -0
- data/spec/fixtures/ascii8bit-pstore.db +0 -0
- data/spec/fixtures/invalid-sequence-volatile.tdr +9 -0
- data/spec/fixtures/just_installed.conf +1 -0
- data/spec/fixtures/plugin/ja/sample.rb +4 -0
- data/spec/fixtures/plugin/sample.rb +6 -0
- data/spec/fixtures/sample.rb +12 -0
- data/spec/fixtures/tdiary.conf.gem +212 -0
- data/spec/fixtures/tdiary.conf.rack +212 -0
- data/spec/fixtures/tdiary.conf.rdb +227 -0
- data/spec/fixtures/tdiary.conf.secure +204 -0
- data/spec/fixtures/tdiary.conf.webrick +212 -0
- data/spec/javascripts/00default_spec.js +35 -0
- data/spec/javascripts/fixtures/00default.html +1 -0
- data/spec/javascripts/support/jasmine.yml +76 -0
- data/spec/plugin/bq_spec.rb +24 -0
- data/spec/plugin/plugin_helper.rb +203 -0
- data/spec/spec_helper.rb +32 -0
- data/tdiary.conf.beginner +244 -0
- data/tdiary.conf.sample +345 -0
- data/tdiary.conf.sample-en +333 -0
- data/tdiary.gemspec +26 -0
- data/tdiary.rb +151 -0
- data/tdiary/admin.rb +236 -0
- data/tdiary/application.rb +57 -0
- data/tdiary/author_only_base.rb +171 -0
- data/tdiary/base.rb +220 -0
- data/tdiary/cli.rb +116 -0
- data/tdiary/comment.rb +40 -0
- data/tdiary/comment_manager.rb +94 -0
- data/tdiary/compatible.rb +72 -0
- data/tdiary/config.rb +270 -0
- data/tdiary/core_ext.rb +122 -0
- data/tdiary/deploy.rb +50 -0
- data/tdiary/dispatcher.rb +77 -0
- data/tdiary/dispatcher/index_main.rb +122 -0
- data/tdiary/dispatcher/update_main.rb +101 -0
- data/tdiary/environment.rb +15 -0
- data/tdiary/filter.rb +48 -0
- data/tdiary/filter/default.rb +54 -0
- data/tdiary/filter/spam.rb +304 -0
- data/tdiary/io/base.rb +70 -0
- data/tdiary/io/cache/file.rb +123 -0
- data/tdiary/io/cache/memcached.rb +88 -0
- data/tdiary/io/cache/redis.rb +100 -0
- data/tdiary/io/default.rb +297 -0
- data/tdiary/io/pstore.rb +252 -0
- data/tdiary/io/rdb.rb +213 -0
- data/tdiary/lang/en.rb +79 -0
- data/tdiary/lang/ja.rb +72 -0
- data/tdiary/plugin.rb +375 -0
- data/tdiary/rack/assets/precompile.rb +37 -0
- data/tdiary/rack/auth/basic.rb +38 -0
- data/tdiary/rack/auth/omniauth.rb +51 -0
- data/tdiary/rack/html_anchor.rb +31 -0
- data/tdiary/rack/valid_request_path.rb +36 -0
- data/tdiary/referer_manager.rb +80 -0
- data/tdiary/request.rb +217 -0
- data/tdiary/response.rb +29 -0
- data/tdiary/server.rb +85 -0
- data/tdiary/style.rb +194 -0
- data/tdiary/style/tdiary_style.rb +198 -0
- data/tdiary/style/wiki_style.rb +213 -0
- data/tdiary/tasks.rb +1 -0
- data/tdiary/tasks/assets.rake +31 -0
- data/tdiary/tasks/auth.rake +28 -0
- data/tdiary/tasks/db.rake +110 -0
- data/tdiary/tasks/doc.rake +31 -0
- data/tdiary/tasks/heroku.rake +37 -0
- data/tdiary/tasks/jasmine.rake +16 -0
- data/tdiary/tasks/rdoc.rake +24 -0
- data/tdiary/tasks/release.rake +122 -0
- data/tdiary/tasks/rspec.rake +51 -0
- data/tdiary/tasks/server.rake +33 -0
- data/tdiary/tasks/test.rake +17 -0
- data/tdiary/version.rb +3 -0
- data/tdiary/view.rb +468 -0
- data/tdiary/view_helper.rb +15 -0
- data/test/disp_referrer_test.rb +93 -0
- data/test/my-sequel_test.rb +238 -0
- data/test/test_helper.rb +7 -0
- data/test/test_plugin_helper.rb +64 -0
- data/test/test_plugin_helper_test.rb +28 -0
- data/test/weather_test.rb +33 -0
- data/theme/base.css +268 -0
- data/theme/conf.block.png +0 -0
- data/theme/conf.css +254 -0
- data/theme/default/README +11 -0
- data/theme/default/body.png +0 -0
- data/theme/default/default.css +743 -0
- data/theme/help.png +0 -0
- data/theme/loading.gif +0 -0
- data/theme/tdiary1/README +7 -0
- data/theme/tdiary1/tdiary1.css +394 -0
- data/theme/tdiary2/README +19 -0
- data/theme/tdiary2/tdiary2.css +624 -0
- data/update.fcgi +45 -0
- data/update.rb +57 -0
- data/vendor/hikidoc-0.0.6/COPYING +28 -0
- data/vendor/hikidoc-0.0.6/NEWS +30 -0
- data/vendor/hikidoc-0.0.6/NEWS.ja +30 -0
- data/vendor/hikidoc-0.0.6/README +86 -0
- data/vendor/hikidoc-0.0.6/README.ja +83 -0
- data/vendor/hikidoc-0.0.6/Rakefile +68 -0
- data/vendor/hikidoc-0.0.6/TextFormattingRules +320 -0
- data/vendor/hikidoc-0.0.6/TextFormattingRules.ja +318 -0
- data/vendor/hikidoc-0.0.6/bin/hikidoc +66 -0
- data/vendor/hikidoc-0.0.6/lib/hikidoc.rb +914 -0
- data/vendor/hikidoc-0.0.6/setup.rb +1360 -0
- data/vendor/hikidoc-0.0.6/test/run-test.rb +13 -0
- data/vendor/hikidoc-0.0.6/test/test_hikidoc.rb +506 -0
- data/vendor/imagesize-0.1.1/Manifest.txt +19 -0
- data/vendor/imagesize-0.1.1/README.txt +49 -0
- data/vendor/imagesize-0.1.1/lib/image_size.rb +305 -0
- data/vendor/imagesize-0.1.1/lib/image_size/version.rb +9 -0
- data/vendor/imagesize-0.1.1/setup.rb +1585 -0
- data/vendor/imagesize-0.1.1/test/2-4-7.png +0 -0
- data/vendor/imagesize-0.1.1/test/4_1_2.gif +0 -0
- data/vendor/imagesize-0.1.1/test/bmp.bmp +0 -0
- data/vendor/imagesize-0.1.1/test/cursor.xbm +6 -0
- data/vendor/imagesize-0.1.1/test/detect.swf +0 -0
- data/vendor/imagesize-0.1.1/test/pbm.pbm +0 -0
- data/vendor/imagesize-0.1.1/test/pcx.pcx +0 -0
- data/vendor/imagesize-0.1.1/test/pgm.pgm +5 -0
- data/vendor/imagesize-0.1.1/test/test.xpm +38 -0
- data/vendor/imagesize-0.1.1/test/test_helper.rb +2 -0
- data/vendor/imagesize-0.1.1/test/test_image_size.rb +71 -0
- data/vendor/imagesize-0.1.1/test/tiff.tiff +0 -0
- data/vendor/imagesize-0.1.1/test/tokyo_tower.jpg +0 -0
- data/vendor/imagesize-0.1.1/test/tower_e.gif.psd +0 -0
- data/vendor/jasmine-jquery-1.4.2/jasmine-jquery.js +548 -0
- data/vendor/jquery-1.8/jquery.js +9227 -0
- data/vendor/rdtool-0.6.38/COPYING.txt +339 -0
- data/vendor/rdtool-0.6.38/Gemfile +3 -0
- data/vendor/rdtool-0.6.38/HISTORY +318 -0
- data/vendor/rdtool-0.6.38/LGPL-2.1 +502 -0
- data/vendor/rdtool-0.6.38/LICENSE.txt +58 -0
- data/vendor/rdtool-0.6.38/README.html +66 -0
- data/vendor/rdtool-0.6.38/README.ja.html +73 -0
- data/vendor/rdtool-0.6.38/README.rd +76 -0
- data/vendor/rdtool-0.6.38/README.rd.ja +85 -0
- data/vendor/rdtool-0.6.38/Rakefile +152 -0
- data/vendor/rdtool-0.6.38/TODO +22 -0
- data/vendor/rdtool-0.6.38/bin/rd2 +283 -0
- data/vendor/rdtool-0.6.38/bin/rdswap.rb +207 -0
- data/vendor/rdtool-0.6.38/doc/rd-draft.html +456 -0
- data/vendor/rdtool-0.6.38/doc/rd-draft.ja.html +466 -0
- data/vendor/rdtool-0.6.38/doc/rd-draft.rd +479 -0
- data/vendor/rdtool-0.6.38/doc/rd-draft.rd.ja +487 -0
- data/vendor/rdtool-0.6.38/lib/rd/block-element.rb +114 -0
- data/vendor/rdtool-0.6.38/lib/rd/complex-list-item.rb +65 -0
- data/vendor/rdtool-0.6.38/lib/rd/desclist.rb +55 -0
- data/vendor/rdtool-0.6.38/lib/rd/document-struct.rb +46 -0
- data/vendor/rdtool-0.6.38/lib/rd/dot.rd2rc +18 -0
- data/vendor/rdtool-0.6.38/lib/rd/element.rb +160 -0
- data/vendor/rdtool-0.6.38/lib/rd/filter.rb +255 -0
- data/vendor/rdtool-0.6.38/lib/rd/head-filter.rb +14 -0
- data/vendor/rdtool-0.6.38/lib/rd/inline-element.rb +233 -0
- data/vendor/rdtool-0.6.38/lib/rd/labeled-element.rb +14 -0
- data/vendor/rdtool-0.6.38/lib/rd/list.rb +57 -0
- data/vendor/rdtool-0.6.38/lib/rd/loose-struct.rb +11 -0
- data/vendor/rdtool-0.6.38/lib/rd/methodlist.rb +57 -0
- data/vendor/rdtool-0.6.38/lib/rd/output-format-visitor.rb +30 -0
- data/vendor/rdtool-0.6.38/lib/rd/package.rb +4 -0
- data/vendor/rdtool-0.6.38/lib/rd/parser-util.rb +14 -0
- data/vendor/rdtool-0.6.38/lib/rd/post-install +1 -0
- data/vendor/rdtool-0.6.38/lib/rd/pre-setup.rb +18 -0
- data/vendor/rdtool-0.6.38/lib/rd/rbl-file.rb +69 -0
- data/vendor/rdtool-0.6.38/lib/rd/rbl-suite.rb +37 -0
- data/vendor/rdtool-0.6.38/lib/rd/rd-struct.rb +86 -0
- data/vendor/rdtool-0.6.38/lib/rd/rd2html-ext-lib.rb +266 -0
- data/vendor/rdtool-0.6.38/lib/rd/rd2html-ext-opt.rb +34 -0
- data/vendor/rdtool-0.6.38/lib/rd/rd2html-lib.rb +490 -0
- data/vendor/rdtool-0.6.38/lib/rd/rd2html-opt.rb +67 -0
- data/vendor/rdtool-0.6.38/lib/rd/rd2man-lib.rb +251 -0
- data/vendor/rdtool-0.6.38/lib/rd/rd2rdo-lib.rb +19 -0
- data/vendor/rdtool-0.6.38/lib/rd/rd2rmi-lib.rb +32 -0
- data/vendor/rdtool-0.6.38/lib/rd/rdblockparser.ry +518 -0
- data/vendor/rdtool-0.6.38/lib/rd/rdblockparser.tab.rb +1061 -0
- data/vendor/rdtool-0.6.38/lib/rd/rdfmt.rb +15 -0
- data/vendor/rdtool-0.6.38/lib/rd/rdinlineparser.ry +503 -0
- data/vendor/rdtool-0.6.38/lib/rd/rdinlineparser.tab.rb +1243 -0
- data/vendor/rdtool-0.6.38/lib/rd/rdvisitor.rb +214 -0
- data/vendor/rdtool-0.6.38/lib/rd/reference-resolver.rb +114 -0
- data/vendor/rdtool-0.6.38/lib/rd/search-file.rb +14 -0
- data/vendor/rdtool-0.6.38/lib/rd/tree.rb +103 -0
- data/vendor/rdtool-0.6.38/lib/rd/version.rb +41 -0
- data/vendor/rdtool-0.6.38/lib/rd/visitor.rb +86 -0
- data/vendor/rdtool-0.6.38/rdtool.gemspec +125 -0
- data/vendor/rdtool-0.6.38/setup.rb +1596 -0
- data/vendor/rdtool-0.6.38/test/data/includee1.html +1 -0
- data/vendor/rdtool-0.6.38/test/data/includee2.html +1 -0
- data/vendor/rdtool-0.6.38/test/data/includee3.nothtml +1 -0
- data/vendor/rdtool-0.6.38/test/data/includee4.xhtml +0 -0
- data/vendor/rdtool-0.6.38/test/data/label.rbl +2 -0
- data/vendor/rdtool-0.6.38/test/data/label2.rbl +2 -0
- data/vendor/rdtool-0.6.38/test/data/sub/includee2.html +1 -0
- data/vendor/rdtool-0.6.38/test/data/sub/includee4.html +0 -0
- data/vendor/rdtool-0.6.38/test/dummy-observer.rb +6 -0
- data/vendor/rdtool-0.6.38/test/dummy.rb +33 -0
- data/vendor/rdtool-0.6.38/test/temp-dir.rb +19 -0
- data/vendor/rdtool-0.6.38/test/test-block-parser.rb +46 -0
- data/vendor/rdtool-0.6.38/test/test-desclist-item.rb +219 -0
- data/vendor/rdtool-0.6.38/test/test-document-element.rb +46 -0
- data/vendor/rdtool-0.6.38/test/test-document-struct.rb +66 -0
- data/vendor/rdtool-0.6.38/test/test-element.rb +46 -0
- data/vendor/rdtool-0.6.38/test/test-headline.rb +80 -0
- data/vendor/rdtool-0.6.38/test/test-inline-parser.rb +46 -0
- data/vendor/rdtool-0.6.38/test/test-list-item.rb +54 -0
- data/vendor/rdtool-0.6.38/test/test-list.rb +53 -0
- data/vendor/rdtool-0.6.38/test/test-methodlist-item.rb +73 -0
- data/vendor/rdtool-0.6.38/test/test-nonterminal-element.rb +170 -0
- data/vendor/rdtool-0.6.38/test/test-nonterminal-inline.rb +33 -0
- data/vendor/rdtool-0.6.38/test/test-output-format-visitor.rb +48 -0
- data/vendor/rdtool-0.6.38/test/test-parser-util.rb +41 -0
- data/vendor/rdtool-0.6.38/test/test-rbl-file.rb +156 -0
- data/vendor/rdtool-0.6.38/test/test-rbl-suite.rb +43 -0
- data/vendor/rdtool-0.6.38/test/test-rd2html-lib.rb +496 -0
- data/vendor/rdtool-0.6.38/test/test-rdtree.rb +17 -0
- data/vendor/rdtool-0.6.38/test/test-rdvisitor.rb +29 -0
- data/vendor/rdtool-0.6.38/test/test-reference-resolver.rb +202 -0
- data/vendor/rdtool-0.6.38/test/test-reference.rb +132 -0
- data/vendor/rdtool-0.6.38/test/test-search-file.rb +22 -0
- data/vendor/rdtool-0.6.38/test/test-terminal-inline.rb +41 -0
- data/vendor/rdtool-0.6.38/test/test-textblock.rb +44 -0
- data/vendor/rdtool-0.6.38/test/test-tree.rb +82 -0
- data/vendor/rdtool-0.6.38/test/test-version.rb +57 -0
- data/vendor/rdtool-0.6.38/test/test-visitor.rb +230 -0
- data/vendor/rdtool-0.6.38/utils/rd-mode.el +464 -0
- metadata +666 -0
@@ -0,0 +1,1061 @@
|
|
1
|
+
#
|
2
|
+
# DO NOT MODIFY!!!!
|
3
|
+
# This file is automatically generated by Racc 1.4.8
|
4
|
+
# from Racc grammer file "".
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'racc/parser.rb'
|
8
|
+
|
9
|
+
require "rd/rdinlineparser.tab.rb"
|
10
|
+
require "rd/parser-util"
|
11
|
+
|
12
|
+
module RD
|
13
|
+
class RDParser < Racc::Parser
|
14
|
+
|
15
|
+
module_eval(<<'...end rdblockparser.ry/module_eval...', 'rdblockparser.ry', 231)
|
16
|
+
include ParserUtility
|
17
|
+
|
18
|
+
TMPFILE = ["rdtmp", $$, 0]
|
19
|
+
|
20
|
+
attr_reader :tree
|
21
|
+
|
22
|
+
def initialize
|
23
|
+
@inline_parser = RDInlineParser.new(self)
|
24
|
+
end
|
25
|
+
|
26
|
+
def parse(src, tree)
|
27
|
+
@src = src
|
28
|
+
@src.push(false)
|
29
|
+
# RDtree
|
30
|
+
@tree = tree
|
31
|
+
|
32
|
+
# @i: index(line no.) of src
|
33
|
+
@i = 0
|
34
|
+
# stack for current indentation
|
35
|
+
@indent_stack = []
|
36
|
+
# how indented.
|
37
|
+
@current_indent = @indent_stack.join("")
|
38
|
+
# RDParser for tmp src
|
39
|
+
@subparser = nil
|
40
|
+
# which part is in now
|
41
|
+
@in_part = nil
|
42
|
+
@part_content = []
|
43
|
+
|
44
|
+
@in_verbatim = false
|
45
|
+
|
46
|
+
@yydebug = true
|
47
|
+
do_parse
|
48
|
+
end
|
49
|
+
|
50
|
+
def next_token
|
51
|
+
# preprocessing
|
52
|
+
# if it is not in RD part
|
53
|
+
# => method
|
54
|
+
while @in_part != "rd"
|
55
|
+
line = @src[@i]
|
56
|
+
@i += 1 # next line
|
57
|
+
|
58
|
+
case line
|
59
|
+
# src end
|
60
|
+
when false
|
61
|
+
return [false, false]
|
62
|
+
# RD part begin
|
63
|
+
when /^=begin\s*(?:\bRD\b.*)?\s*$/
|
64
|
+
if @in_part # if in non-RD part
|
65
|
+
@part_content.push(line)
|
66
|
+
else
|
67
|
+
@in_part = "rd"
|
68
|
+
return [:WHITELINE, "=begin\n"] # <= for textblockand
|
69
|
+
end
|
70
|
+
# non-RD part begin
|
71
|
+
when /^=begin\s+(\w+)/
|
72
|
+
part = $1
|
73
|
+
if @in_part # if in non-RD part
|
74
|
+
@part_content.push(line)
|
75
|
+
else
|
76
|
+
@in_part = part if @tree.filter[part] # if filter exists
|
77
|
+
# p "BEGIN_PART: #{@in_part}" # DEBUG
|
78
|
+
end
|
79
|
+
# non-RD part end
|
80
|
+
when /^=end/
|
81
|
+
if @in_part # if in non-RD part
|
82
|
+
# p "END_PART: #{@in_part}" # DEBUG
|
83
|
+
# make Part-in object
|
84
|
+
part = RD::Part.new(@part_content.join(""), @tree, "r")
|
85
|
+
@part_content.clear
|
86
|
+
# call filter, part_out is output(Part object)
|
87
|
+
part_out = @tree.filter[@in_part].call(part)
|
88
|
+
|
89
|
+
if @tree.filter[@in_part].mode == :rd # if output is RD formated
|
90
|
+
subtree = parse_subtree( (RUBY_VERSION >= '1.9.0' ? part_out.lines.to_a : part_out.to_a ) )
|
91
|
+
else # if output is target formated
|
92
|
+
basename = TMPFILE.join('.')
|
93
|
+
TMPFILE[-1] += 1
|
94
|
+
tmpfile = open(@tree.tmp_dir + "/" + basename + ".#{@in_part}", "w")
|
95
|
+
tmpfile.print(part_out)
|
96
|
+
tmpfile.close
|
97
|
+
subtree = parse_subtree(["=begin\n", "<<< #{basename}\n", "=end\n"])
|
98
|
+
end
|
99
|
+
@in_part = nil
|
100
|
+
return [:SUBTREE, subtree]
|
101
|
+
end
|
102
|
+
else
|
103
|
+
if @in_part # if in non-RD part
|
104
|
+
@part_content.push(line)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
@current_indent = @indent_stack.join("")
|
110
|
+
line = @src[@i]
|
111
|
+
case line
|
112
|
+
when false
|
113
|
+
if_current_indent_equal("") do
|
114
|
+
[false, false]
|
115
|
+
end
|
116
|
+
when /^=end/
|
117
|
+
if_current_indent_equal("") do
|
118
|
+
@in_part = nil
|
119
|
+
[:WHITELINE, "=end"] # MUST CHANGE??
|
120
|
+
end
|
121
|
+
when /^\s*$/
|
122
|
+
@i += 1 # next line
|
123
|
+
return [:WHITELINE, ':WHITELINE']
|
124
|
+
when /^\#/ # comment line
|
125
|
+
@i += 1 # next line
|
126
|
+
self.next_token()
|
127
|
+
when /^(={1,4})(?!=)\s*(?=\S)/, /^(\+{1,2})(?!\+)\s*(?=\S)/
|
128
|
+
rest = $' # '
|
129
|
+
rest.strip!
|
130
|
+
mark = $1
|
131
|
+
if_current_indent_equal("") do
|
132
|
+
return [:HEADLINE, [Headline.mark_to_level(mark), rest]]
|
133
|
+
end
|
134
|
+
when /^<<<\s*(\S+)/
|
135
|
+
file = $1
|
136
|
+
if_current_indent_equal("") do
|
137
|
+
suffix = file[-3 .. -1]
|
138
|
+
if suffix == ".rd" or suffix == ".rb"
|
139
|
+
subtree = parse_subtree(get_included(file))
|
140
|
+
[:SUBTREE, subtree]
|
141
|
+
else
|
142
|
+
[:INCLUDE, file]
|
143
|
+
end
|
144
|
+
end
|
145
|
+
when /^(\s*)\*(\s*)/
|
146
|
+
rest = $' # '
|
147
|
+
newIndent = $2
|
148
|
+
if_current_indent_equal($1) do
|
149
|
+
if @in_verbatim
|
150
|
+
[:STRINGLINE, line]
|
151
|
+
else
|
152
|
+
@indent_stack.push("\s" << newIndent)
|
153
|
+
[:ITEMLISTLINE, rest]
|
154
|
+
end
|
155
|
+
end
|
156
|
+
when /^(\s*)(\(\d+\))(\s*)/
|
157
|
+
rest = $' # '
|
158
|
+
mark = $2
|
159
|
+
newIndent = $3
|
160
|
+
if_current_indent_equal($1) do
|
161
|
+
if @in_verbatim
|
162
|
+
[:STRINGLINE, line]
|
163
|
+
else
|
164
|
+
@indent_stack.push("\s" * mark.size << newIndent)
|
165
|
+
[:ENUMLISTLINE, rest]
|
166
|
+
end
|
167
|
+
end
|
168
|
+
when /^(\s*):(\s*)/
|
169
|
+
rest = $' # '
|
170
|
+
newIndent = $2
|
171
|
+
if_current_indent_equal($1) do
|
172
|
+
if @in_verbatim
|
173
|
+
[:STRINGLINE, line]
|
174
|
+
else
|
175
|
+
@indent_stack.push("\s" << $2)
|
176
|
+
[:DESCLISTLINE, rest]
|
177
|
+
end
|
178
|
+
end
|
179
|
+
when /^(\s*)---(?!-|\s*$)/
|
180
|
+
indent = $1
|
181
|
+
rest = $'
|
182
|
+
/\s*/ === rest
|
183
|
+
term = $'
|
184
|
+
new_indent = $&
|
185
|
+
if_current_indent_equal(indent) do
|
186
|
+
if @in_verbatim
|
187
|
+
[:STRINGLINE, line]
|
188
|
+
else
|
189
|
+
@indent_stack.push("\s\s\s" + new_indent)
|
190
|
+
[:METHODLISTLINE, term]
|
191
|
+
end
|
192
|
+
end
|
193
|
+
when /^(\s*)/
|
194
|
+
if_current_indent_equal($1) do
|
195
|
+
[:STRINGLINE, line]
|
196
|
+
end
|
197
|
+
else
|
198
|
+
raise "[BUG] parsing error may occured."
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
=begin private
|
203
|
+
--- RDParser#if_current_indent_equal(indent)
|
204
|
+
if (({@current_indent == ((|indent|))})) then yield block, otherwise
|
205
|
+
process indentation.
|
206
|
+
=end
|
207
|
+
# always @current_indent = @indent_stack.join("")
|
208
|
+
def if_current_indent_equal(indent)
|
209
|
+
indent = indent.sub(/\t/, "\s" * 8)
|
210
|
+
if @current_indent == indent
|
211
|
+
@i += 1 # next line
|
212
|
+
yield
|
213
|
+
elsif indent.index(@current_indent) == 0
|
214
|
+
@indent_stack.push(indent[@current_indent.size .. -1])
|
215
|
+
[:INDENT, ":INDENT"]
|
216
|
+
else
|
217
|
+
@indent_stack.pop
|
218
|
+
[:DEDENT, ":DEDENT"]
|
219
|
+
end
|
220
|
+
end
|
221
|
+
private :if_current_indent_equal
|
222
|
+
|
223
|
+
def cut_off(src)
|
224
|
+
ret = []
|
225
|
+
whiteline_buf = []
|
226
|
+
line = src.shift
|
227
|
+
/^\s*/ =~ line
|
228
|
+
indent = Regexp.quote($&)
|
229
|
+
ret.push($') # '
|
230
|
+
while line = src.shift
|
231
|
+
if /^(\s*)$/ =~ line
|
232
|
+
whiteline_buf.push(line)
|
233
|
+
elsif /^#{indent}/ =~ line
|
234
|
+
unless whiteline_buf.empty?
|
235
|
+
ret.concat(whiteline_buf)
|
236
|
+
whiteline_buf.clear
|
237
|
+
end
|
238
|
+
ret.push($') # '
|
239
|
+
else
|
240
|
+
raise "[BUG]: probably Parser Error while cutting off.\n"
|
241
|
+
end
|
242
|
+
end
|
243
|
+
ret
|
244
|
+
end
|
245
|
+
private :cut_off
|
246
|
+
|
247
|
+
def set_term_to_element(parent, term)
|
248
|
+
# parent.set_term_under_document_struct(term, @tree.document_struct)
|
249
|
+
parent.set_term_without_document_struct(term)
|
250
|
+
end
|
251
|
+
private :set_term_to_element
|
252
|
+
|
253
|
+
def on_error( et, ev, _values )
|
254
|
+
line = @src[@i]
|
255
|
+
prv, cur, nxt = format_line_num(@i, @i+1, @i+2)
|
256
|
+
|
257
|
+
raise ParseError, <<Msg
|
258
|
+
|
259
|
+
RD syntax error: line #{@i+1}:
|
260
|
+
#{prv} |#{@src[@i-1].chomp}
|
261
|
+
#{cur}=>|#{@src[@i].chomp}
|
262
|
+
#{nxt} |#{@src[@i+1].chomp}
|
263
|
+
|
264
|
+
Msg
|
265
|
+
end
|
266
|
+
|
267
|
+
def line_index
|
268
|
+
@i
|
269
|
+
end
|
270
|
+
|
271
|
+
def parse_subtree(src)
|
272
|
+
@subparser = RD::RDParser.new() unless @subparser
|
273
|
+
|
274
|
+
@subparser.parse(src, @tree)
|
275
|
+
end
|
276
|
+
private :parse_subtree
|
277
|
+
|
278
|
+
def get_included(file)
|
279
|
+
included = ""
|
280
|
+
@tree.include_path.each do |dir|
|
281
|
+
file_name = dir + "/" + file
|
282
|
+
if test(?e, file_name)
|
283
|
+
included = IO.readlines(file_name)
|
284
|
+
break
|
285
|
+
end
|
286
|
+
end
|
287
|
+
included
|
288
|
+
end
|
289
|
+
private :get_included
|
290
|
+
|
291
|
+
def format_line_num(*args)
|
292
|
+
width = args.collect{|i| i.to_s.length }.max
|
293
|
+
args.collect{|i| sprintf("%#{width}d", i) }
|
294
|
+
end
|
295
|
+
private :format_line_num
|
296
|
+
|
297
|
+
...end rdblockparser.ry/module_eval...
|
298
|
+
##### State transition tables begin ###
|
299
|
+
|
300
|
+
racc_action_table = [
|
301
|
+
34, 35, 30, 33, 14, 73, 38, 33, 76, 15,
|
302
|
+
88, 34, 35, 30, 33, 40, 34, 35, 30, 33,
|
303
|
+
40, 65, 34, 35, 30, 33, 14, 73, 77, 14,
|
304
|
+
54, 15, 34, 35, 30, 33, 14, 9, 10, 11,
|
305
|
+
12, 15, 34, 35, 30, 33, 14, 73, 81, 54,
|
306
|
+
38, 15, 34, 35, 30, 33, 14, 73, 40, 67,
|
307
|
+
83, 15, 34, 35, 30, 33, 14, 73, 54, 30,
|
308
|
+
35, 15, 34, 35, 30, 33, 34, 47, 36, 14,
|
309
|
+
59, 15, 34, 35, 30, 33, 14, 73, 38, nil,
|
310
|
+
nil, 15, 34, 35, 30, 33, nil, 47, nil, nil,
|
311
|
+
nil, 15, 34, 35, 30, 33, 14, 73, nil, nil,
|
312
|
+
nil, 15, 34, 35, 30, 33, 14, 73, nil, nil,
|
313
|
+
nil, 15, 34, 35, 30, 33, 14, 9, 10, 11,
|
314
|
+
12, 15, 34, 35, 30, 33, 14, 73, nil, nil,
|
315
|
+
nil, 15, 34, 35, 30, 33, 14, 73, 61, 63,
|
316
|
+
nil, 15, nil, 62, 60, 61, 63, 61, 63, 14,
|
317
|
+
62, 87, 62, nil, 79, 34, 35, 30, 33 ]
|
318
|
+
|
319
|
+
racc_action_check = [
|
320
|
+
86, 86, 86, 86, 86, 86, 57, 31, 49, 86,
|
321
|
+
86, 41, 41, 41, 41, 41, 15, 15, 15, 15,
|
322
|
+
15, 41, 45, 45, 45, 45, 45, 45, 51, 34,
|
323
|
+
54, 45, 0, 0, 0, 0, 0, 0, 0, 0,
|
324
|
+
0, 0, 85, 85, 85, 85, 85, 85, 56, 33,
|
325
|
+
58, 85, 79, 79, 79, 79, 79, 79, 62, 44,
|
326
|
+
66, 79, 78, 78, 78, 78, 78, 78, 30, 28,
|
327
|
+
25, 78, 24, 24, 24, 24, 22, 24, 1, 35,
|
328
|
+
36, 24, 75, 75, 75, 75, 75, 75, 13, nil,
|
329
|
+
nil, 75, 27, 27, 27, 27, nil, 27, nil, nil,
|
330
|
+
nil, 27, 74, 74, 74, 74, 74, 74, nil, nil,
|
331
|
+
nil, 74, 68, 68, 68, 68, 68, 68, nil, nil,
|
332
|
+
nil, 68, 2, 2, 2, 2, 2, 2, 2, 2,
|
333
|
+
2, 2, 46, 46, 46, 46, 46, 46, nil, nil,
|
334
|
+
nil, 46, 47, 47, 47, 47, 47, 47, 39, 39,
|
335
|
+
nil, 47, nil, 39, 39, 82, 82, 64, 64, 52,
|
336
|
+
82, 82, 64, nil, 52, 20, 20, 20, 20 ]
|
337
|
+
|
338
|
+
racc_action_pointer = [
|
339
|
+
29, 78, 119, nil, nil, nil, nil, nil, nil, nil,
|
340
|
+
nil, nil, nil, 81, nil, 13, nil, nil, nil, nil,
|
341
|
+
162, nil, 73, nil, 69, 66, nil, 89, 64, nil,
|
342
|
+
60, 1, nil, 41, 22, 72, 80, nil, nil, 141,
|
343
|
+
nil, 8, nil, nil, 46, 19, 129, 139, nil, -5,
|
344
|
+
nil, 15, 152, nil, 22, nil, 35, -1, 43, nil,
|
345
|
+
nil, nil, 51, nil, 150, nil, 47, nil, 109, nil,
|
346
|
+
nil, nil, nil, nil, 99, 79, nil, nil, 59, 49,
|
347
|
+
nil, nil, 148, nil, nil, 39, -3, nil, nil ]
|
348
|
+
|
349
|
+
racc_action_default = [
|
350
|
+
-2, -73, -1, -4, -5, -6, -7, -8, -9, -10,
|
351
|
+
-11, -12, -13, -14, -16, -73, -23, -24, -25, -26,
|
352
|
+
-27, -31, -32, -34, -72, -36, -38, -72, -40, -42,
|
353
|
+
-59, -44, -46, -59, -63, -65, -73, -3, -15, -73,
|
354
|
+
-22, -73, -30, -33, -73, -69, -70, -71, -37, -73,
|
355
|
+
-41, -73, -51, -58, -61, -45, -73, -62, -64, 89,
|
356
|
+
-17, -19, -73, -21, -18, -28, -73, -35, -66, -53,
|
357
|
+
-54, -55, -56, -57, -67, -68, -39, -43, -49, -73,
|
358
|
+
-60, -47, -73, -29, -52, -48, -73, -20, -50 ]
|
359
|
+
|
360
|
+
racc_goto_table = [
|
361
|
+
4, 39, 4, 68, 74, 75, 5, 6, 5, 6,
|
362
|
+
51, 42, 44, 56, 3, 49, 37, 57, 58, 41,
|
363
|
+
43, 48, 84, 50, 66, 55, 1, 64, 84, 84,
|
364
|
+
45, 46, 42, 45, 46, 2, 85, 86, 80, 84,
|
365
|
+
84, nil, nil, nil, nil, nil, nil, nil, 82, nil,
|
366
|
+
nil, nil, 78 ]
|
367
|
+
|
368
|
+
racc_goto_check = [
|
369
|
+
4, 10, 4, 31, 31, 31, 5, 6, 5, 6,
|
370
|
+
27, 12, 21, 27, 3, 21, 3, 9, 9, 17,
|
371
|
+
19, 23, 32, 26, 11, 29, 1, 10, 32, 32,
|
372
|
+
5, 6, 12, 5, 6, 2, 31, 31, 33, 32,
|
373
|
+
32, nil, nil, nil, nil, nil, nil, nil, 10, nil,
|
374
|
+
nil, nil, 4 ]
|
375
|
+
|
376
|
+
racc_goto_pointer = [
|
377
|
+
nil, 26, 35, 14, 0, 6, 7, nil, nil, -17,
|
378
|
+
-14, -17, -9, nil, nil, nil, nil, 4, nil, -2,
|
379
|
+
nil, -12, nil, -4, nil, nil, -5, -20, nil, -6,
|
380
|
+
nil, -42, -46, -16 ]
|
381
|
+
|
382
|
+
racc_goto_default = [
|
383
|
+
nil, nil, nil, nil, 70, 71, 72, 7, 8, 13,
|
384
|
+
nil, nil, 21, 16, 17, 18, 19, 20, 22, 23,
|
385
|
+
24, nil, 25, 26, 27, 28, 29, nil, 31, 32,
|
386
|
+
52, nil, 69, 53 ]
|
387
|
+
|
388
|
+
racc_reduce_table = [
|
389
|
+
0, 0, :racc_error,
|
390
|
+
1, 15, :_reduce_1,
|
391
|
+
0, 15, :_reduce_2,
|
392
|
+
2, 16, :_reduce_3,
|
393
|
+
1, 16, :_reduce_none,
|
394
|
+
1, 17, :_reduce_5,
|
395
|
+
1, 17, :_reduce_6,
|
396
|
+
1, 17, :_reduce_none,
|
397
|
+
1, 17, :_reduce_8,
|
398
|
+
1, 17, :_reduce_9,
|
399
|
+
1, 17, :_reduce_10,
|
400
|
+
1, 17, :_reduce_11,
|
401
|
+
1, 21, :_reduce_12,
|
402
|
+
1, 22, :_reduce_13,
|
403
|
+
1, 18, :_reduce_14,
|
404
|
+
2, 23, :_reduce_15,
|
405
|
+
1, 23, :_reduce_16,
|
406
|
+
3, 19, :_reduce_17,
|
407
|
+
1, 25, :_reduce_18,
|
408
|
+
2, 24, :_reduce_19,
|
409
|
+
4, 24, :_reduce_20,
|
410
|
+
2, 24, :_reduce_21,
|
411
|
+
1, 24, :_reduce_22,
|
412
|
+
1, 26, :_reduce_none,
|
413
|
+
1, 26, :_reduce_none,
|
414
|
+
1, 26, :_reduce_none,
|
415
|
+
1, 26, :_reduce_none,
|
416
|
+
1, 20, :_reduce_none,
|
417
|
+
3, 20, :_reduce_28,
|
418
|
+
4, 20, :_reduce_29,
|
419
|
+
2, 31, :_reduce_30,
|
420
|
+
1, 31, :_reduce_31,
|
421
|
+
1, 27, :_reduce_32,
|
422
|
+
2, 32, :_reduce_33,
|
423
|
+
1, 32, :_reduce_34,
|
424
|
+
3, 33, :_reduce_35,
|
425
|
+
1, 28, :_reduce_36,
|
426
|
+
2, 36, :_reduce_37,
|
427
|
+
1, 36, :_reduce_38,
|
428
|
+
3, 37, :_reduce_39,
|
429
|
+
1, 29, :_reduce_40,
|
430
|
+
2, 39, :_reduce_41,
|
431
|
+
1, 39, :_reduce_42,
|
432
|
+
3, 40, :_reduce_43,
|
433
|
+
1, 30, :_reduce_44,
|
434
|
+
2, 42, :_reduce_45,
|
435
|
+
1, 42, :_reduce_46,
|
436
|
+
3, 43, :_reduce_47,
|
437
|
+
3, 41, :_reduce_48,
|
438
|
+
2, 41, :_reduce_49,
|
439
|
+
4, 41, :_reduce_50,
|
440
|
+
1, 41, :_reduce_51,
|
441
|
+
2, 45, :_reduce_52,
|
442
|
+
1, 45, :_reduce_none,
|
443
|
+
1, 46, :_reduce_54,
|
444
|
+
1, 46, :_reduce_55,
|
445
|
+
1, 46, :_reduce_none,
|
446
|
+
1, 46, :_reduce_57,
|
447
|
+
1, 44, :_reduce_none,
|
448
|
+
0, 44, :_reduce_none,
|
449
|
+
2, 47, :_reduce_none,
|
450
|
+
1, 47, :_reduce_none,
|
451
|
+
2, 34, :_reduce_62,
|
452
|
+
1, 34, :_reduce_63,
|
453
|
+
2, 38, :_reduce_64,
|
454
|
+
1, 38, :_reduce_65,
|
455
|
+
2, 35, :_reduce_66,
|
456
|
+
2, 35, :_reduce_67,
|
457
|
+
2, 35, :_reduce_68,
|
458
|
+
1, 35, :_reduce_69,
|
459
|
+
1, 35, :_reduce_none,
|
460
|
+
1, 35, :_reduce_71,
|
461
|
+
0, 35, :_reduce_72 ]
|
462
|
+
|
463
|
+
racc_reduce_n = 73
|
464
|
+
|
465
|
+
racc_shift_n = 89
|
466
|
+
|
467
|
+
racc_token_table = {
|
468
|
+
false => 0,
|
469
|
+
:error => 1,
|
470
|
+
:DUMMY => 2,
|
471
|
+
:ITEMLISTLINE => 3,
|
472
|
+
:ENUMLISTLINE => 4,
|
473
|
+
:DESCLISTLINE => 5,
|
474
|
+
:METHODLISTLINE => 6,
|
475
|
+
:STRINGLINE => 7,
|
476
|
+
:WHITELINE => 8,
|
477
|
+
:SUBTREE => 9,
|
478
|
+
:HEADLINE => 10,
|
479
|
+
:INCLUDE => 11,
|
480
|
+
:INDENT => 12,
|
481
|
+
:DEDENT => 13 }
|
482
|
+
|
483
|
+
racc_nt_base = 14
|
484
|
+
|
485
|
+
racc_use_result_var = true
|
486
|
+
|
487
|
+
Racc_arg = [
|
488
|
+
racc_action_table,
|
489
|
+
racc_action_check,
|
490
|
+
racc_action_default,
|
491
|
+
racc_action_pointer,
|
492
|
+
racc_goto_table,
|
493
|
+
racc_goto_check,
|
494
|
+
racc_goto_default,
|
495
|
+
racc_goto_pointer,
|
496
|
+
racc_nt_base,
|
497
|
+
racc_reduce_table,
|
498
|
+
racc_token_table,
|
499
|
+
racc_shift_n,
|
500
|
+
racc_reduce_n,
|
501
|
+
racc_use_result_var ]
|
502
|
+
|
503
|
+
Racc_token_to_s_table = [
|
504
|
+
"$end",
|
505
|
+
"error",
|
506
|
+
"DUMMY",
|
507
|
+
"ITEMLISTLINE",
|
508
|
+
"ENUMLISTLINE",
|
509
|
+
"DESCLISTLINE",
|
510
|
+
"METHODLISTLINE",
|
511
|
+
"STRINGLINE",
|
512
|
+
"WHITELINE",
|
513
|
+
"SUBTREE",
|
514
|
+
"HEADLINE",
|
515
|
+
"INCLUDE",
|
516
|
+
"INDENT",
|
517
|
+
"DEDENT",
|
518
|
+
"$start",
|
519
|
+
"document",
|
520
|
+
"blocks",
|
521
|
+
"block",
|
522
|
+
"textblock",
|
523
|
+
"verbatim",
|
524
|
+
"lists",
|
525
|
+
"headline",
|
526
|
+
"include",
|
527
|
+
"textblockcontent",
|
528
|
+
"verbatimcontent",
|
529
|
+
"verbatim_after_lists",
|
530
|
+
"list",
|
531
|
+
"itemlist",
|
532
|
+
"enumlist",
|
533
|
+
"desclist",
|
534
|
+
"methodlist",
|
535
|
+
"lists2",
|
536
|
+
"itemlistitems",
|
537
|
+
"itemlistitem",
|
538
|
+
"first_textblock_in_itemlist",
|
539
|
+
"other_blocks_in_list",
|
540
|
+
"enumlistitems",
|
541
|
+
"enumlistitem",
|
542
|
+
"first_textblock_in_enumlist",
|
543
|
+
"desclistitems",
|
544
|
+
"desclistitem",
|
545
|
+
"description_part",
|
546
|
+
"methodlistitems",
|
547
|
+
"methodlistitem",
|
548
|
+
"whitelines",
|
549
|
+
"blocks_in_list",
|
550
|
+
"block_in_list",
|
551
|
+
"whitelines2" ]
|
552
|
+
|
553
|
+
Racc_debug_parser = false
|
554
|
+
|
555
|
+
##### State transition tables end #####
|
556
|
+
|
557
|
+
# reduce 0 omitted
|
558
|
+
|
559
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 12)
|
560
|
+
def _reduce_1(val, _values, result)
|
561
|
+
result = DocumentElement.new
|
562
|
+
add_children_to_element(result, *val[0])
|
563
|
+
|
564
|
+
result
|
565
|
+
end
|
566
|
+
.,.,
|
567
|
+
|
568
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 16)
|
569
|
+
def _reduce_2(val, _values, result)
|
570
|
+
raise ParseError,
|
571
|
+
"Error: file empty."
|
572
|
+
|
573
|
+
result
|
574
|
+
end
|
575
|
+
.,.,
|
576
|
+
|
577
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 20)
|
578
|
+
def _reduce_3(val, _values, result)
|
579
|
+
result.concat(val[1])
|
580
|
+
result
|
581
|
+
end
|
582
|
+
.,.,
|
583
|
+
|
584
|
+
# reduce 4 omitted
|
585
|
+
|
586
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 23)
|
587
|
+
def _reduce_5(val, _values, result)
|
588
|
+
result = val
|
589
|
+
result
|
590
|
+
end
|
591
|
+
.,.,
|
592
|
+
|
593
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 24)
|
594
|
+
def _reduce_6(val, _values, result)
|
595
|
+
result = val
|
596
|
+
result
|
597
|
+
end
|
598
|
+
.,.,
|
599
|
+
|
600
|
+
# reduce 7 omitted
|
601
|
+
|
602
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 26)
|
603
|
+
def _reduce_8(val, _values, result)
|
604
|
+
result = val
|
605
|
+
result
|
606
|
+
end
|
607
|
+
.,.,
|
608
|
+
|
609
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 27)
|
610
|
+
def _reduce_9(val, _values, result)
|
611
|
+
result = val
|
612
|
+
result
|
613
|
+
end
|
614
|
+
.,.,
|
615
|
+
|
616
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 28)
|
617
|
+
def _reduce_10(val, _values, result)
|
618
|
+
result = []
|
619
|
+
result
|
620
|
+
end
|
621
|
+
.,.,
|
622
|
+
|
623
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 29)
|
624
|
+
def _reduce_11(val, _values, result)
|
625
|
+
result = val[0].blocks
|
626
|
+
result
|
627
|
+
end
|
628
|
+
.,.,
|
629
|
+
|
630
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 32)
|
631
|
+
def _reduce_12(val, _values, result)
|
632
|
+
# val[0] is like [level, title]
|
633
|
+
title = @inline_parser.parse(val[0][1])
|
634
|
+
result = Headline.new(val[0][0])
|
635
|
+
add_children_to_element(result, *title)
|
636
|
+
|
637
|
+
result
|
638
|
+
end
|
639
|
+
.,.,
|
640
|
+
|
641
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 38)
|
642
|
+
def _reduce_13(val, _values, result)
|
643
|
+
result = Include.new(val[0])
|
644
|
+
result
|
645
|
+
end
|
646
|
+
.,.,
|
647
|
+
|
648
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 42)
|
649
|
+
def _reduce_14(val, _values, result)
|
650
|
+
# val[0] is Array of String
|
651
|
+
content = cut_off(val[0]).join("")
|
652
|
+
contents = @inline_parser.parse(content)
|
653
|
+
result = TextBlock.new()
|
654
|
+
add_children_to_element(result, *contents)
|
655
|
+
|
656
|
+
result
|
657
|
+
end
|
658
|
+
.,.,
|
659
|
+
|
660
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 50)
|
661
|
+
def _reduce_15(val, _values, result)
|
662
|
+
result.push(val[1])
|
663
|
+
result
|
664
|
+
end
|
665
|
+
.,.,
|
666
|
+
|
667
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 51)
|
668
|
+
def _reduce_16(val, _values, result)
|
669
|
+
result = val
|
670
|
+
result
|
671
|
+
end
|
672
|
+
.,.,
|
673
|
+
|
674
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 55)
|
675
|
+
def _reduce_17(val, _values, result)
|
676
|
+
# val[1] is Array of String
|
677
|
+
content = cut_off(val[1])
|
678
|
+
result = Verbatim.new(content)
|
679
|
+
# imform to lexer.
|
680
|
+
@in_verbatim = false
|
681
|
+
result
|
682
|
+
end
|
683
|
+
.,.,
|
684
|
+
|
685
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 62)
|
686
|
+
def _reduce_18(val, _values, result)
|
687
|
+
# val[0] is Array of String
|
688
|
+
content = cut_off(val[0])
|
689
|
+
result = Verbatim.new(content)
|
690
|
+
# imform to lexer.
|
691
|
+
@in_verbatim = false
|
692
|
+
result
|
693
|
+
end
|
694
|
+
.,.,
|
695
|
+
|
696
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 69)
|
697
|
+
def _reduce_19(val, _values, result)
|
698
|
+
result.push(val[1])
|
699
|
+
result
|
700
|
+
end
|
701
|
+
.,.,
|
702
|
+
|
703
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 71)
|
704
|
+
def _reduce_20(val, _values, result)
|
705
|
+
result.concat(val[2])
|
706
|
+
result
|
707
|
+
end
|
708
|
+
.,.,
|
709
|
+
|
710
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 73)
|
711
|
+
def _reduce_21(val, _values, result)
|
712
|
+
result.push("\n")
|
713
|
+
result
|
714
|
+
end
|
715
|
+
.,.,
|
716
|
+
|
717
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 74)
|
718
|
+
def _reduce_22(val, _values, result)
|
719
|
+
result = val
|
720
|
+
# imform to lexer.
|
721
|
+
@in_verbatim = true
|
722
|
+
result
|
723
|
+
end
|
724
|
+
.,.,
|
725
|
+
|
726
|
+
# reduce 23 omitted
|
727
|
+
|
728
|
+
# reduce 24 omitted
|
729
|
+
|
730
|
+
# reduce 25 omitted
|
731
|
+
|
732
|
+
# reduce 26 omitted
|
733
|
+
|
734
|
+
# reduce 27 omitted
|
735
|
+
|
736
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 85)
|
737
|
+
def _reduce_28(val, _values, result)
|
738
|
+
result = val[1]
|
739
|
+
result
|
740
|
+
end
|
741
|
+
.,.,
|
742
|
+
|
743
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 87)
|
744
|
+
def _reduce_29(val, _values, result)
|
745
|
+
result = val[1].push(val[2])
|
746
|
+
result
|
747
|
+
end
|
748
|
+
.,.,
|
749
|
+
|
750
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 90)
|
751
|
+
def _reduce_30(val, _values, result)
|
752
|
+
result.push(val[1])
|
753
|
+
result
|
754
|
+
end
|
755
|
+
.,.,
|
756
|
+
|
757
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 91)
|
758
|
+
def _reduce_31(val, _values, result)
|
759
|
+
result = val
|
760
|
+
result
|
761
|
+
end
|
762
|
+
.,.,
|
763
|
+
|
764
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 95)
|
765
|
+
def _reduce_32(val, _values, result)
|
766
|
+
result = ItemList.new
|
767
|
+
add_children_to_element(result, *val[0])
|
768
|
+
|
769
|
+
result
|
770
|
+
end
|
771
|
+
.,.,
|
772
|
+
|
773
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 100)
|
774
|
+
def _reduce_33(val, _values, result)
|
775
|
+
result.push(val[1])
|
776
|
+
result
|
777
|
+
end
|
778
|
+
.,.,
|
779
|
+
|
780
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 101)
|
781
|
+
def _reduce_34(val, _values, result)
|
782
|
+
result = val
|
783
|
+
result
|
784
|
+
end
|
785
|
+
.,.,
|
786
|
+
|
787
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 105)
|
788
|
+
def _reduce_35(val, _values, result)
|
789
|
+
result = ItemListItem.new
|
790
|
+
add_children_to_element(result, val[0], *val[1])
|
791
|
+
|
792
|
+
result
|
793
|
+
end
|
794
|
+
.,.,
|
795
|
+
|
796
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 111)
|
797
|
+
def _reduce_36(val, _values, result)
|
798
|
+
result = EnumList.new
|
799
|
+
add_children_to_element(result, *val[0])
|
800
|
+
|
801
|
+
result
|
802
|
+
end
|
803
|
+
.,.,
|
804
|
+
|
805
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 116)
|
806
|
+
def _reduce_37(val, _values, result)
|
807
|
+
result.push(val[1])
|
808
|
+
result
|
809
|
+
end
|
810
|
+
.,.,
|
811
|
+
|
812
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 117)
|
813
|
+
def _reduce_38(val, _values, result)
|
814
|
+
result = val
|
815
|
+
result
|
816
|
+
end
|
817
|
+
.,.,
|
818
|
+
|
819
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 121)
|
820
|
+
def _reduce_39(val, _values, result)
|
821
|
+
result = EnumListItem.new
|
822
|
+
add_children_to_element(result, val[0], *val[1])
|
823
|
+
|
824
|
+
result
|
825
|
+
end
|
826
|
+
.,.,
|
827
|
+
|
828
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 127)
|
829
|
+
def _reduce_40(val, _values, result)
|
830
|
+
result = DescList.new
|
831
|
+
add_children_to_element(result, *val[0])
|
832
|
+
|
833
|
+
result
|
834
|
+
end
|
835
|
+
.,.,
|
836
|
+
|
837
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 132)
|
838
|
+
def _reduce_41(val, _values, result)
|
839
|
+
result.push(val[1])
|
840
|
+
result
|
841
|
+
end
|
842
|
+
.,.,
|
843
|
+
|
844
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 133)
|
845
|
+
def _reduce_42(val, _values, result)
|
846
|
+
result = val
|
847
|
+
result
|
848
|
+
end
|
849
|
+
.,.,
|
850
|
+
|
851
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 137)
|
852
|
+
def _reduce_43(val, _values, result)
|
853
|
+
term = DescListItem::Term.new
|
854
|
+
term_contents = @inline_parser.parse(val[0].strip)
|
855
|
+
add_children_to_element(term, *term_contents)
|
856
|
+
|
857
|
+
result = DescListItem.new
|
858
|
+
set_term_to_element(result, term)
|
859
|
+
add_children_to_element(result, *val[1])
|
860
|
+
|
861
|
+
result
|
862
|
+
end
|
863
|
+
.,.,
|
864
|
+
|
865
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 148)
|
866
|
+
def _reduce_44(val, _values, result)
|
867
|
+
result = MethodList.new
|
868
|
+
add_children_to_element(result, *val[0])
|
869
|
+
|
870
|
+
result
|
871
|
+
end
|
872
|
+
.,.,
|
873
|
+
|
874
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 153)
|
875
|
+
def _reduce_45(val, _values, result)
|
876
|
+
result.push(val[1])
|
877
|
+
result
|
878
|
+
end
|
879
|
+
.,.,
|
880
|
+
|
881
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 154)
|
882
|
+
def _reduce_46(val, _values, result)
|
883
|
+
result = val
|
884
|
+
result
|
885
|
+
end
|
886
|
+
.,.,
|
887
|
+
|
888
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 158)
|
889
|
+
def _reduce_47(val, _values, result)
|
890
|
+
term = MethodListItem::Term.new(val[0].strip)
|
891
|
+
result = MethodListItem.new
|
892
|
+
set_term_to_element(result, term)
|
893
|
+
add_children_to_element(result, *val[1])
|
894
|
+
|
895
|
+
result
|
896
|
+
end
|
897
|
+
.,.,
|
898
|
+
|
899
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 166)
|
900
|
+
def _reduce_48(val, _values, result)
|
901
|
+
result = [val[1]].concat(val[2])
|
902
|
+
result
|
903
|
+
end
|
904
|
+
.,.,
|
905
|
+
|
906
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 167)
|
907
|
+
def _reduce_49(val, _values, result)
|
908
|
+
result = [val[1]]
|
909
|
+
result
|
910
|
+
end
|
911
|
+
.,.,
|
912
|
+
|
913
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 169)
|
914
|
+
def _reduce_50(val, _values, result)
|
915
|
+
result = val[2]
|
916
|
+
result
|
917
|
+
end
|
918
|
+
.,.,
|
919
|
+
|
920
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 170)
|
921
|
+
def _reduce_51(val, _values, result)
|
922
|
+
result = []
|
923
|
+
result
|
924
|
+
end
|
925
|
+
.,.,
|
926
|
+
|
927
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 173)
|
928
|
+
def _reduce_52(val, _values, result)
|
929
|
+
result.concat(val[1])
|
930
|
+
result
|
931
|
+
end
|
932
|
+
.,.,
|
933
|
+
|
934
|
+
# reduce 53 omitted
|
935
|
+
|
936
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 176)
|
937
|
+
def _reduce_54(val, _values, result)
|
938
|
+
result = val
|
939
|
+
result
|
940
|
+
end
|
941
|
+
.,.,
|
942
|
+
|
943
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 177)
|
944
|
+
def _reduce_55(val, _values, result)
|
945
|
+
result = val
|
946
|
+
result
|
947
|
+
end
|
948
|
+
.,.,
|
949
|
+
|
950
|
+
# reduce 56 omitted
|
951
|
+
|
952
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 179)
|
953
|
+
def _reduce_57(val, _values, result)
|
954
|
+
result = []
|
955
|
+
result
|
956
|
+
end
|
957
|
+
.,.,
|
958
|
+
|
959
|
+
# reduce 58 omitted
|
960
|
+
|
961
|
+
# reduce 59 omitted
|
962
|
+
|
963
|
+
# reduce 60 omitted
|
964
|
+
|
965
|
+
# reduce 61 omitted
|
966
|
+
|
967
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 190)
|
968
|
+
def _reduce_62(val, _values, result)
|
969
|
+
content = cut_off([val[0]].concat(val[1])).join("")
|
970
|
+
contents = @inline_parser.parse(content)
|
971
|
+
result = TextBlock.new()
|
972
|
+
add_children_to_element(result, *contents)
|
973
|
+
|
974
|
+
result
|
975
|
+
end
|
976
|
+
.,.,
|
977
|
+
|
978
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 197)
|
979
|
+
def _reduce_63(val, _values, result)
|
980
|
+
content = cut_off([val[0]]).join("")
|
981
|
+
contents = @inline_parser.parse(content)
|
982
|
+
result = TextBlock.new()
|
983
|
+
add_children_to_element(result, *contents)
|
984
|
+
|
985
|
+
result
|
986
|
+
end
|
987
|
+
.,.,
|
988
|
+
|
989
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 205)
|
990
|
+
def _reduce_64(val, _values, result)
|
991
|
+
content = cut_off([val[0]].concat(val[1])).join("")
|
992
|
+
contents = @inline_parser.parse(content)
|
993
|
+
result = TextBlock.new()
|
994
|
+
add_children_to_element(result, *contents)
|
995
|
+
|
996
|
+
result
|
997
|
+
end
|
998
|
+
.,.,
|
999
|
+
|
1000
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 212)
|
1001
|
+
def _reduce_65(val, _values, result)
|
1002
|
+
content = cut_off([val[0]]).join("")
|
1003
|
+
contents = @inline_parser.parse(content)
|
1004
|
+
result = TextBlock.new()
|
1005
|
+
add_children_to_element(result, *contents)
|
1006
|
+
|
1007
|
+
result
|
1008
|
+
end
|
1009
|
+
.,.,
|
1010
|
+
|
1011
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 219)
|
1012
|
+
def _reduce_66(val, _values, result)
|
1013
|
+
result = [val[0]].concat(val[1])
|
1014
|
+
result
|
1015
|
+
end
|
1016
|
+
.,.,
|
1017
|
+
|
1018
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 220)
|
1019
|
+
def _reduce_67(val, _values, result)
|
1020
|
+
result.concat(val[1])
|
1021
|
+
result
|
1022
|
+
end
|
1023
|
+
.,.,
|
1024
|
+
|
1025
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 221)
|
1026
|
+
def _reduce_68(val, _values, result)
|
1027
|
+
result = val[1]
|
1028
|
+
result
|
1029
|
+
end
|
1030
|
+
.,.,
|
1031
|
+
|
1032
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 222)
|
1033
|
+
def _reduce_69(val, _values, result)
|
1034
|
+
result = val
|
1035
|
+
result
|
1036
|
+
end
|
1037
|
+
.,.,
|
1038
|
+
|
1039
|
+
# reduce 70 omitted
|
1040
|
+
|
1041
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 224)
|
1042
|
+
def _reduce_71(val, _values, result)
|
1043
|
+
result = []
|
1044
|
+
result
|
1045
|
+
end
|
1046
|
+
.,.,
|
1047
|
+
|
1048
|
+
module_eval(<<'.,.,', 'rdblockparser.ry', 225)
|
1049
|
+
def _reduce_72(val, _values, result)
|
1050
|
+
result = []
|
1051
|
+
result
|
1052
|
+
end
|
1053
|
+
.,.,
|
1054
|
+
|
1055
|
+
def _reduce_none(val, _values, result)
|
1056
|
+
val[0]
|
1057
|
+
end
|
1058
|
+
|
1059
|
+
end # class RDParser
|
1060
|
+
|
1061
|
+
end # end of module RD
|