Big project dir refactor
* split into multi member workspace in preparation for a no_std core * env and posix stuff neatly crammed into a seperate shell project * some pokes at interactive-devel.f * updated ci * removed 'l' shortcut for 'load' and update docs * remove out of date readme content * updated tests * more sensible cond implementation and extra tests * substr stdlib function with tests Signed-off-by: Ava Affine <ava@sunnypup.io>
This commit is contained in:
parent
aa56570d7d
commit
6d2925984f
44 changed files with 967 additions and 779 deletions
61
src/lib.rs
61
src/lib.rs
|
|
@ -1,61 +0,0 @@
|
|||
/* Flesh: Flexible Shell
|
||||
* Copyright (C) 2021 Ava Affine
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
mod run;
|
||||
mod eval;
|
||||
mod lex;
|
||||
mod segment;
|
||||
mod stl;
|
||||
mod sym;
|
||||
mod error;
|
||||
|
||||
pub mod ast {
|
||||
pub use crate::run::run;
|
||||
pub use crate::eval::eval;
|
||||
pub use crate::lex::lex;
|
||||
pub use crate::segment::{Ctr, Seg, Type};
|
||||
pub use crate::sym::{Args, SymTable, Symbol, UserFn, ValueType};
|
||||
pub use crate::error::{Traceback, start_trace};
|
||||
}
|
||||
|
||||
pub mod stdlib {
|
||||
pub use crate::stl::{
|
||||
dynamic_stdlib, static_stdlib,
|
||||
load_defaults, load_environment,
|
||||
CONSOLE_XDIM_VNAME,
|
||||
CONSOLE_YDIM_VNAME,
|
||||
POSIX_CFG_VNAME,
|
||||
MODENV_CFG_VNAME,
|
||||
L_PROMPT_VNAME,
|
||||
R_PROMPT_VNAME,
|
||||
PROMPT_DELIM_VNAME,
|
||||
CFG_FILE_VNAME,
|
||||
FLESH_DEFAULT_CONS_HEIGHT,
|
||||
FLESH_DEFAULT_CONS_WIDTH,
|
||||
};
|
||||
}
|
||||
|
||||
pub mod aux {
|
||||
#[cfg(feature="posix")]
|
||||
pub use crate::stl::posix::args_from_ast;
|
||||
#[cfg(feature="posix")]
|
||||
pub use crate::stl::posix::ShellState;
|
||||
#[cfg(feature="posix")]
|
||||
pub use crate::stl::posix::check_jobs;
|
||||
#[cfg(feature="posix")]
|
||||
pub use crate::stl::posix::POSIX_LOAD_NAME;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue