#![warn(missing_docs)]
#[cfg(target_arch = "wasm32")]
pub mod wasm;
pub mod builtins;
pub mod error;
pub mod eval;
pub mod exec;
pub mod interpreter;
pub mod program;
pub mod scope;
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
pub use error::{RunError, RunResult};
pub use interpreter::Interpreter;
pub use scope::Scope;
pub use vb6runtime::{VBError, VBVariant};
pub fn run_source(source: &str) -> Result<Vec<String>, RunError> {
let mut interpreter = Interpreter::new();
interpreter.run_source(source)?;
Ok(interpreter.output().to_vec())
}