oak_d2/parser/mod.rs
1pub mod element_type;
2
3use crate::{ast::D2Root, lexer::D2Lexer};
4use core::range::Range;
5
6pub struct D2Parser<'a> {
7 _lexer: D2Lexer<'a>,
8}
9
10impl<'a> D2Parser<'a> {
11 pub fn new(input: &'a str) -> Self {
12 Self { _lexer: D2Lexer::new(input) }
13 }
14
15 pub fn parse(&mut self) -> D2Root {
16 D2Root { elements: Vec::new(), span: Range { start: 0, end: 0 } }
17 }
18}