Add version string

This commit is contained in:
greg 2018-03-23 18:56:09 -07:00
parent 7592209cdb
commit 898b185509

View File

@ -31,6 +31,8 @@ mod language;
mod webapp; mod webapp;
pub mod llvm_wrap; pub mod llvm_wrap;
const VERSION_STRING: &'static str = "0.1.0";
include!(concat!(env!("OUT_DIR"), "/static.rs")); include!(concat!(env!("OUT_DIR"), "/static.rs"));
pub use language::{LLVMCodeString, ProgrammingLanguageInterface, EvalOptions, ExecutionMethod, TraceArtifact, LanguageOutput, FinishedComputation, UnfinishedComputation}; pub use language::{LLVMCodeString, ProgrammingLanguageInterface, EvalOptions, ExecutionMethod, TraceArtifact, LanguageOutput, FinishedComputation, UnfinishedComputation};
@ -167,7 +169,7 @@ impl Repl {
} }
fn run(&mut self) { fn run(&mut self) {
println!("MetaInterpreter v 0.05"); println!("Schala MetaInterpreter version {}", VERSION_STRING);
self.console.get_history().load(".schala_history").unwrap_or(()); self.console.get_history().load(".schala_history").unwrap_or(());