summaryrefslogtreecommitdiff
path: root/src/bin/using_grammar.rs
diff options
context:
space:
mode:
authordfhoughton <dfhoughton@gmail.com>2019-09-15 18:40:00 -0400
committerdfhoughton <dfhoughton@gmail.com>2019-09-15 18:40:00 -0400
commit43c5248eb9285523ac712df7820a4b7205640776 (patch)
tree2cb873cbe256d7ece8bfe3aa811027ef02f2af24 /src/bin/using_grammar.rs
parentf9ce85e4497669ceb235865dfe6daff9e3cf5729 (diff)
downloadtwo-timer-43c5248eb9285523ac712df7820a4b7205640776.zip
user serialized matcher to speed things up
Diffstat (limited to 'src/bin/using_grammar.rs')
-rw-r--r--src/bin/using_grammar.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bin/using_grammar.rs b/src/bin/using_grammar.rs
new file mode 100644
index 0000000..a153d94
--- /dev/null
+++ b/src/bin/using_grammar.rs
@@ -0,0 +1,6 @@
+extern crate two_timer;
+
+// for timing the cost savings of using a serialized matcher
+fn main() {
+ two_timer::GRAMMAR.matcher().unwrap().parse("yesterday");
+} \ No newline at end of file