aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorMelody Horn / boringcactus <melody@boringcactus.com>2021-06-26 22:26:19 -0600
committerMelody Horn / boringcactus <melody@boringcactus.com>2021-06-26 22:26:19 -0600
commit8cb6fd9653e1733645ecb734f32c8306c01757ba (patch)
treed139be8955f223122d639f13edba9c609c8c6d03 /src/lib.rs
downloadcpp-parse-canon.tar.gz
cpp-parse-canon.zip
throw some things togetherHEADcanon
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
new file mode 100644
index 0000000..9a71f92
--- /dev/null
+++ b/src/lib.rs
@@ -0,0 +1,14 @@
+use pest::Parser;
+use pest_derive::Parser;
+
+#[derive(Parser)]
+#[grammar = "cpp.pest"]
+pub struct CPPParser;
+
+#[cfg(test)]
+mod tests {
+ #[test]
+ fn it_works() {
+ assert_eq!(2 + 2, 4);
+ }
+}