libMultiMarkdown7 7.0.0-alpha.1
Lightweight markup processor to produce HTML, LaTeX, and more.
Loading...
Searching...
No Matches
mmd_node Struct Reference

Nodes are used to build the AST during parsing. More...

#include <libMultiMarkdown.h>

Data Fields

unsigned char type
 type for this node
uint32_t hash
 hash for the node, useful when comparing two parse trees for similar branches
size_t start
 Starting offset (in bytes) in the source text for this node.
size_t len
 Byte length in the source text for this node.
struct mmd_nodenext
 Pointer to next node in the AST.
struct mmd_nodechild
 Pointer to first child node in the AST.
struct mmd_nodetail
 Pointer to last sibling node in the AST.
struct mmd_nodecontent
 If node was parsed into span-level content, place it here.

Detailed Description

Nodes are used to build the AST during parsing.

Definition at line 194 of file libMultiMarkdown.h.

Field Documentation

◆ child

struct mmd_node* mmd_node::child

Pointer to first child node in the AST.

Definition at line 202 of file libMultiMarkdown.h.

◆ content

struct mmd_node* mmd_node::content

If node was parsed into span-level content, place it here.

Definition at line 205 of file libMultiMarkdown.h.

◆ hash

uint32_t mmd_node::hash

hash for the node, useful when comparing two parse trees for similar branches

Definition at line 196 of file libMultiMarkdown.h.

◆ len

size_t mmd_node::len

Byte length in the source text for this node.

Definition at line 199 of file libMultiMarkdown.h.

◆ next

struct mmd_node* mmd_node::next

Pointer to next node in the AST.

Definition at line 201 of file libMultiMarkdown.h.

◆ start

size_t mmd_node::start

Starting offset (in bytes) in the source text for this node.

Definition at line 198 of file libMultiMarkdown.h.

◆ tail

struct mmd_node* mmd_node::tail

Pointer to last sibling node in the AST.

Definition at line 203 of file libMultiMarkdown.h.

◆ type

unsigned char mmd_node::type

type for this node

Definition at line 195 of file libMultiMarkdown.h.


The documentation for this struct was generated from the following file: