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,19 @@
|
||||
use testparser::*;
|
||||
|
||||
fn main() {
|
||||
let mut c = p_context_new(b" Hello\n\n 4200\n");
|
||||
assert_eq!(P_SUCCESS, p_parse(&mut c));
|
||||
p_context_delete(c);
|
||||
|
||||
println!();
|
||||
|
||||
let mut c = p_context_new(b"\n tok2");
|
||||
assert_eq!(P_SUCCESS, p_parse(&mut c));
|
||||
p_context_delete(c);
|
||||
|
||||
println!();
|
||||
|
||||
let mut c = p_context_new(b" tok1");
|
||||
assert_eq!(P_SUCCESS, p_parse(&mut c));
|
||||
p_context_delete(c);
|
||||
}
|
||||
Reference in new issue
Block a user