general-parser 0.0.6

Configurable parser for S-expressions with configurable extensions for mathematical notation
Documentation
pub mod configuration;
pub mod expression;
pub mod lexer;

pub use configuration::{Adjacency, BinaryOperator, Configuration, TernaryOperator, UnaryOperator};
pub use expression::{Expression, ExpressionRepresentation};
pub use lexer::Lexer;

pub type Allocator = bumpalo::Bump;

pub trait Literal<'a> {
	fn from_str(on: &'a str) -> Self;
}

impl<'a> Literal<'a> for &'a str {
	fn from_str(on: &'a str) -> Self {
		on
	}
}