oak-org-mode 0.0.11

Org-mode parser with support for Emacs org-mode syntax and features.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![doc = include_str!("readme.md")]
use crate::OrgModeLanguage;
use oak_core::tree::RedNode;

/// Org-mode AST root node.
pub struct OrgModeRoot<'a> {
    /// Corresponding red node.
    pub node: RedNode<'a, OrgModeLanguage>,
}

impl<'a> OrgModeRoot<'a> {
    /// Creates a new `OrgModeRoot`.
    pub fn new(node: RedNode<'a, OrgModeLanguage>) -> Self {
        Self { node }
    }
}