Skip to content

Commit

Permalink
Move to pest
Browse files Browse the repository at this point in the history
  • Loading branch information
VOID404 committed Jun 28, 2024
1 parent 40a8edc commit 262aef9
Show file tree
Hide file tree
Showing 5 changed files with 425 additions and 184 deletions.
235 changes: 227 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
nom = "7.1.3"
pest = "2.7.10"
pest_derive = "2.7.10"
regex = "1.10.5"
9 changes: 9 additions & 0 deletions src/ast.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#[derive(Debug)]
pub enum Term<'a> {
Var(&'a str, &'a str, &'a str),
Task {
name: &'a str,
deps: Vec<&'a str>,
body: Vec<&'a str>,
},
}
Loading

0 comments on commit 262aef9

Please sign in to comment.