Skip to main content

oak_d2/
lib.rs

1#![feature(new_range_api)]
2#![warn(missing_docs)]
3//! D2 support for the Oak language framework.
4
5/// Abstract Syntax Tree (AST) definitions for D2.
6pub mod ast;
7/// Builder for the D2 AST.
8pub mod builder;
9/// Language configuration for D2.
10pub mod language;
11/// Lexer implementation for D2.
12pub mod lexer;
13/// Parser implementation for D2.
14pub mod parser;
15
16pub use crate::{
17    ast::D2Root,
18    builder::D2Builder,
19    language::D2Language,
20    lexer::{D2Lexer, token_type::D2TokenType},
21    parser::{D2Parser, element_type::D2ElementType},
22};