From fd4f5e17df8b01a768ee4900e25cb0255dcf72be Mon Sep 17 00:00:00 2001 From: greg Date: Wed, 21 Mar 2018 01:46:11 -0700 Subject: [PATCH] Move robo to separate crate --- Cargo.toml | 1 + robo/Cargo.toml | 11 +++++++++++ src/robo_lang/mod.rs => robo/src/lib.rs | 5 +++++ src/main.rs | 2 +- 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 robo/Cargo.toml rename src/robo_lang/mod.rs => robo/src/lib.rs (97%) diff --git a/Cargo.toml b/Cargo.toml index 2b7eeef..902a1cb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,6 +15,7 @@ colored = "1.5" schala-repl = { path = "schala-repl" } maaru-lang = { path = "maaru" } rukka-lang = { path = "rukka" } +robo-lang = { path = "robo" } [build-dependencies] includedir_codegen = "0.2.0" diff --git a/robo/Cargo.toml b/robo/Cargo.toml new file mode 100644 index 0000000..48ce456 --- /dev/null +++ b/robo/Cargo.toml @@ -0,0 +1,11 @@ +[package] +name = "robo-lang" +version = "0.1.0" +authors = ["greg "] + +[dependencies] +itertools = "0.5.8" +take_mut = "0.1.3" +llvm-sys = "*" + +schala-repl = { path = "../schala-repl" } diff --git a/src/robo_lang/mod.rs b/robo/src/lib.rs similarity index 97% rename from src/robo_lang/mod.rs rename to robo/src/lib.rs index 346e77e..af0701b 100644 --- a/src/robo_lang/mod.rs +++ b/robo/src/lib.rs @@ -1,3 +1,8 @@ +#![feature(box_patterns)] + +extern crate itertools; +extern crate schala_repl; + use itertools::Itertools; use schala_repl::{ProgrammingLanguageInterface, EvalOptions, LanguageOutput}; diff --git a/src/main.rs b/src/main.rs index e11b431..b83bee4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,9 +8,9 @@ extern crate maplit; extern crate maaru_lang; extern crate rukka_lang; +extern crate robo_lang; mod schala_lang; -mod robo_lang; extern crate schala_repl; use schala_repl::{PLIGenerator, schala_main};