Skip to main content

oak_bash/ast/
mod.rs

1#[derive(Debug, Clone)]
2pub struct BashRoot {
3    pub elements: Vec<Element>,
4}
5
6#[derive(Debug, Clone)]
7pub enum Element {
8    Command(String),
9    Variable(String),
10    String(String),
11    Comment(String),
12    Operator(String),
13    Keyword(String),
14    Text(String),
15    Whitespace(String),
16    Newline,
17}