# RDoc::Markup::Parser - ri - phpman

= [**RDoc::Markup::Parser](https://www.chedong.com/phpMan.php/perldoc/RDoc%3A%3AMarkup%3A%3AParser/markdown) < Object**

------------------------------------------------------------------------
= **Includes:**
[RDoc::Text](https://www.chedong.com/phpMan.php/perldoc/RDoc%3A%3AText/markdown) (from gem rdoc-7.2.0)

(from gem rdoc-7.2.0)
------------------------------------------------------------------------
A recursive-descent parser for RDoc markup.

## The parser tokenizes an input string then parses the tokens into a
## Document. Documents can be converted into output formats by writing a
visitor like [RDoc::Markup::ToHTML](https://www.chedong.com/phpMan.php/perldoc/RDoc%3A%3AMarkup%3A%3AToHTML/markdown).

## The parser only handles the block-level constructs Paragraph, List,
## ListItem, Heading, Verbatim, BlankLine, Rule and BlockQuote. Inline
markup such as +blah+ is handled separately by
[RDoc::Markup::InlineParser](https://www.chedong.com/phpMan.php/perldoc/RDoc%3A%3AMarkup%3A%3AInlineParser/markdown).

## To see what markup the Parser implements read RDoc.  To see how to use
RDoc markup to format text in your program read [RDoc::Markup](https://www.chedong.com/phpMan.php/perldoc/RDoc%3A%3AMarkup/markdown).
------------------------------------------------------------------------
= **Constants:**

LIST_TOKENS:
### List token types


= **Class methods:**

  new
  parse
  tokenize

= **Instance methods:**

  build_heading
  build_list
  build_paragraph
  build_verbatim
  debug
  get
  parse
  peek_token
  setup_scanner
  skip
  tokenize
  tokens
  unget

= **Attributes:**

  attr_accessor debug
  attr_reader tokens

