From 8f19f2e414a9478514ef9645cb99a760a530f241 Mon Sep 17 00:00:00 2001 From: greg Date: Wed, 21 Mar 2018 01:43:43 -0700 Subject: [PATCH] Move rukka to crate --- Cargo.toml | 1 + rukka/Cargo.toml | 11 +++++++++++ src/rukka_lang/mod.rs => rukka/src/lib.rs | 5 +++++ src/main.rs | 2 +- 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 rukka/Cargo.toml rename src/rukka_lang/mod.rs => rukka/src/lib.rs (99%) diff --git a/Cargo.toml b/Cargo.toml index 43164c7..2b7eeef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,6 +14,7 @@ colored = "1.5" schala-repl = { path = "schala-repl" } maaru-lang = { path = "maaru" } +rukka-lang = { path = "rukka" } [build-dependencies] includedir_codegen = "0.2.0" diff --git a/rukka/Cargo.toml b/rukka/Cargo.toml new file mode 100644 index 0000000..88305c2 --- /dev/null +++ b/rukka/Cargo.toml @@ -0,0 +1,11 @@ +[package] +name = "rukka-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/rukka_lang/mod.rs b/rukka/src/lib.rs similarity index 99% rename from src/rukka_lang/mod.rs rename to rukka/src/lib.rs index 25d4ba2..3736bdf 100644 --- a/src/rukka_lang/mod.rs +++ b/rukka/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}; use std::iter::Peekable; diff --git a/src/main.rs b/src/main.rs index f26bac1..e11b431 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,10 +7,10 @@ extern crate lazy_static; extern crate maplit; extern crate maaru_lang; +extern crate rukka_lang; mod schala_lang; mod robo_lang; -mod rukka_lang; extern crate schala_repl; use schala_repl::{PLIGenerator, schala_main};