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

+12
View File
@@ -0,0 +1,12 @@
use testparsermyp1 as m1;
use testparsermyp2 as m2;
fn main() {
let mut context1 = m1::myp1_context_new(b"a\n1");
assert_eq!(m1::P_SUCCESS, m1::myp1_parse(&mut context1));
m1::myp1_context_delete(context1);
let mut context2 = m2::myp2_context_new(b"bcb");
assert_eq!(m2::P_SUCCESS, m2::myp2_parse(&mut context2));
m2::myp2_context_delete(context2);
}