type

Parser

src @Js
const class Parser : Obj

Parse input text into a tree of nodes.

The parser is thread-safe meaning the same parser can be shared by multiple actors.

constructors

make

Get a parser with all the default configuration

methods

builder

Obtain a builder for configuring the parser

parse

Convenience for parseStream(text.in)

parseStream

Parse the contents of the input stream into a tree of nodes.

Slot Details

builder

src static ParserBuilder builder()

Obtain a builder for configuring the parser

make

src static new make()

Get a parser with all the default configuration

parse

src Node parse(Str text)

Convenience for parseStream(text.in)

parseStream

src Node parseStream(InStream in)

Parse the contents of the input stream into a tree of nodes.

doc := Parser().parse("Hello *Markdown*!")