aboutsummaryrefslogtreecommitdiffstats
path: root/src/parse.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse.rs')
-rw-r--r--src/parse.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/parse.rs b/src/parse.rs
index ec4be30..27b07de 100644
--- a/src/parse.rs
+++ b/src/parse.rs
@@ -1,23 +1,28 @@
+#[derive(Debug)]
pub enum Ast {
AssignVar(AssignVar),
Pipes(Pipes),
}
+#[derive(Debug)]
pub struct AssignVar {
pub to: String,
// TODO: body
}
+#[derive(Debug)]
pub struct Pipes {
pub cmds: Vec<Command>,
}
+#[derive(Debug)]
pub struct Command {
pub path: Vec<u8>,
pub args: Vec<Vec<u8>>,
}
-enum ParseError {
+#[derive(Debug)]
+pub enum ParseError {
/// "clean" EOF, i.e. not in the middle of something
Eof,