start argus-parser
This commit is contained in:
parent
ac5867e7b0
commit
009a0ac18a
3 changed files with 27 additions and 1 deletions
|
|
@ -3,8 +3,9 @@ members = [
|
||||||
"argus",
|
"argus",
|
||||||
"argus-core",
|
"argus-core",
|
||||||
"argus-semantics",
|
"argus-semantics",
|
||||||
"argus-automata",
|
|
||||||
"argus-derive",
|
"argus-derive",
|
||||||
|
"argus-parser",
|
||||||
|
"argus-automata",
|
||||||
"pyargus",
|
"pyargus",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
9
argus-parser/Cargo.toml
Normal file
9
argus-parser/Cargo.toml
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
[package]
|
||||||
|
name = "argus-parser"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
argus-core = { version = "0.1.0", path = "../argus-core" }
|
||||||
|
ariadne = "0.3.0"
|
||||||
|
chumsky = "0.9.2"
|
||||||
16
argus-parser/src/lib.rs
Normal file
16
argus-parser/src/lib.rs
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
//! # Argus logic syntax
|
||||||
|
|
||||||
|
pub fn add(left: usize, right: usize) -> usize {
|
||||||
|
left + right
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
use super::*;
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn it_works() {
|
||||||
|
let result = add(2, 2);
|
||||||
|
assert_eq!(result, 4);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue