changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > core / rust/lib/sxp/src/form.rs

changeset 698: 96958d3eb5b0
parent: 1227f932b628
author: Richard Westhaver <ellis@rwest.io>
date: Fri, 04 Oct 2024 22:04:59 -0400
permissions: -rw-r--r--
description: fixes
1 //! ast.rs --- SXP internal representation
2 use crate::tok::Num;
3 // use crate::{Serializer, Result, Error};
4 // use serde::ser::Serialize;
5 // use serde::de::DeserializeOwned;
6 
7 // TODO 2023-07-09: implement serde.. this is a separate interface
8 // which is to be used with macros.
9 #[derive(Clone, Eq, PartialEq)]
10 pub enum Form {
11  Nil,
12  Number(Num),
13  String(String),
14  Symbol(String),
15  List(Vec<Form>),
16 }