20 lines
348 B
Rust
20 lines
348 B
Rust
|
|
use crate::object::{Float, Int, Str, Value};
|
||
|
|
use crate::syn::span::*;
|
||
|
|
|
||
|
|
#[derive(Debug, Clone, PartialEq)]
|
||
|
|
pub enum Expr {
|
||
|
|
Atom(SpAtom),
|
||
|
|
Quote(Vec<SpExpr>),
|
||
|
|
}
|
||
|
|
|
||
|
|
#[derive(Debug, Clone, PartialEq)]
|
||
|
|
pub enum Atom {
|
||
|
|
Word(Str),
|
||
|
|
Float(Float),
|
||
|
|
Int(Int),
|
||
|
|
Str(Str),
|
||
|
|
}
|
||
|
|
|
||
|
|
pub type SpAtom = Spanned<Atom>;
|
||
|
|
pub type SpExpr = Spanned<Expr>;
|