Add Rust target

This commit is contained in:
josh committed 2026-08-11 22:46:04 -04:00
1 parent 5fc712c6ee
commit 89f1f84857
64 files changed
+3441 -27

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
use testparser::*;
fn main() {
let mut context = p_context_new(b"\na\nb\nc");
assert_eq!(P_SUCCESS, p_parse(&mut context));
{
let start = p_result(&context);
assert_eq!(TOKEN_a, start.first().pToken().token());
assert_eq!(TOKEN_b, start.second().pToken().token());
assert_eq!(TOKEN_c, start.third().pToken().token());
}
p_context_delete(context);
}