general_parser/
lib.rs

1pub mod configuration;
2pub mod expression;
3pub mod lexer;
4
5pub use configuration::{Adjacency, BinaryOperator, Configuration, TernaryOperator, UnaryOperator};
6pub use expression::{Expression, ExpressionRepresentation};
7pub use lexer::Lexer;
8
9pub type Allocator = bumpalo::Bump;
10
11pub trait Literal<'a> {
12	fn from_str(on: &'a str) -> Self;
13}
14
15impl<'a> Literal<'a> for &'a str {
16	fn from_str(on: &'a str) -> Self {
17		on
18	}
19}