Prepare for push

- last-minute rename
- extended manifest
- updated readme
This commit is contained in:
2023-05-26 15:53:34 +01:00
parent fdf18e6ff8
commit 6b71164aca
4 changed files with 19 additions and 11 deletions

2
Cargo.lock generated
View File

@@ -289,7 +289,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3" checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3"
[[package]] [[package]]
name = "orchid" name = "orchidlang"
version = "0.2.1" version = "0.2.1"
dependencies = [ dependencies = [
"chumsky", "chumsky",

View File

@@ -1,13 +1,17 @@
[package] [package]
name = "orchid" name = "orchidlang"
version = "0.2.1" version = "0.2.1"
edition = "2021" edition = "2021"
license = "AGPL-3.0-or-later"
repository = "https://github.com/lbfalvy/orchid"
description = """
An embeddable pure functional scripting language
"""
authors = [ authors = [
"Lawrence Bethlenfalvy <lbfalvy@protonmail.com>" "Lawrence Bethlenfalvy <lbfalvy@protonmail.com>"
] ]
[lib] [lib]
name = "orchid"
path = "src/lib.rs" path = "src/lib.rs"
[[bin]] [[bin]]

View File

@@ -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 The project uses the nighly rust toolchain. Go to one of the folders within `examples` and run
```sh ```sh
cargo run -- -p . cargo run
``` ```
you can try modifying the examples, but error reporting for the time being is pretty terrible. 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 # Contribution
All contributions are welcome. For the time being, use the issue tracker to discuss ideas. All contributions are welcome. For the time being, use the issue tracker to discuss ideas.

View File

@@ -6,14 +6,14 @@ use std::rc::Rc;
use clap::Parser; use clap::Parser;
use hashbrown::HashMap; use hashbrown::HashMap;
use itertools::Itertools; use itertools::Itertools;
use orchid::interner::{InternedDisplay, Interner, Sym}; use orchidlang::interner::{InternedDisplay, Interner, Sym};
use orchid::pipeline::file_loader::{mk_cache, Loaded}; use orchidlang::pipeline::file_loader::{mk_cache, Loaded};
use orchid::pipeline::{ use orchidlang::pipeline::{
collect_consts, collect_rules, from_const_tree, parse_layer, ProjectTree, collect_consts, collect_rules, from_const_tree, parse_layer, ProjectTree,
}; };
use orchid::rule::Repo; use orchidlang::rule::Repo;
use orchid::sourcefile::{FileEntry, Import}; use orchidlang::sourcefile::{FileEntry, Import};
use orchid::{ast_to_interpreted, interpreter, stl}; use orchidlang::{ast_to_interpreted, interpreter, stl};
/// Orchid interpreter /// Orchid interpreter
#[derive(Parser, Debug)] #[derive(Parser, Debug)]
@@ -167,7 +167,7 @@ pub fn run_dir(dir: &Path) {
.join(", ") .join(", ")
) )
}); });
let io_handler = orchid::stl::handleIO; let io_handler = orchidlang::stl::handleIO;
let ret = interpreter::run_handler(entrypoint.clone(), io_handler, ctx); let ret = interpreter::run_handler(entrypoint.clone(), io_handler, ctx);
let interpreter::Return { gas, state, inert } = let interpreter::Return { gas, state, inert } =
ret.unwrap_or_else(|e| panic!("Runtime error: {}", e)); ret.unwrap_or_else(|e| panic!("Runtime error: {}", e));