oak_bash/ast/mod.rs
1pub type BashToken = crate::kind::BashSyntaxKind;
2
3#[derive(Debug, Clone)]
4pub struct BashRoot {
5 pub elements: Vec<Element>,
6}
7
8#[derive(Debug, Clone)]
9pub enum Element {
10 Command(String),
11 Variable(String),
12 String(String),
13 Comment(String),
14 Operator(String),
15 Keyword(String),
16 Text(String),
17 Whitespace(String),
18 Newline,
19}