1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#![allow(clippy::needless_return)]
#![feature(box_syntax)]
#![feature(map_first_last)]
#![feature(arbitrary_enum_discriminant)]
// #![deny(missing_docs)]

//! # Notedown AST

pub mod command;
mod errors;
#[cfg(feature = "lsp")]
mod language_server;
pub mod nodes;
pub mod traits;
pub mod value;

pub use self::{
    command::Command,
    errors::{DiagnosticLevel, NoteError, NoteErrorKind, Result},
    nodes::{ASTKind, ASTNode, ASTNodes},
    value::Value,
};

pub mod utils {
    //! Auxiliary tools and related libraries
    pub use indexmap;
    pub use itertools;
    pub use text_utils;
    #[cfg(feature = "lsp")]
    mod lsp_wrap {
        pub use yggdrasil_shared::records::{lsp_types, DashMap, DashSet, LSPPosition, LSPRange, Rope, TextIndex, Url};
    }
    #[cfg(feature = "lsp")]
    pub use lsp_wrap::*;
}