summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2018-05-25 16:23:27 +0100
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2018-05-25 16:23:27 +0100
commitbeed129c52f029dd94038a3faf4a5fc69e69e3b7 (patch)
treec01d4a3a0bbfcf09c62fd6a71043171596a58ba0
parentf18a7d5e209ad9c4f1b74b3471dd26e9481fffd1 (diff)
downloadcanopied-beed129c52f029dd94038a3faf4a5fc69e69e3b7.tar.bz2
Useful to quieten vscode for a bit
-rw-r--r--src/main.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 76aea88..45c55ac 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -59,6 +59,14 @@ fn packet_print(id: u16, bytes: &[u8]) -> String {
fn main() {
env_logger::init();
+ {
+ // Basic test for parser etc. just to quieten vscode for now.
+
+ let expr = exprparser::parse_expression("14*9").expect("Should parse");
+ let symb = HashMap::new();
+ let _res = qexpr::evaluate(&expr, &symb);
+ }
+
let raw_defs = definitions::RawECUEntry::get_all();
info!("Read {} raw ecu entries", raw_defs.len());