Commits

Michael Granger committed 6670c24

Converted to rake+hoe for building parsers, documents, testing, etc.

Comments (0)

Files changed (20)

HISTORY

-=begin
-= MANIFEST
-
-:bin/rdswap.rb (Cle)
-  RD swaping utility.
-:bin/rd2
-  frontend for RDtool.
-:lib/rd/tree.rb
-  RDtool Framework document tree part.
-:lib/rd/rd-struct.rb
-  RD Document Structure.
-:lib/rd/rdfmt.rb
-  old tree part.(obsolete)
-:lib/rd/visitor.rb
-  RDtool Framework visitor part.
-:lib/rd/output-format-visitor.rb
-  abstruct visitor class for formatting visitor.
-:lib/rd/rd2html-lib.rb
-  library for HTML format output.
-:lib/rd/rd2man-lib.rb
-  library for roff with man macro output.
-:lib/rd/rdvisitor.rb
-  old visitor part.(obsolete)
-:lib/rd/filter.rb
-  filter structure.(obsolete)
-:lib/rd/dot.rd2rc
-  default RC file.
-:lib/rd/rdblockparser.ry
-:lib/rd/rdinlineparser.ry
-:lib/rd/block-element.rb
-:lib/rd/complex-list-item.rb
-:lib/rd/desclist.rb
-:lib/rd/document-struct.rb
-:lib/rd/element.rb
-:lib/rd/inline-element.rb
-:lib/rd/labeled-element.rb
-:lib/rd/list.rb
-:lib/rd/methodlist.rb
-:lib/rd/rbl-file.rb
-:lib/rd/rbl-suite.rb
-:lib/rd/rd-struct.rb
-:lib/rd/search-file.rb
-:lib/rd/loose-struct.rb
-:lib/rd/reference-resolver.rb
-:lib/rd/version.rb
-:lib/rd/rd2html-opt.rb
-  non-published parts of RDtool.
-:lib/rd/rdblockparser.tab.rb
-:lib/rd/rdinlineparser.tab.rb
-  pre-compiled racc-generated parser. this works without Racc itself.
-:utils/rd-mode.el (Arai, Tosh)
-  Emacs major mode for RD. 
-:doc/rd-draft.rd(.ja)
-  RD working draft.(obsolete)
-:makrrdtool.rb
-  script to make Makefile.
-:README.rd(.ja)
-  README file.
-:HISTORY
-  this document.(RD format)
-
-RDtool include files which is copyrighted by somebody elses.
-  * Cle wrote bin/rdswap.rb. it's copyrighted by Cle.
-  * Arai and Tosh wrote utils/rd-mode.el. it's copyrighted by Arai and Tosh.
-  * Watanabe wrote lib/rd/rd2man-lib.rb. it's copyrighted by Watanabe.
-Please read these files for those lisence info.
-
-= CHANGES
-:0.6.21
-  * setup.rb version up -> 3.4.1
-  * fix for Ruby 1.9.
-:0.6.20
-  * corrected copyright.
-:0.6.19
-  * corrected file permission.
-  * setup.rb version up -> 3.4.0
-  * remove 'changes'
-:0.6.18
-  * bin/rd2 UTF-8 support.
-  * support Ruby 1.9.
-  * makerdtools.rb fixed some bugs.
-  * fixed install dot.rd2rc problem
-  * fixed some bugs.
-:0.6.17
-  * utils/rd-mode.el patch from <shirai@p1jp.com>
-:0.6.16
-  * utils/rd-mode.el font-face patch from HIRAOKA by MoonWolf <moonwolf@moonwolf.com>
-:0.6.15
-  * re-packaging by MoonWolf <moonwolf@moonwolf.com>
-:0.6.14
-  * minor fix for Ruby 1.8.
-  * now rd2man generates better output. (thank you, Sugiura-san.)
-:0.6.13
-  * now tabs are expanded into spaces.
-  * removed <p> for TextBlock in DescListItem when the TextBlock is only 
-    element of ListItem.
-  * a line of `---\n' are now regarded as Verbatim (or TextBlock).
-  * changed style of HTML anchors from `label:' to `label-'.
-  * fixed rd2man for better support of multiple paragraphs.
-  * fixed some bugs.
-:0.6.12
-  * fixed some bugs.
-:0.6.11
-  * support Ruby 1.4.6. thanks. > Aoki-san
-  * now `=begin' and `=end' are omitable. thanks. > Nakada-san
-  * changed to omit <p>...</p> for some ListItem.
-  * added `class="foottext"' attribute to <p> element for foottext.
-    thanks. > Kimura-san
-  * bug fix. thanks. > \ay-san, rubikitch-san, Tamura-san
-  * added rd-mode-hook in rd-mode.el. changed key-binding. thanks. > Komiya-san
-  * rd-intelligent-new-line (\M-RET) in rd-mode.el. thanks > Usui-san, Nakada-san
-
-:0.6.10
-  * fixed the bug that outputed HTML can have conflicted anchor and id.
-  * improved performance.
-  * corrected English of README.rd. thanks. > Robert Gustavsson
-  * fixed DTD declaration of XHTML. thanks. > Narushima
-  * fixed the bug around formatting man page.
-  * separeted (({Visitor#apply_to_Reference})) into
-    (({Visitor#apply_to_Reference_with_*}))s.
-:0.6.9
-  * fixed the bug that rd/dot.rd2rc isn't installed. thanks. > MUSHA
-  * fixed the bug that module RD don't have class RDElement for backward
-    compatibility.
-  * fixed error occuring in error handler when "false" is the triger of
-    parser error.
-:0.6.8
-  * version printing.
-  * fixed the bug around Label conflict.
-  * made (({outline-regexp})) buffer-local. thanks. > Yamaguchi
-  * fixed error message for empty RD.
-  * fixed the bug around parsing MethodList, empty Headline.
-:0.6.7
-  * fixed a bug about method index. thanks. > tam, knu
-  * changed quotation in Reference of rd-mode.el. thanks. > rubikitch
-  * fixed documentation. thanks. > hgs
-  * fixed a bug about temporary file. thanks. > Nakada
-  * changed usage of optparse. thanks. > Nakada
-  * now rd2html-lib.rb output XHTML 1.0 Transitional.
-  * --html-lang option for rd2html-lib.
-  * now inline parser allow (('(('\a\'))')).
-  * fixed a bug of missing '&' escape in URL text.
-  * error messages for syntax error become more useful.
-  * fixed mis-numbering of error messages for Inline syntax error.
-  * now '======' is not regarded as Headline.
-  * come to catch the exception which (({File.expand_path("~")})) throws
-    on Windows.
-  * missing/strscan.rb is removed.(strscan-0.6.x include pure Ruby version
-    of it.)
-:0.6.6
-  * Comment support.
-  * missing/rd{block,inline}parser.tab.rb -> missing/rd/...
-  * workaroud bug around syntax of quoted strings in Reference.
-  * added the declarations of tokens. (require Racc 1.1.5 or later.)
-  * remove <P> for TextBlock in ListItem if the ListItem has only one
-    Block.
-  * fixed bug around DescList.
-  * remove backtrase from error message when ParserError occured.
-  * fixed bug of (({RDVisitor#method_parse})). thanks. > Knu
-  * fixed bug.((({sort -> sort!}))) thanks. > Knu
-  * fixed rd-mode.el. thanks. > Rubikitch
-  * make install now uses ftools.rb instead of OS-dependent install command.
-    thanks. > Komatsu
-  * made  rd2  well-working on DOSISH OS. thanks. > Nagasawa
-:0.6.5
-  * missing/strscan.rb is added. this is for Win users who cannot compile
-    extlib and install Racc.
-  * rd2man is updated by Watanabe. thanks. > Watanabe
-  * bug fix. thanks. > Rubikitch
-:0.6.4
-  * Test code for Reference to other file, include Nakada's RMI patch.
-    thanks. > Nakada
-  * Make block level parser exactly line oriented.
-  * Indentation support functions for Verbatim in rd-mode.el.
-    thanks. > Rubikitch
-  * Function (({rd-show-label-list})) is added. thanks. > Rubikitch, Nakada
-  * Bug fix
-    * RDtool should prevent line break in Verb?
-    * Parser should pass empty RD, and warn precisely.(50%)
-    * when Verbatim after Lists with same indent, parse will fail.
-    * implicit FILTER select for --with-part of rd2.(Fixed by Nakada)
-    * an implicit bug(?).(Fixed by Nakada)
-    * default Title of output HTML is empty.(Fixed by Nakada)
-    * rmi2html.rb hasn't "#! /usr/bin/env ruby" as first line.
-
-:0.6.3
-  * rd/rd2html-lib, rd/rd2html-opt:
-    new commandline options to set HTML Title.
-  * rd/rd2man-lib: bug fix. thanks. > Dave
-  * rd2: come to use /usr/bin/env trick. thanks too. > Dave
-  * rd/rdinlineparser: A workaround for Regexp option change of Ruby 1.5.x.
-  * util/rd-mode.el: code clean up. thanks. > Rubikitch
-  * util/rd-mode.el: come to set indent-tabs-mode to nil.
-:0.6.2
-  * rd/rdblockparser: RD Include bug fix. thanks. > Arai
-  * rd/rdinlineparser: Reference filename bug fix.
-  * rd/rdvisitor: RMI bug caused by ruby-1.5's change of Symbol is fixed.
-    thanks. > Nakada
-  * util/rd-mode: some utility functions are added. thanks. > Nakada
-:0.6.1
-  * rd/rd2man-lib: added. thanks! > Watanabe
-  * rd/rdblockparser: textblock rule become neat.
-  * rd/rdblockparser: bug about List parse is fixed.
-  * rd/rdblockparser: come to cut whitelines at the end of Verbatim.
-  * rd/rdvisitor: (({apply_to_Include}))'s bug fixed.
-  * rd/rd2html-lib: <BLOCKQUOTE> for Verbatim is removed.
-  * rd2: change RD into man style.
-  * rd2: option --out-code.
-  * doc/rd-draft.rd: misspellings are fixed. thanks. > Yanagawa, Nakada, Sugihara
-  * doc/rd-draft.rd.ja: added.
-  * util/rd-mode.el: patch marged. thanks. > rubikitch
-:0.6.0
-  * parser tuning up. thanks for advice. > Aoki
-  * MethodList. thanks. > Arai
-  * error message. thanks. > Aoki
-  * method index.(experimental)
-  * more useful front-end.(come to use OptionParser)
-  * structure is widely changed.
-  * bug fix. thanks. > Nakada
-  * now rdvisitor defines target label (e.g. HTML's anchor) of MethodList
-    more meaningfully.
-  * block parser: R/S conflicts are resolved by Aoki. thanks! > Aoki
-  * inline parser:all Reference feature are covered.
-  * inline parser come to use strscan.so.
-  * inline parser: logic are changed. lexer becomes more simple.
-  * rd2html-lib: <VERB>?? what is it? W3C hasn't defined such a element! ;-p
-  * (({RefToElement})) and (({RefToURL})) disappeared. by now, (({Reference}))
-    represent both type of reference. on the other hand, (({Reference::Label}))
-    and its subclass are defined.
-  * rd2html-lib: temporary disable Index.
-  * rd-draft.rd: up-to-date. thank you for advice. > Hugh
-  * util/rd-mode.el: rd-insert-url patch is marged. thanks. > rubikitch
-  * rdtoolconf.rb is added, and Makefile is removed. thanks. > Takahashi
-  * rd/filter: module (({RD::Filter::FileInclude})). thanks. > Nakada
-
-:0.5.7
-  * bug fix. thanks. > Nakada
-:0.5.5
-  * repacked version.
-:0.5.4
-  * filter.(undocumented)
-  * BLANKLINE |--> WHITELINE
-  * bug fix. thanks. > Arai
-:0.5.3
-  * Include (RD and target format).
-  * require Racc 0.10.3 or later.
-  * utils/rd-mode.el. thanks. > Arai
-  * doc/rd-draft.rd.
-:0.5.2
-  * into RD module.
-  * rd2html-mindex.rb experimental release.
-  * apply some patches. thanks. > Arai & Hiwada
-  * bug fix.
-:0.5.0
-  * reborned for new RD.
-  * \cle's util/rdswap.rb. thanks > \cle
-:0.2.2 (1999/08/17)
-  * bad LaTeX format is fixed.(rd2latex-lib.rb) thanks > gotoken 
-  * bug in parse of Verbatim is fixed.(rdfmt.rb)
-  * bug in parse of term part of DescListItem is fixed.
-    (rdfmt.rb, rd2html-lib.rb, rd2latex-lib.rb)
-  * latex metachar-escape bug is fixed.
-:0.2.1 (1999/08/15)
-  * Index become available.(rd2html-lib.rb)(EXPERIMENTAL)
-:0.2.0 (1999/08/15)
-  * script design change.(rdfmt.rb, rd2html)
-  * insert "\n" into the end of line of "<!DOCTYPE ...".(rd2html-lib.rb)
-  * rd2latex is released.(rd2latex, rd2latex-lib.rb)(EXPERIMENTAL)
-  * ex. of "about RD Format" is improved.(rd2html, README.jp)
-  * README.jp char-code fixed (ISO-2022-JP => EUC-JP).(README.jp)
-:0.1.2 (1999/08/13)
-  * brief English document  inside rd2html.(rd2html)
-  * Japanese document is now "README.jp".(README.jp)
-  * HISTORY
-:0.1.1 (1999/08/13)
-  * patch for HTML format mistake.(rd2html-lib.rb) Thanks > gotoken
-  * fix a mistake of document(rd2html)
-:0.1.0 (1999/08/12)
-  * first release version
-
-= ABOUT BUG REPORT
-If you find a bug in RDtool, please E-mail me
-((<URL:mailto:moonwolf@moonwolf.com>)).
-=end
+=begin
+= MANIFEST
+
+:bin/rdswap.rb (Cle)
+  RD swaping utility.
+:bin/rd2
+  frontend for RDtool.
+:lib/rd/tree.rb
+  RDtool Framework document tree part.
+:lib/rd/rd-struct.rb
+  RD Document Structure.
+:lib/rd/rdfmt.rb
+  old tree part.(obsolete)
+:lib/rd/visitor.rb
+  RDtool Framework visitor part.
+:lib/rd/output-format-visitor.rb
+  abstruct visitor class for formatting visitor.
+:lib/rd/rd2html-lib.rb
+  library for HTML format output.
+:lib/rd/rd2man-lib.rb
+  library for roff with man macro output.
+:lib/rd/rdvisitor.rb
+  old visitor part.(obsolete)
+:lib/rd/filter.rb
+  filter structure.(obsolete)
+:lib/rd/dot.rd2rc
+  default RC file.
+:lib/rd/rdblockparser.ry
+:lib/rd/rdinlineparser.ry
+:lib/rd/block-element.rb
+:lib/rd/complex-list-item.rb
+:lib/rd/desclist.rb
+:lib/rd/document-struct.rb
+:lib/rd/element.rb
+:lib/rd/inline-element.rb
+:lib/rd/labeled-element.rb
+:lib/rd/list.rb
+:lib/rd/methodlist.rb
+:lib/rd/rbl-file.rb
+:lib/rd/rbl-suite.rb
+:lib/rd/rd-struct.rb
+:lib/rd/search-file.rb
+:lib/rd/loose-struct.rb
+:lib/rd/reference-resolver.rb
+:lib/rd/version.rb
+:lib/rd/rd2html-opt.rb
+  non-published parts of RDtool.
+:lib/rd/rdblockparser.tab.rb
+:lib/rd/rdinlineparser.tab.rb
+  pre-compiled racc-generated parser. this works without Racc itself.
+:utils/rd-mode.el (Arai, Tosh)
+  Emacs major mode for RD. 
+:doc/rd-draft.rd(.ja)
+  RD working draft.(obsolete)
+:makrrdtool.rb
+  script to make Makefile.
+:README.rd(.ja)
+  README file.
+:HISTORY
+  this document.(RD format)
+
+RDtool include files which is copyrighted by somebody elses.
+  * Cle wrote bin/rdswap.rb. it's copyrighted by Cle.
+  * Arai and Tosh wrote utils/rd-mode.el. it's copyrighted by Arai and Tosh.
+  * Watanabe wrote lib/rd/rd2man-lib.rb. it's copyrighted by Watanabe.
+Please read these files for those lisence info.
+
+= CHANGES
+:0.6.21
+  * setup.rb version up -> 3.4.1
+  * fix for Ruby 1.9.
+:0.6.20
+  * corrected copyright.
+:0.6.19
+  * corrected file permission.
+  * setup.rb version up -> 3.4.0
+  * remove 'changes'
+:0.6.18
+  * bin/rd2 UTF-8 support.
+  * support Ruby 1.9.
+  * makerdtools.rb fixed some bugs.
+  * fixed install dot.rd2rc problem
+  * fixed some bugs.
+:0.6.17
+  * utils/rd-mode.el patch from <shirai@p1jp.com>
+:0.6.16
+  * utils/rd-mode.el font-face patch from HIRAOKA by MoonWolf <moonwolf@moonwolf.com>
+:0.6.15
+  * re-packaging by MoonWolf <moonwolf@moonwolf.com>
+:0.6.14
+  * minor fix for Ruby 1.8.
+  * now rd2man generates better output. (thank you, Sugiura-san.)
+:0.6.13
+  * now tabs are expanded into spaces.
+  * removed <p> for TextBlock in DescListItem when the TextBlock is only 
+    element of ListItem.
+  * a line of `---\n' are now regarded as Verbatim (or TextBlock).
+  * changed style of HTML anchors from `label:' to `label-'.
+  * fixed rd2man for better support of multiple paragraphs.
+  * fixed some bugs.
+:0.6.12
+  * fixed some bugs.
+:0.6.11
+  * support Ruby 1.4.6. thanks. > Aoki-san
+  * now `=begin' and `=end' are omitable. thanks. > Nakada-san
+  * changed to omit <p>...</p> for some ListItem.
+  * added `class="foottext"' attribute to <p> element for foottext.
+    thanks. > Kimura-san
+  * bug fix. thanks. > \ay-san, rubikitch-san, Tamura-san
+  * added rd-mode-hook in rd-mode.el. changed key-binding. thanks. > Komiya-san
+  * rd-intelligent-new-line (\M-RET) in rd-mode.el. thanks > Usui-san, Nakada-san
+
+:0.6.10
+  * fixed the bug that outputed HTML can have conflicted anchor and id.
+  * improved performance.
+  * corrected English of README.rd. thanks. > Robert Gustavsson
+  * fixed DTD declaration of XHTML. thanks. > Narushima
+  * fixed the bug around formatting man page.
+  * separeted (({Visitor#apply_to_Reference})) into
+    (({Visitor#apply_to_Reference_with_*}))s.
+:0.6.9
+  * fixed the bug that rd/dot.rd2rc isn't installed. thanks. > MUSHA
+  * fixed the bug that module RD don't have class RDElement for backward
+    compatibility.
+  * fixed error occuring in error handler when "false" is the triger of
+    parser error.
+:0.6.8
+  * version printing.
+  * fixed the bug around Label conflict.
+  * made (({outline-regexp})) buffer-local. thanks. > Yamaguchi
+  * fixed error message for empty RD.
+  * fixed the bug around parsing MethodList, empty Headline.
+:0.6.7
+  * fixed a bug about method index. thanks. > tam, knu
+  * changed quotation in Reference of rd-mode.el. thanks. > rubikitch
+  * fixed documentation. thanks. > hgs
+  * fixed a bug about temporary file. thanks. > Nakada
+  * changed usage of optparse. thanks. > Nakada
+  * now rd2html-lib.rb output XHTML 1.0 Transitional.
+  * --html-lang option for rd2html-lib.
+  * now inline parser allow (('(('\a\'))')).
+  * fixed a bug of missing '&' escape in URL text.
+  * error messages for syntax error become more useful.
+  * fixed mis-numbering of error messages for Inline syntax error.
+  * now '======' is not regarded as Headline.
+  * come to catch the exception which (({File.expand_path("~")})) throws
+    on Windows.
+  * missing/strscan.rb is removed.(strscan-0.6.x include pure Ruby version
+    of it.)
+:0.6.6
+  * Comment support.
+  * missing/rd{block,inline}parser.tab.rb -> missing/rd/...
+  * workaroud bug around syntax of quoted strings in Reference.
+  * added the declarations of tokens. (require Racc 1.1.5 or later.)
+  * remove <P> for TextBlock in ListItem if the ListItem has only one
+    Block.
+  * fixed bug around DescList.
+  * remove backtrase from error message when ParserError occured.
+  * fixed bug of (({RDVisitor#method_parse})). thanks. > Knu
+  * fixed bug.((({sort -> sort!}))) thanks. > Knu
+  * fixed rd-mode.el. thanks. > Rubikitch
+  * make install now uses ftools.rb instead of OS-dependent install command.
+    thanks. > Komatsu
+  * made  rd2  well-working on DOSISH OS. thanks. > Nagasawa
+:0.6.5
+  * missing/strscan.rb is added. this is for Win users who cannot compile
+    extlib and install Racc.
+  * rd2man is updated by Watanabe. thanks. > Watanabe
+  * bug fix. thanks. > Rubikitch
+:0.6.4
+  * Test code for Reference to other file, include Nakada's RMI patch.
+    thanks. > Nakada
+  * Make block level parser exactly line oriented.
+  * Indentation support functions for Verbatim in rd-mode.el.
+    thanks. > Rubikitch
+  * Function (({rd-show-label-list})) is added. thanks. > Rubikitch, Nakada
+  * Bug fix
+    * RDtool should prevent line break in Verb?
+    * Parser should pass empty RD, and warn precisely.(50%)
+    * when Verbatim after Lists with same indent, parse will fail.
+    * implicit FILTER select for --with-part of rd2.(Fixed by Nakada)
+    * an implicit bug(?).(Fixed by Nakada)
+    * default Title of output HTML is empty.(Fixed by Nakada)
+    * rmi2html.rb hasn't "#! /usr/bin/env ruby" as first line.
+
+:0.6.3
+  * rd/rd2html-lib, rd/rd2html-opt:
+    new commandline options to set HTML Title.
+  * rd/rd2man-lib: bug fix. thanks. > Dave
+  * rd2: come to use /usr/bin/env trick. thanks too. > Dave
+  * rd/rdinlineparser: A workaround for Regexp option change of Ruby 1.5.x.
+  * util/rd-mode.el: code clean up. thanks. > Rubikitch
+  * util/rd-mode.el: come to set indent-tabs-mode to nil.
+:0.6.2
+  * rd/rdblockparser: RD Include bug fix. thanks. > Arai
+  * rd/rdinlineparser: Reference filename bug fix.
+  * rd/rdvisitor: RMI bug caused by ruby-1.5's change of Symbol is fixed.
+    thanks. > Nakada
+  * util/rd-mode: some utility functions are added. thanks. > Nakada
+:0.6.1
+  * rd/rd2man-lib: added. thanks! > Watanabe
+  * rd/rdblockparser: textblock rule become neat.
+  * rd/rdblockparser: bug about List parse is fixed.
+  * rd/rdblockparser: come to cut whitelines at the end of Verbatim.
+  * rd/rdvisitor: (({apply_to_Include}))'s bug fixed.
+  * rd/rd2html-lib: <BLOCKQUOTE> for Verbatim is removed.
+  * rd2: change RD into man style.
+  * rd2: option --out-code.
+  * doc/rd-draft.rd: misspellings are fixed. thanks. > Yanagawa, Nakada, Sugihara
+  * doc/rd-draft.rd.ja: added.
+  * util/rd-mode.el: patch marged. thanks. > rubikitch
+:0.6.0
+  * parser tuning up. thanks for advice. > Aoki
+  * MethodList. thanks. > Arai
+  * error message. thanks. > Aoki
+  * method index.(experimental)
+  * more useful front-end.(come to use OptionParser)
+  * structure is widely changed.
+  * bug fix. thanks. > Nakada
+  * now rdvisitor defines target label (e.g. HTML's anchor) of MethodList
+    more meaningfully.
+  * block parser: R/S conflicts are resolved by Aoki. thanks! > Aoki
+  * inline parser:all Reference feature are covered.
+  * inline parser come to use strscan.so.
+  * inline parser: logic are changed. lexer becomes more simple.
+  * rd2html-lib: <VERB>?? what is it? W3C hasn't defined such a element! ;-p
+  * (({RefToElement})) and (({RefToURL})) disappeared. by now, (({Reference}))
+    represent both type of reference. on the other hand, (({Reference::Label}))
+    and its subclass are defined.
+  * rd2html-lib: temporary disable Index.
+  * rd-draft.rd: up-to-date. thank you for advice. > Hugh
+  * util/rd-mode.el: rd-insert-url patch is marged. thanks. > rubikitch
+  * rdtoolconf.rb is added, and Makefile is removed. thanks. > Takahashi
+  * rd/filter: module (({RD::Filter::FileInclude})). thanks. > Nakada
+
+:0.5.7
+  * bug fix. thanks. > Nakada
+:0.5.5
+  * repacked version.
+:0.5.4
+  * filter.(undocumented)
+  * BLANKLINE |--> WHITELINE
+  * bug fix. thanks. > Arai
+:0.5.3
+  * Include (RD and target format).
+  * require Racc 0.10.3 or later.
+  * utils/rd-mode.el. thanks. > Arai
+  * doc/rd-draft.rd.
+:0.5.2
+  * into RD module.
+  * rd2html-mindex.rb experimental release.
+  * apply some patches. thanks. > Arai & Hiwada
+  * bug fix.
+:0.5.0
+  * reborned for new RD.
+  * \cle's util/rdswap.rb. thanks > \cle
+:0.2.2 (1999/08/17)
+  * bad LaTeX format is fixed.(rd2latex-lib.rb) thanks > gotoken 
+  * bug in parse of Verbatim is fixed.(rdfmt.rb)
+  * bug in parse of term part of DescListItem is fixed.
+    (rdfmt.rb, rd2html-lib.rb, rd2latex-lib.rb)
+  * latex metachar-escape bug is fixed.
+:0.2.1 (1999/08/15)
+  * Index become available.(rd2html-lib.rb)(EXPERIMENTAL)
+:0.2.0 (1999/08/15)
+  * script design change.(rdfmt.rb, rd2html)
+  * insert "\n" into the end of line of "<!DOCTYPE ...".(rd2html-lib.rb)
+  * rd2latex is released.(rd2latex, rd2latex-lib.rb)(EXPERIMENTAL)
+  * ex. of "about RD Format" is improved.(rd2html, README.jp)
+  * README.jp char-code fixed (ISO-2022-JP => EUC-JP).(README.jp)
+:0.1.2 (1999/08/13)
+  * brief English document  inside rd2html.(rd2html)
+  * Japanese document is now "README.jp".(README.jp)
+  * HISTORY
+:0.1.1 (1999/08/13)
+  * patch for HTML format mistake.(rd2html-lib.rb) Thanks > gotoken
+  * fix a mistake of document(rd2html)
+:0.1.0 (1999/08/12)
+  * first release version
+
+= ABOUT BUG REPORT
+If you find a bug in RDtool, please E-mail me
+((<URL:mailto:moonwolf@moonwolf.com>)).
+=end

MANIFEST

-HISTORY
-MANIFEST
-README.html
-README.ja.html
-README.rd
-README.rd.ja
-bin/rd2
-bin/rdswap.rb
-doc/rd-draft.html
-doc/rd-draft.ja.html
-doc/rd-draft.rd
-doc/rd-draft.rd.ja
-lib/rd/block-element.rb
-lib/rd/complex-list-item.rb
-lib/rd/desclist.rb
-lib/rd/document-struct.rb
-lib/rd/dot.rd2rc
-lib/rd/element.rb
-lib/rd/filter.rb
-lib/rd/inline-element.rb
-lib/rd/labeled-element.rb
-lib/rd/list.rb
-lib/rd/loose-struct.rb
-lib/rd/methodlist.rb
-lib/rd/output-format-visitor.rb
-lib/rd/package.rb
-lib/rd/parser-util.rb
-lib/rd/post-install
-lib/rd/rbl-file.rb
-lib/rd/rbl-suite.rb
-lib/rd/rd-struct.rb
-lib/rd/rd2html-lib.rb
-lib/rd/rd2html-opt.rb
-lib/rd/rd2man-lib.rb
-lib/rd/rd2rdo-lib.rb
-lib/rd/rd2rmi-lib.rb
-lib/rd/rdblockparser.ry
-lib/rd/rdblockparser.tab.rb
-lib/rd/rdfmt.rb
-lib/rd/rdinlineparser.ry
-lib/rd/rdinlineparser.tab.rb
-lib/rd/rdvisitor.rb
-lib/rd/reference-resolver.rb
-lib/rd/search-file.rb
-lib/rd/tree.rb
-lib/rd/version.rb
-lib/rd/visitor.rb
-makerdtool.rb
-setup.rb
-test.rb
-test/data/includee1.html
-test/data/includee2.html
-test/data/includee3.nothtml
-test/data/includee4.xhtml
-test/data/label.rbl
-test/data/label2.rbl
-test/data/sub/includee2.html
-test/data/sub/includee4.html
-test/dummy-observer.rb
-test/dummy.rb
-test/temp-dir.rb
-test/test-block-parser.rb
-test/test-desclist-item.rb
-test/test-document-element.rb
-test/test-document-struct.rb
-test/test-element.rb
-test/test-headline.rb
-test/test-inline-parser.rb
-test/test-list-item.rb
-test/test-list.rb
-test/test-methodlist-item.rb
-test/test-nonterminal-element.rb
-test/test-nonterminal-inline.rb
-test/test-output-format-visitor.rb
-test/test-parser-util.rb
-test/test-rbl-file.rb
-test/test-rbl-suite.rb
-test/test-rd2html-lib.rb
-test/test-rdtree.rb
-test/test-rdvisitor.rb
-test/test-reference-resolver.rb
-test/test-reference.rb
-test/test-search-file.rb
-test/test-terminal-inline.rb
-test/test-textblock.rb
-test/test-tree.rb
-test/test-version.rb
-test/test-visitor.rb
-utils/rd-mode.el
+HISTORY.rd
+README.html
+README.ja.html
+README.rd
+README.rd.ja
+Rakefile
+bin/rd2
+bin/rdswap.rb
+doc/rd-draft.html
+doc/rd-draft.ja.html
+doc/rd-draft.rd
+doc/rd-draft.rd.ja
+lib/rd/block-element.rb
+lib/rd/complex-list-item.rb
+lib/rd/desclist.rb
+lib/rd/document-struct.rb
+lib/rd/dot.rd2rc
+lib/rd/element.rb
+lib/rd/filter.rb
+lib/rd/inline-element.rb
+lib/rd/labeled-element.rb
+lib/rd/list.rb
+lib/rd/loose-struct.rb
+lib/rd/methodlist.rb
+lib/rd/output-format-visitor.rb
+lib/rd/package.rb
+lib/rd/parser-util.rb
+lib/rd/post-install
+lib/rd/rbl-file.rb
+lib/rd/rbl-suite.rb
+lib/rd/rd-struct.rb
+lib/rd/rd2html-lib.rb
+lib/rd/rd2html-opt.rb
+lib/rd/rd2man-lib.rb
+lib/rd/rd2rdo-lib.rb
+lib/rd/rd2rmi-lib.rb
+lib/rd/rdblockparser.ry
+lib/rd/rdblockparser.tab.rb
+lib/rd/rdfmt.rb
+lib/rd/rdinlineparser.ry
+lib/rd/rdinlineparser.tab.rb
+lib/rd/rdvisitor.rb
+lib/rd/reference-resolver.rb
+lib/rd/search-file.rb
+lib/rd/tree.rb
+lib/rd/version.rb
+lib/rd/visitor.rb
+makerdtool.rb
+setup.rb
+test.rb
+test/data/includee1.html
+test/data/includee2.html
+test/data/includee3.nothtml
+test/data/includee4.xhtml
+test/data/label.rbl
+test/data/label2.rbl
+test/data/sub/includee2.html
+test/data/sub/includee4.html
+test/dummy-observer.rb
+test/dummy.rb
+test/temp-dir.rb
+test/test-block-parser.rb
+test/test-desclist-item.rb
+test/test-document-element.rb
+test/test-document-struct.rb
+test/test-element.rb
+test/test-headline.rb
+test/test-inline-parser.rb
+test/test-list-item.rb
+test/test-list.rb
+test/test-methodlist-item.rb
+test/test-nonterminal-element.rb
+test/test-nonterminal-inline.rb
+test/test-output-format-visitor.rb
+test/test-parser-util.rb
+test/test-rbl-file.rb
+test/test-rbl-suite.rb
+test/test-rd2html-lib.rb
+test/test-rdtree.rb
+test/test-rdvisitor.rb
+test/test-reference-resolver.rb
+test/test-reference.rb
+test/test-search-file.rb
+test/test-terminal-inline.rb
+test/test-textblock.rb
+test/test-tree.rb
+test/test-version.rb
+test/test-visitor.rb
+utils/rd-mode.el

README.html

-<?xml version="1.0" ?>
-<!DOCTYPE html 
-  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<title>README</title>
-</head>
-<body>
-<h1><a name="label-0" id="label-0">RDtool 0.6.21</a></h1><!-- RDLabel: "RDtool 0.6.21" -->
-<h2><a name="label-1" id="label-1">What is RDtool</a></h2><!-- RDLabel: "What is RDtool" -->
-<p>RD is Ruby's POD. RDtool is formatter for RD.</p>
-<h2><a name="label-2" id="label-2">What is Changed</a></h2><!-- RDLabel: "What is Changed" -->
-<p>See HISTORY.</p>
-<h2><a name="label-3" id="label-3">How to Install</a></h2><!-- RDLabel: "How to Install" -->
-<ol>
-<li><kbd>su</kbd> if you install into public directories.</li>
-<li><kbd>ruby setup.rb</kbd></li>
-<li>If you want to use , utils/rd-mode.el, install it <em>by hand</em>.</li>
-</ol>
-<h2><a name="label-4" id="label-4">How to use</a></h2><!-- RDLabel: "How to use" -->
-<p>Simply,</p>
-<pre>% rd2 rdfile.rd &gt; outputfile</pre>
-<p>If you want to indicate format-library, do</p>
-<pre>% rd2 -r library rdfile.rd &gt; outputfile</pre>
-<p>Use <kbd> rd2 --help </kbd> for more options.</p>
-<p>For options depend on format-library, enter <kbd>--help</kbd> after
-the indication of format-library. For example,</p>
-<pre>% rd2 -r rd/rd2html-lib.rb --help</pre>
-<p>rd2 load "${HOME}/.rd2rc" when it runs.</p>
-<h2><a name="label-5" id="label-5">How to write RD?</a></h2><!-- RDLabel: "How to write RD?" -->
-<p>Please read doc/rd-draft.rd.</p>
-<h2><a name="label-6" id="label-6">About bug report</a></h2><!-- RDLabel: "About bug report" -->
-<p>If you find a bug in RDtool, please E-mail me
-<a href="mailto:moonwolf@moonwolf.com">&lt;URL:mailto:moonwolf@moonwolf.com&gt;</a>.</p>
-<h2><a name="label-7" id="label-7">License</a></h2><!-- RDLabel: "License" -->
-<p>You can use/re-distribute/change RDtool under Ruby's License or GPL.
-This distribution of RDtool include files that are copyrighted by
-somebody else, and these files can be re-distributed under those own license.
-These files include the condition of those licenses in themselves.</p>
-
-</body>
-</html>

README.ja.html

-<?xml version="1.0" ?>
-<!DOCTYPE html 
-  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<title>README.ja</title>
-</head>
-<body>
-<h1><a name="label-0" id="label-0">RDtool 0.6.21</a></h1><!-- RDLabel: "RDtool 0.6.21" -->
-<h2><a name="label-1" id="label-1">RDってなに?</a></h2><!-- RDLabel: "RDってなに?" -->
-<p>RDはRubyにおけるPOD(Plain Old Documentation)のようなものです。
-RDtoolはRDのフォーマッタであり、RDをHTMLなどに変換できます。</p>
-<h2><a name="label-2" id="label-2">何が変わった?</a></h2><!-- RDLabel: "何が変わった?" -->
-<p>HISTORYを見てください。</p>
-<h2><a name="label-3" id="label-3">インストールの方法</a></h2><!-- RDLabel: "インストールの方法" -->
-<ol>
-<li>必要なら、<kbd>su</kbd></li>
-<li><kbd>ruby setup.rb</kbd></li>
-<li>utils/rd-mode.elを使いたいならば
-    それらを<em>手で</em>インストールします。</li>
-</ol>
-<h2><a name="label-4" id="label-4">どうやって使うか。</a></h2><!-- RDLabel: "どうやって使うか。" -->
-<p>基本的には、こんな感じ。</p>
-<pre>% rd2 rdfile.rd &gt; outputfile</pre>
-<p>フォーマットライブラリを指定したい時は、こう。</p>
-<pre>% rd2 -r library rdfile.rd &gt; outputfile</pre>
-<p><kbd> rd2 --help </kbd>でオプションの詳細がでます。</p>
-<p>フォーマットライブラリ依存のオプションは先にフォーマットライブラリの
-指定をしてから<kbd>--help</kbd>。例えば、</p>
-<pre>% rd2 -r rd/rd2html-lib.rb --help</pre>
-<p>rd2はホームディレクトリにある".rd2rc"というファイルを読み込みます。
-これはRubyスクリプトです。</p>
-<h2><a name="label-5" id="label-5">RDの書き方</a></h2><!-- RDLabel: "RDの書き方" -->
-<p>doc/rd-draft.rdを読んでください。</p>
-<h2><a name="label-6" id="label-6">バグ報告</a></h2><!-- RDLabel: "バグ報告" -->
-<p>バグを見付けた時は、次のアドレスまでメールしてください。
-<a href="mailto:moonwolf@moonwolf.com">&lt;URL:mailto:moonwolf@moonwolf.com&gt;</a></p>
-<h2><a name="label-7" id="label-7">ライセンス</a></h2><!-- RDLabel: "ライセンス" -->
-<p>RDtoolはRuby's LicenseかGPLの下で使用/配布/改造してください。
-RDtoolのパッケージにはTosh以外の人が著作権を持つファイルが含まれています。
-それらのファイルについての配布条件はファイル自体に書かれたライセンスの下で
-行ってください。</p>
-
-</body>
-</html>
 = RDtool 0.6.21
 == What is RDtool
 
-RD is Ruby's POD. RDtool is formatter for RD.
+RD is Ruby's POD. RDtool is a formatter for RD. This is a re-packaging of
+rdtool as a Rubygem.
 
 == What is Changed
 
 
 == How to Install
 
- (1)((%su%)) if you install into public directories.
- (2)((%ruby setup.rb%))
- (3)If you want to use , utils/rd-mode.el, install it ((*by hand*)).
+ ((%sudo gem install rdtool%))
 
 == How to use
 
 
   % rd2 -r rd/rd2html-lib.rb --help
 
-rd2 load "${HOME}/.rd2rc" when it runs.
+rd2 loads "${HOME}/.rd2rc" when it runs, so you can use it to set 
+default options.
 
 == How to write RD?
 
 Please read doc/rd-draft.rd.
 
-== About bug report
+== About bug reports
+
+This is a re-packaged version 
 
 If you find a bug in RDtool, please E-mail me
 ((<URL:mailto:moonwolf@moonwolf.com>)).
+#!/usr/bin/env rake
+
+require 'pathname'
+require 'hoe'
+
+# Directory and target constants
+
+BASEDIR      = Pathname( __FILE__ ).dirname
+LIBDIR       = BASEDIR + 'lib'
+LIBRDDIR     = LIBDIR + 'rd'
+
+RACC_FILES   = Rake::FileList[ (LIBRDDIR + '*.ry').to_s ]
+TABLE_FILES  = RACC_FILES.pathmap( "%X.tab.rb" )
+
+RACC_LOGFILE = 'racc.out'
+
+# Hoe config
+Hoe.add_include_dirs( 'lib' )
+
+Hoe.plugin :mercurial
+Hoe.plugin :signing
+
+Hoe.plugins.delete :rubyforge
+
+hoespec = Hoe.spec 'rdtool' do
+	self.readme_file = 'README.rd'
+	self.history_file = 'HISTORY.rd'
+
+	self.developer 'Michael Granger', 'ged@FaerieMUD.org'
+
+	self.extra_dev_deps.push *{
+		'rspec' => '~> 2.4',
+	}
+
+	self.spec_extras[:licenses] = ['Ruby', 'GPL']
+	self.spec_extras[:signing_key] = '/Volumes/Keys/ged-private_gem_key.pem'
+
+	self.require_ruby_version( '>=1.8.7' )
+
+	self.hg_sign_tags = true if self.respond_to?( :hg_sign_tags= )
+
+    self.test_globs = ['test/**/test-*.rb']
+	self.need_rdoc = false
+	self.rdoc_locations << "deveiate:/usr/local/www/public/code/#{remote_rdoc_dir}"
+end
+
+
+# Work around the release task's VERSION=x.y.z safeguard, as the mercurial task
+# already checks the release version against the existing tags
+ENV['VERSION'] ||= hoespec.spec.version.to_s
+
+# Ensure the tests pass before checking in
+task 'hg:precheckin' => :test
+
+# declared because :clean depends on this even if #need_rdoc == false
+task :clobber_docs do
+end
+
+
+# Mercurial-related tasks
+begin
+	include Hoe::MercurialHelpers
+
+	### Task: prerelease
+	desc "Append the package build number to package versions"
+	task :pre do
+		rev = get_numeric_rev()
+		trace "Current rev is: %p" % [ rev ]
+		hoespec.spec.version.version << "pre#{rev}"
+		Rake::Task[:gem].clear
+
+		Gem::PackageTask.new( hoespec.spec ) do |pkg|
+			pkg.need_zip = true
+			pkg.need_tar = true
+		end
+	end
+
+	### Make the ChangeLog update if the repo has changed since it was last built
+	file '.hg/branch'
+	file 'ChangeLog' => '.hg/branch' do |task|
+		$stderr.puts "Updating the changelog..."
+		content = make_changelog()
+		File.open( task.name, 'w', 0644 ) do |fh|
+			fh.print( content )
+		end
+	end
+
+	# Rebuild the ChangeLog immediately before release
+	task :prerelease => 'ChangeLog'
+
+rescue NameError => err
+	task :no_hg_helpers do
+		fail "Couldn't define the :pre task: %s: %s" % [ err.class.name, err.message ]
+	end
+
+	task :pre => :no_hg_helpers
+	task 'ChangeLog' => :no_hg_helpers
+
+end
+
+
+# RD -> HTML rule
+rule '.html' => '.rd' do |task|
+	require 'rd/rdfmt'
+	require 'rd/rd2html-lib'
+
+	trace "#{task.source} -> #{task.name}"
+	src = File.readlines( task.source )
+	trace "  read %d lines..." % [ src.length ]
+	if src.find {|line| line =~ /\S/ } and !src.find {|line| line =~ /^=begin\b/ }
+		trace "  wrapping content in =begin and =end..."
+		src.unshift( "=begin\n" ).push( "=end\n" )
+	end
+
+	trace "  setting up RD tree..."
+	tree = RD::RDTree.new( src, [File.dirname(task.source)] )
+
+	trace "  setting up RD HTML visitor..."
+	visitor = RD::RD2HTMLVisitor.new
+	visitor.filename = task.name
+	visitor.charcode = 'utf8'
+    visitor.lang = task.source =~ /\.ja\,/ ? 'ja' : 'en'
+
+	trace "  rendering..."
+	output = visitor.visit( tree )
+
+	trace "  writing #{task.name}..."
+	File.open( task.name, File::WRONLY|File::TRUNC|File::CREAT, 0644 ) do |ofh|
+		ofh.print( output )
+	end
+end
+
+task :test => TABLE_FILES
+
+# .ry -> .tab.rb rule (Racc grammars)
+rule( /\.tab\.rb$/ => [proc {|name| name.sub(/\.tab\.rb$/, '.ry')}] ) do |task|
+	log "Generating #{task.name}"
+	run 'racc', '-v', '-O', RACC_LOGFILE, '-o', task.name, task.source
+end
+CLEAN.include( RACC_LOGFILE )
+CLOBBER.include( TABLE_FILES )
+
+
 =begin
 == script info.
  filter structure.
- $Id: filter.rb,v 1.7 2001/03/19 15:20:08 toshirok Exp $
+ $Id$
 =end

lib/rd/rd2html-lib.rb

 =begin
 == script info.
  RD to HTML translate library for rdfmt.rb
- $Id: rd2html-lib.rb,v 1.53 2003/03/08 12:45:08 tosh Exp $
+ $Id$
 
 =end
 =begin
 == script info.
  RD to MAN translate library for rdfmt.rb
- $Id: rd2man-lib.rb,v 1.9 2003/08/02 15:45:49 tosh Exp $
+ $Id$
  copyright WATANABE Hirofumi <eban@os.rim.or.jp>, 2000
 =end

lib/rd/rdblockparser.ry

       if @in_verbatim
 	[:STRINGLINE, line]
       else
-	@indent_stack.push("\s" <<$2)
+	@indent_stack.push("\s" + $2)
 	[:DESCLISTLINE, rest]
       end
     end

lib/rd/rdblockparser.tab.rb

-#
-# DO NOT MODIFY!!!!
-# This file is automatically generated by racc 1.4.4
-# from racc grammer file "lib/rd/rdblockparser.ry".
-#
-
-require 'racc/parser'
-
-
-require "rd/rdinlineparser.tab.rb"
-require "rd/parser-util"
-
-module RD
-
-class RDParser < Racc::Parser
-
-module_eval <<'..end lib/rd/rdblockparser.ry modeval..idc4b57748f0', 'lib/rd/rdblockparser.ry', 231
-include ParserUtility
-
-TMPFILE = ["rdtmp", $$, 0]
-
-attr_reader :tree
-
-def initialize
-  @inline_parser = RDInlineParser.new(self)
-end
-
-def parse(src, tree)
-  @src = src
-  @src.push(false)
-  # RDtree
-  @tree = tree
-  
-  # @i: index(line no.) of src
-  @i = 0
-  # stack for current indentation
-  @indent_stack = []
-  # how indented.
-  @current_indent = @indent_stack.join("")
-  # RDParser for tmp src
-  @subparser = nil
-  # which part is in now
-  @in_part = nil
-  @part_content = []
-
-  @in_verbatim = false
-
-  @yydebug = true
-  do_parse
-end
-
-def next_token
-  # preprocessing
-  # if it is not in RD part
-  # => method
-  while @in_part != "rd"
-    line = @src[@i]
-    @i += 1 # next line
-    
-    case line
-    # src end
-    when false
-      return [false, false]
-    # RD part begin
-    when /^=begin\s*(?:\bRD\b.*)?\s*$/
-      if @in_part # if in non-RD part
-	@part_content.push(line)
-      else
-	@in_part = "rd"
-	return [:WHITELINE, "=begin\n"] # <= for textblockand
-      end
-    # non-RD part begin
-    when /^=begin\s+(\w+)/
-      part = $1
-      if @in_part # if in non-RD part
-	@part_content.push(line)
-      else
-	@in_part = part if @tree.filter[part] # if filter exists
-#	p "BEGIN_PART: #{@in_part}" # DEBUG
-      end
-    # non-RD part end
-    when /^=end/
-      if @in_part # if in non-RD part
-#	p "END_PART: #{@in_part}" # DEBUG
-	# make Part-in object
-	part = RD::Part.new(@part_content.join(""), @tree, "r")
-	@part_content.clear
-	# call filter, part_out is output(Part object)
-	part_out = @tree.filter[@in_part].call(part)
-	
-	if @tree.filter[@in_part].mode == :rd # if output is RD formated
-	  subtree = parse_subtree(part_out.to_a)
-	else # if output is target formated
-	  basename = TMPFILE.join('.')
-	  TMPFILE[-1] += 1
-	  tmpfile = open(@tree.tmp_dir + "/" + basename + ".#{@in_part}", "w")
-	  tmpfile.print(part_out)
-	  tmpfile.close
-	  subtree = parse_subtree(["=begin\n", "<<< #{basename}\n", "=end\n"])
-	end
-	@in_part = nil
-	return [:SUBTREE, subtree]
-      end
-    else
-      if @in_part # if in non-RD part
-	@part_content.push(line)
-      end
-    end
-  end
-
-  @current_indent = @indent_stack.join("")
-  line = @src[@i]
-  case line
-  when false
-    if_current_indent_equal("") do
-      [false, false]
-    end
-  when /^=end/
-    if_current_indent_equal("") do
-      @in_part = nil
-      [:WHITELINE, "=end"] # MUST CHANGE??
-    end
-  when /^\s*$/
-    @i += 1 # next line
-    return [:WHITELINE, ':WHITELINE']
-  when /^\#/  # comment line
-    @i += 1 # next line
-    self.next_token()
-  when /^(={1,4})(?!=)\s*(?=\S)/, /^(\+{1,2})(?!\+)\s*(?=\S)/
-    rest = $'                    # '
-    rest.strip!
-    mark = $1
-    if_current_indent_equal("") do
-      return [:HEADLINE, [Headline.mark_to_level(mark), rest]]
-    end
-  when /^<<<\s*(\S+)/
-    file = $1
-    if_current_indent_equal("") do
-      suffix = file[-3 .. -1] 
-      if suffix == ".rd" or suffix == ".rb"
-	subtree = parse_subtree(get_included(file))
-	[:SUBTREE, subtree]
-      else
-	[:INCLUDE, file]
-      end
-    end
-  when /^(\s*)\*(\s*)/
-    rest = $'                   # '
-    newIndent = $2
-    if_current_indent_equal($1) do
-      if @in_verbatim
-	[:STRINGLINE, line]
-      else
-	@indent_stack.push("\s" << newIndent)
-	[:ITEMLISTLINE, rest]
-      end
-    end
-  when /^(\s*)(\(\d+\))(\s*)/
-    rest = $'                     # '
-    mark = $2
-    newIndent = $3
-    if_current_indent_equal($1) do
-      if @in_verbatim
-	[:STRINGLINE, line]
-      else
-	@indent_stack.push("\s" * mark.size << newIndent)
-	[:ENUMLISTLINE, rest]
-      end
-    end
-  when /^(\s*):(\s*)/
-    rest = $'                    # '
-    newIndent = $2
-    if_current_indent_equal($1) do
-      if @in_verbatim
-	[:STRINGLINE, line]
-      else
-	@indent_stack.push("\s" <<$2)
-	[:DESCLISTLINE, rest]
-      end
-    end
-  when /^(\s*)---(?!-|\s*$)/
-    indent = $1
-    rest = $'
-    /\s*/ === rest
-    term = $'
-    new_indent = $&
-    if_current_indent_equal(indent) do
-      if @in_verbatim
-	[:STRINGLINE, line]
-      else
-	@indent_stack.push("\s\s\s" + new_indent)
-	[:METHODLISTLINE, term]
-      end
-    end
-  when /^(\s*)/
-    if_current_indent_equal($1) do
-      [:STRINGLINE, line]
-    end
-  else
-    raise "[BUG] parsing error may occured."
-  end
-end
-
-=begin private
-  --- RDParser#if_current_indent_equal(indent)
-        if (({@current_indent == ((|indent|))})) then yield block, otherwise
-        process indentation.
-=end
-# always @current_indent = @indent_stack.join("") 
-def if_current_indent_equal(indent)
-  indent = indent.sub(/\t/, "\s" * 8)
-  if @current_indent == indent
-    @i += 1 # next line
-    yield
-  elsif indent.index(@current_indent) == 0
-    @indent_stack.push(indent[@current_indent.size .. -1])
-    [:INDENT, ":INDENT"]
-  else
-    @indent_stack.pop
-    [:DEDENT, ":DEDENT"]
-  end
-end
-private :if_current_indent_equal
-
-def cut_off(src)
-  ret = []
-  whiteline_buf = []
-  line = src.shift
-  /^\s*/ =~ line
-  indent = Regexp.quote($&)
-  ret.push($')                 # '
-  while line = src.shift
-    if /^(\s*)$/ =~ line
-      whiteline_buf.push(line)
-    elsif /^#{indent}/ =~ line
-      unless whiteline_buf.empty?
-	ret.concat(whiteline_buf)
-	whiteline_buf.clear
-      end
-      ret.push($')            # '
-    else
-      raise "[BUG]: probably Parser Error while cutting off.\n"
-    end
-  end
-  ret
-end
-private :cut_off
-
-def set_term_to_element(parent, term)
-#  parent.set_term_under_document_struct(term, @tree.document_struct)
-  parent.set_term_without_document_struct(term)
-end
-private :set_term_to_element
-
-def on_error( et, ev, _values )
-  line = @src[@i]
-  prv, cur, nxt = format_line_num(@i, @i+1, @i+2)
-  
-  raise ParseError, <<Msg
-
-RD syntax error: line #{@i+1}:
-  #{prv}  |#{@src[@i-1].chomp}
-  #{cur}=>|#{@src[@i].chomp}
-  #{nxt}  |#{@src[@i+1].chomp}
-
-Msg
-end
-
-def line_index
-  @i
-end
-
-def parse_subtree(src)
-  @subparser = RD::RDParser.new() unless @subparser
-  
-  @subparser.parse(src, @tree)
-end
-private :parse_subtree
-
-def get_included(file)
-  included = ""
-  @tree.include_path.each do |dir|
-    file_name = dir + "/" + file
-    if test(?e, file_name)
-      included = IO.readlines(file_name)
-      break
-    end
-  end
-  included
-end
-private :get_included
-
-def format_line_num(*args)
-  width = args.collect{|i| i.to_s.length }.max
-  args.collect{|i| sprintf("%#{width}d", i) }
-end
-private :format_line_num
-
-..end lib/rd/rdblockparser.ry modeval..idc4b57748f0
-
-##### racc 1.4.4 generates ###
-
-racc_reduce_table = [
- 0, 0, :racc_error,
- 1, 15, :_reduce_1,
- 0, 15, :_reduce_2,
- 2, 16, :_reduce_3,
- 1, 16, :_reduce_none,
- 1, 17, :_reduce_5,
- 1, 17, :_reduce_6,
- 1, 17, :_reduce_none,
- 1, 17, :_reduce_8,
- 1, 17, :_reduce_9,
- 1, 17, :_reduce_10,
- 1, 17, :_reduce_11,
- 1, 21, :_reduce_12,
- 1, 22, :_reduce_13,
- 1, 18, :_reduce_14,
- 2, 23, :_reduce_15,
- 1, 23, :_reduce_16,
- 3, 19, :_reduce_17,
- 1, 25, :_reduce_18,
- 2, 24, :_reduce_19,
- 4, 24, :_reduce_20,
- 2, 24, :_reduce_21,
- 1, 24, :_reduce_22,
- 1, 26, :_reduce_none,
- 1, 26, :_reduce_none,
- 1, 26, :_reduce_none,
- 1, 26, :_reduce_none,
- 1, 20, :_reduce_none,
- 3, 20, :_reduce_28,
- 4, 20, :_reduce_29,
- 2, 31, :_reduce_30,
- 1, 31, :_reduce_31,
- 1, 27, :_reduce_32,
- 2, 32, :_reduce_33,
- 1, 32, :_reduce_34,
- 3, 33, :_reduce_35,
- 1, 28, :_reduce_36,
- 2, 36, :_reduce_37,
- 1, 36, :_reduce_38,
- 3, 37, :_reduce_39,
- 1, 29, :_reduce_40,
- 2, 39, :_reduce_41,
- 1, 39, :_reduce_42,
- 3, 40, :_reduce_43,
- 1, 30, :_reduce_44,
- 2, 42, :_reduce_45,
- 1, 42, :_reduce_46,
- 3, 43, :_reduce_47,
- 3, 41, :_reduce_48,
- 2, 41, :_reduce_49,
- 4, 41, :_reduce_50,
- 1, 41, :_reduce_51,
- 2, 45, :_reduce_52,
- 1, 45, :_reduce_none,
- 1, 46, :_reduce_54,
- 1, 46, :_reduce_55,
- 1, 46, :_reduce_none,
- 1, 46, :_reduce_57,
- 1, 44, :_reduce_none,
- 0, 44, :_reduce_none,
- 2, 47, :_reduce_none,
- 1, 47, :_reduce_none,
- 2, 34, :_reduce_62,
- 1, 34, :_reduce_63,
- 2, 38, :_reduce_64,
- 1, 38, :_reduce_65,
- 2, 35, :_reduce_66,
- 2, 35, :_reduce_67,
- 2, 35, :_reduce_68,
- 1, 35, :_reduce_69,
- 1, 35, :_reduce_none,
- 1, 35, :_reduce_71,
- 0, 35, :_reduce_72 ]
-
-racc_reduce_n = 73
-
-racc_shift_n = 89
-
-racc_action_table = [
-     7,     9,    13,    17,    23,    63,    80,    43,    43,     5,
-    88,     7,     9,    13,    17,    41,     7,     9,    13,    17,
-    41,    72,     7,     9,    13,    17,    23,    63,    75,    50,
-    50,     5,     7,     9,    13,    17,    23,    63,    79,    50,
-    81,     5,     7,     9,    13,    17,    23,    63,    47,    23,
-     9,     5,     7,     9,    13,    17,    23,    63,    41,    13,
-    84,     5,     7,     9,    13,    17,    23,    63,    23,    43,
-    17,     5,     7,     9,    13,    17,    23,    26,    30,    34,
-     2,     5,     7,     9,    13,    17,    59,    37,     7,   nil,
-   nil,     5,     7,     9,    13,    17,   nil,    37,   nil,   nil,
-   nil,     5,     7,     9,    13,    17,    23,    26,    30,    34,
-     2,     5,     7,     9,    13,    17,    23,    63,   nil,   nil,
-   nil,     5,     7,     9,    13,    17,    23,    63,   nil,   nil,
-   nil,     5,     7,     9,    13,    17,    23,    63,   nil,   nil,
-   nil,     5,     7,     9,    13,    17,    23,    63,    70,    71,
-   nil,     5,    23,    68,    69,    70,    71,    76,    70,    71,
-    68,    87,   nil,    68,     7,     9,    13,    17 ]
-
-racc_action_check = [
-    85,    85,    85,    85,    85,    85,    52,    44,    46,    85,
-    85,    42,    42,    42,    42,    42,     5,     5,     5,     5,
-     5,    42,    60,    60,    60,    60,    60,    60,    47,    17,
-    50,    60,    77,    77,    77,    77,    77,    77,    51,    13,
-    54,    77,    76,    76,    76,    76,    76,    76,    12,     9,
-     8,    76,    67,    67,    67,    67,    67,    67,    68,    18,
-    74,    67,    66,    66,    66,    66,    66,    66,     7,     6,
-    28,    66,     0,     0,     0,     0,     0,     0,     0,     0,
-     0,     0,     4,     4,     4,     4,    36,     4,    33,   nil,
-   nil,     4,    14,    14,    14,    14,   nil,    14,   nil,   nil,
-   nil,    14,    16,    16,    16,    16,    16,    16,    16,    16,
-    16,    16,    37,    37,    37,    37,    37,    37,   nil,   nil,
-   nil,    37,    39,    39,    39,    39,    39,    39,   nil,   nil,
-   nil,    39,    38,    38,    38,    38,    38,    38,   nil,   nil,
-   nil,    38,    86,    86,    86,    86,    86,    86,    40,    40,
-   nil,    86,    48,    40,    40,    83,    83,    48,    73,    73,
-    83,    83,   nil,    73,    29,    29,    29,    29 ]
-
-racc_action_pointer = [
-    69,   nil,   nil,   nil,    79,    13,    62,    61,    46,    42,
-   nil,   nil,    48,    31,    89,   nil,    99,    21,    54,   nil,
-   nil,   nil,   nil,   nil,   nil,   nil,   nil,   nil,    64,   161,
-   nil,   nil,   nil,    85,   nil,   nil,    73,   109,   129,   119,
-   141,   nil,     8,   nil,     0,   nil,     1,    28,   145,   nil,
-    22,    25,    -7,   nil,    27,   nil,   nil,   nil,   nil,   nil,
-    19,   nil,   nil,   nil,   nil,   nil,    59,    49,    51,   nil,
-   nil,   nil,   nil,   151,    47,   nil,    39,    29,   nil,   nil,
-   nil,   nil,   nil,   148,   nil,    -3,   139,   nil,   nil ]
-
-racc_action_default = [
-    -2,   -34,   -13,    -9,   -72,   -73,   -14,   -63,   -36,   -65,
-   -38,   -31,   -73,   -59,   -72,   -23,    -1,   -59,   -40,   -24,
-    -4,   -42,   -25,   -16,    -5,   -26,   -10,    -6,   -44,   -27,
-   -11,    -7,   -46,   -32,   -12,    -8,   -73,   -71,   -69,   -70,
-   -73,   -22,   -73,   -15,   -62,   -37,   -64,   -73,   -51,   -58,
-   -61,   -73,   -73,    -3,   -73,   -41,   -45,   -30,   -33,   -35,
-   -68,   -53,   -54,   -57,   -55,   -56,   -66,   -67,   -73,   -17,
-   -19,   -21,   -28,   -18,   -73,    89,   -73,   -49,   -60,   -43,
-   -39,   -47,   -52,   -73,   -29,   -73,   -48,   -20,   -50 ]
-
-racc_goto_table = [
-    40,    24,    60,    66,    67,    82,    27,    20,    57,    36,
-    38,    82,    82,    44,    51,    46,    42,    24,    54,    52,
-    38,    57,    27,    53,    31,    58,    45,    55,    39,    74,
-    82,    82,    56,    12,    16,    78,   nil,    73,    39,   nil,
-    31,    85,    86,   nil,   nil,   nil,   nil,   nil,   nil,    77,
-   nil,   nil,   nil,   nil,   nil,   nil,   nil,   nil,   nil,   nil,
-   nil,   nil,   nil,    83 ]
-
-racc_goto_check = [
-    10,     4,    31,    31,    31,    32,     5,     3,    12,    21,
-     5,    32,    32,     9,    27,     9,    17,     4,    27,    21,
-     5,    12,     5,     3,     6,    19,    23,    26,     6,    11,
-    32,    32,    29,     1,     2,    33,   nil,    10,     6,   nil,
-     6,    31,    31,   nil,   nil,   nil,   nil,   nil,   nil,     4,
-   nil,   nil,   nil,   nil,   nil,   nil,   nil,   nil,   nil,   nil,
-   nil,   nil,   nil,    10 ]
-
-racc_goto_pointer = [
-   nil,    33,    34,     7,     1,     6,    24,   nil,   nil,     6,
-    -5,   -13,   -21,   nil,   nil,   nil,   nil,    11,   nil,    -8,
-   nil,     5,   nil,    18,   nil,   nil,     9,     1,   nil,     4,
-   nil,   -35,   -55,   -15 ]
-
-racc_goto_default = [
-   nil,   nil,   nil,   nil,    62,    64,    65,    35,     3,     6,
-   nil,   nil,    11,    15,    19,    22,    25,    29,    33,     1,
-     4,   nil,     8,    10,    14,    18,    21,   nil,    28,    32,
-    48,   nil,    61,    49 ]
-
-racc_token_table = {
- false => 0,
- Object.new => 1,
- :DUMMY => 2,
- :ITEMLISTLINE => 3,
- :ENUMLISTLINE => 4,
- :DESCLISTLINE => 5,
- :METHODLISTLINE => 6,
- :STRINGLINE => 7,
- :WHITELINE => 8,
- :SUBTREE => 9,
- :HEADLINE => 10,
- :INCLUDE => 11,
- :INDENT => 12,
- :DEDENT => 13 }
-
-racc_use_result_var = true
-
-racc_nt_base = 14
-
-Racc_arg = [
- racc_action_table,
- racc_action_check,
- racc_action_default,
- racc_action_pointer,
- racc_goto_table,
- racc_goto_check,
- racc_goto_default,
- racc_goto_pointer,
- racc_nt_base,
- racc_reduce_table,
- racc_token_table,
- racc_shift_n,
- racc_reduce_n,
- racc_use_result_var ]
-
-Racc_token_to_s_table = [
-'$end',
-'error',
-'DUMMY',
-'ITEMLISTLINE',
-'ENUMLISTLINE',
-'DESCLISTLINE',
-'METHODLISTLINE',
-'STRINGLINE',
-'WHITELINE',
-'SUBTREE',
-'HEADLINE',
-'INCLUDE',
-'INDENT',
-'DEDENT',
-'$start',
-'document',
-'blocks',
-'block',
-'textblock',
-'verbatim',
-'lists',
-'headline',
-'include',
-'textblockcontent',
-'verbatimcontent',
-'verbatim_after_lists',
-'list',
-'itemlist',
-'enumlist',
-'desclist',
-'methodlist',
-'lists2',
-'itemlistitems',
-'itemlistitem',
-'first_textblock_in_itemlist',
-'other_blocks_in_list',
-'enumlistitems',
-'enumlistitem',
-'first_textblock_in_enumlist',
-'desclistitems',
-'desclistitem',
-'description_part',
-'methodlistitems',
-'methodlistitem',
-'whitelines',
-'blocks_in_list',
-'block_in_list',
-'whitelines2']
-
-Racc_debug_parser = false
-
-##### racc system variables end #####
-
- # reduce 0 omitted
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 14
-  def _reduce_1( val, _values, result )
- result = DocumentElement.new
-		       add_children_to_element(result, *val[0])
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 19
-  def _reduce_2( val, _values, result )
-                         raise ParseError,
-                         "Error: file empty."
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 20
-  def _reduce_3( val, _values, result )
- result.concat(val[1])
-   result
-  end
-.,.,
-
- # reduce 4 omitted
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 23
-  def _reduce_5( val, _values, result )
- result = val
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 24
-  def _reduce_6( val, _values, result )
- result = val
-   result
-  end
-.,.,
-
- # reduce 7 omitted
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 26
-  def _reduce_8( val, _values, result )
- result = val
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 27
-  def _reduce_9( val, _values, result )
- result = val
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 28
-  def _reduce_10( val, _values, result )
- result = []
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 29
-  def _reduce_11( val, _values, result )
- result = val[0].blocks
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 36
-  def _reduce_12( val, _values, result )
- # val[0] is like [level, title]
-			  title = @inline_parser.parse(val[0][1])
-			  result = Headline.new(val[0][0])
-			  add_children_to_element(result, *title)
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 38
-  def _reduce_13( val, _values, result )
- result = Include.new(val[0])
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 47
-  def _reduce_14( val, _values, result )
- # val[0] is Array of String
-			  content = cut_off(val[0]).join("")
-			  contents = @inline_parser.parse(content)
-			  result = TextBlock.new()
-			  add_children_to_element(result, *contents)
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 50
-  def _reduce_15( val, _values, result )
- result.push(val[1])
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 51
-  def _reduce_16( val, _values, result )
- result = val
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 59
-  def _reduce_17( val, _values, result )
- # val[1] is Array of String
-			  content = cut_off(val[1])
-			  result = Verbatim.new(content)
-			  # imform to lexer.
-			  @in_verbatim = false
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 66
-  def _reduce_18( val, _values, result )
- # val[0] is Array of String
-			  content = cut_off(val[0])
-			  result = Verbatim.new(content)
-			  # imform to lexer.
-			  @in_verbatim = false
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 69
-  def _reduce_19( val, _values, result )
- result.push(val[1])
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 71
-  def _reduce_20( val, _values, result )
- result.concat(val[2])
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 73
-  def _reduce_21( val, _values, result )
- result.push("\n")
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 76
-  def _reduce_22( val, _values, result )
- result = val
-					# imform to lexer.
-					@in_verbatim = true
-   result
-  end
-.,.,
-
- # reduce 23 omitted
-
- # reduce 24 omitted
-
- # reduce 25 omitted
-
- # reduce 26 omitted
-
- # reduce 27 omitted
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 85
-  def _reduce_28( val, _values, result )
- result = val[1]
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 87
-  def _reduce_29( val, _values, result )
- result = val[1].push(val[2])
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 90
-  def _reduce_30( val, _values, result )
- result.push(val[1])
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 91
-  def _reduce_31( val, _values, result )
- result = val
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 98
-  def _reduce_32( val, _values, result )
-                          result = ItemList.new
-			  add_children_to_element(result, *val[0])
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 100
-  def _reduce_33( val, _values, result )
- result.push(val[1])
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 101
-  def _reduce_34( val, _values, result )
- result = val
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 108
-  def _reduce_35( val, _values, result )
-                  result = ItemListItem.new
-		  add_children_to_element(result, val[0], *val[1])
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 114
-  def _reduce_36( val, _values, result )
-                          result = EnumList.new
-			  add_children_to_element(result, *val[0])
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 116
-  def _reduce_37( val, _values, result )
- result.push(val[1])
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 117
-  def _reduce_38( val, _values, result )
- result = val
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 124
-  def _reduce_39( val, _values, result )
-                  result = EnumListItem.new
-		  add_children_to_element(result, val[0], *val[1])
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 130
-  def _reduce_40( val, _values, result )
-                          result = DescList.new
-			  add_children_to_element(result, *val[0])
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 133
-  def _reduce_41( val, _values, result )
-			result.push(val[1])
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 133
-  def _reduce_42( val, _values, result )
- result = val
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 145
-  def _reduce_43( val, _values, result )
-                          term = DescListItem::Term.new
-                          term_contents = @inline_parser.parse(val[0].strip)
-			  add_children_to_element(term, *term_contents)
-
-			  result = DescListItem.new
-                          set_term_to_element(result, term)
-		          add_children_to_element(result, *val[1])
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 151
-  def _reduce_44( val, _values, result )
-                          result = MethodList.new
-			  add_children_to_element(result, *val[0])
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 153
-  def _reduce_45( val, _values, result )
- result.push(val[1])
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 154
-  def _reduce_46( val, _values, result )
- result = val
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 163
-  def _reduce_47( val, _values, result )
-			  term = MethodListItem::Term.new(val[0].strip)
-			  result = MethodListItem.new
-                          set_term_to_element(result, term)
-			  add_children_to_element(result, *val[1])
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 166
-  def _reduce_48( val, _values, result )
- result = [val[1]].concat(val[2])
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 167
-  def _reduce_49( val, _values, result )
- result = [val[1]]
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 169
-  def _reduce_50( val, _values, result )
- result = val[2]
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 170
-  def _reduce_51( val, _values, result )
- result = []
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 173
-  def _reduce_52( val, _values, result )
- result.concat(val[1])
-   result
-  end
-.,.,
-
- # reduce 53 omitted
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 176
-  def _reduce_54( val, _values, result )
- result = val
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 177
-  def _reduce_55( val, _values, result )
- result = val
-   result
-  end
-.,.,
-
- # reduce 56 omitted
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 179
-  def _reduce_57( val, _values, result )
- result = []
-   result
-  end
-.,.,
-
- # reduce 58 omitted
-
- # reduce 59 omitted
-
- # reduce 60 omitted
-
- # reduce 61 omitted
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 194
-  def _reduce_62( val, _values, result )
- content = cut_off([val[0]].concat(val[1])).join("")
-		  contents = @inline_parser.parse(content)
-                  result = TextBlock.new()
-		  add_children_to_element(result, *contents)
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 201
-  def _reduce_63( val, _values, result )
- content = cut_off([val[0]]).join("")
-		  contents = @inline_parser.parse(content)
-		  result = TextBlock.new()
-		  add_children_to_element(result, *contents)
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 209
-  def _reduce_64( val, _values, result )
- content = cut_off([val[0]].concat(val[1])).join("")
-		  contents = @inline_parser.parse(content)
-	          result = TextBlock.new()
-		  add_children_to_element(result, *contents)
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 216
-  def _reduce_65( val, _values, result )
- content = cut_off([val[0]]).join("")
-		  contents = @inline_parser.parse(content)
-	          result = TextBlock.new()
-		  add_children_to_element(result, *contents)
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 219
-  def _reduce_66( val, _values, result )
- result = [val[0]].concat(val[1])
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 220
-  def _reduce_67( val, _values, result )
- result.concat(val[1])
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 221
-  def _reduce_68( val, _values, result )
- result = val[1]
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 222
-  def _reduce_69( val, _values, result )
- result = val
-   result
-  end
-.,.,
-
- # reduce 70 omitted
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 224
-  def _reduce_71( val, _values, result )
- result = []
-   result
-  end
-.,.,
-
-module_eval <<'.,.,', 'lib/rd/rdblockparser.ry', 225
-  def _reduce_72( val, _values, result )
- result = []
-   result
-  end
-.,.,
-
- def _reduce_none( val, _values, result )
-  result
- end
-
-end   # class RDParser
-
-end # end of module RD 

lib/rd/rdinlineparser.tab.rb

-#
-# DO NOT MODIFY!!!!
-# This file is automatically generated by racc 1.4.4
-# from racc grammer file "lib/rd/rdinlineparser.ry".
-#
-
-require 'racc/parser'
-
-
-
-require "rd/parser-util"
-require "forwardable"
-require "strscan"
-
-module RD
-
-class RDInlineParser < Racc::Parser
-
-module_eval <<'..end lib/rd/rdinlineparser.ry modeval..id193b0f608d', 'lib/rd/rdinlineparser.ry', 292
-include ParserUtility
-extend Forwardable
-
-EM_OPEN = '((*'
-EM_OPEN_RE = /\A#{Regexp.quote(EM_OPEN)}/
-EM_CLOSE = '*))'
-EM_CLOSE_RE = /\A#{Regexp.quote(EM_CLOSE)}/
-CODE_OPEN = '(({'
-CODE_OPEN_RE = /\A#{Regexp.quote(CODE_OPEN)}/