From 1c7574150e0cf8c0c3d2525e89638fd9617d27db Mon Sep 17 00:00:00 2001 From: greg Date: Fri, 23 Mar 2018 18:56:09 -0700 Subject: [PATCH] Add version string --- schala-repl/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/schala-repl/src/lib.rs b/schala-repl/src/lib.rs index 3b4e646..948ff83 100644 --- a/schala-repl/src/lib.rs +++ b/schala-repl/src/lib.rs @@ -31,6 +31,8 @@ mod language; mod webapp; pub mod llvm_wrap; +const VERSION_STRING: &'static str = "0.1.0"; + include!(concat!(env!("OUT_DIR"), "/static.rs")); pub use language::{LLVMCodeString, ProgrammingLanguageInterface, EvalOptions, ExecutionMethod, TraceArtifact, LanguageOutput, FinishedComputation, UnfinishedComputation}; @@ -167,7 +169,7 @@ impl Repl { } fn run(&mut self) { - println!("MetaInterpreter v 0.05"); + println!("Schala MetaInterpreter version {}", VERSION_STRING); self.console.get_history().load(".schala_history").unwrap_or(());