Parser<Tree>: ((document, file) => Tree)

A parser handles the parsing of text to a syntax tree.

It is used in the parse phase and is called with a string and VFile of the document to parse. It must return the syntax tree representation of the given file (Node).

Type Parameters

Type declaration

    • (document, file): Tree
    • Parameters

      • document: string
      • file: VFile

      Returns Tree