From 6b71164aca5691e126234b9ddce1f836b101c6be Mon Sep 17 00:00:00 2001 From: Lawrence Bethlenfalvy Date: Fri, 26 May 2023 15:53:34 +0100 Subject: [PATCH] Prepare for push - last-minute rename - extended manifest - updated readme --- Cargo.lock | 2 +- Cargo.toml | 8 ++++++-- README.md | 6 +++++- src/bin/main.rs | 14 +++++++------- 4 files changed, 19 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 37a7ff4..7c27b24 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -289,7 +289,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3" [[package]] -name = "orchid" +name = "orchidlang" version = "0.2.1" dependencies = [ "chumsky", diff --git a/Cargo.toml b/Cargo.toml index fcd4d6f..812c561 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,13 +1,17 @@ [package] -name = "orchid" +name = "orchidlang" version = "0.2.1" edition = "2021" +license = "AGPL-3.0-or-later" +repository = "https://github.com/lbfalvy/orchid" +description = """ +An embeddable pure functional scripting language +""" authors = [ "Lawrence Bethlenfalvy " ] [lib] -name = "orchid" path = "src/lib.rs" [[bin]] diff --git a/README.md b/README.md index bea6990..a298a8a 100644 --- a/README.md +++ b/README.md @@ -19,11 +19,15 @@ Namespaces are inspired by Rust modules and ES6. Every file and directory is imp The project uses the nighly rust toolchain. Go to one of the folders within `examples` and run ```sh -cargo run -- -p . +cargo run ``` you can try modifying the examples, but error reporting for the time being is pretty terrible. +# The name + +Orchids and mangrove trees form complex ecosystems; The flowers persuade the tree to grow in different ways than it normally would to provide better support for their vines, and kill fungi and other pests. The metaphor is about vines growing on a tree and moving branches into more optimal positions for other vines. + # Contribution All contributions are welcome. For the time being, use the issue tracker to discuss ideas. \ No newline at end of file diff --git a/src/bin/main.rs b/src/bin/main.rs index 695059a..7d9fc58 100644 --- a/src/bin/main.rs +++ b/src/bin/main.rs @@ -6,14 +6,14 @@ use std::rc::Rc; use clap::Parser; use hashbrown::HashMap; use itertools::Itertools; -use orchid::interner::{InternedDisplay, Interner, Sym}; -use orchid::pipeline::file_loader::{mk_cache, Loaded}; -use orchid::pipeline::{ +use orchidlang::interner::{InternedDisplay, Interner, Sym}; +use orchidlang::pipeline::file_loader::{mk_cache, Loaded}; +use orchidlang::pipeline::{ collect_consts, collect_rules, from_const_tree, parse_layer, ProjectTree, }; -use orchid::rule::Repo; -use orchid::sourcefile::{FileEntry, Import}; -use orchid::{ast_to_interpreted, interpreter, stl}; +use orchidlang::rule::Repo; +use orchidlang::sourcefile::{FileEntry, Import}; +use orchidlang::{ast_to_interpreted, interpreter, stl}; /// Orchid interpreter #[derive(Parser, Debug)] @@ -167,7 +167,7 @@ pub fn run_dir(dir: &Path) { .join(", ") ) }); - let io_handler = orchid::stl::handleIO; + let io_handler = orchidlang::stl::handleIO; let ret = interpreter::run_handler(entrypoint.clone(), io_handler, ctx); let interpreter::Return { gas, state, inert } = ret.unwrap_or_else(|e| panic!("Runtime error: {}", e));