Add Rust target
This commit is contained in:
1 parent
5fc712c6ee
commit
89f1f84857
64 files changed
+3441
-27
No files matched your search
@@ -0,0 +1,9 @@
|
||||
use testparser::*;
|
||||
|
||||
fn main() {
|
||||
let input = b"macro @m { 23 + 200 }\n66 + 100\n@m\n33 + 55\n@m\n";
|
||||
let mut c = p_context_new(input);
|
||||
assert_eq!(P_SUCCESS, p_parse(&mut c));
|
||||
assert_eq!(vec![166, 223, 88, 223], c.nums);
|
||||
p_context_delete(c);
|
||||
}
|
||||
Reference in new issue
Block a user