Skip to content

Instantly share code, notes, and snippets.

@willemolding
Created October 19, 2021 00:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save willemolding/db71b8925b3658295049df44a4c8451a to your computer and use it in GitHub Desktop.
Save willemolding/db71b8925b3658295049df44a4c8451a to your computer and use it in GitHub Desktop.
pub enum Value {
Unit,
Nat0(u32),
Bool(bool),
String(Vec<u8>),
Char(u8),
Int(i64),
Float(f64),
Option(Option<Box<Value>>),
Record(Vec<(String, Value)>),
Tuple(Vec<Value>),
Sum { name: String, index: u8, value: Box<Value> },
List(Vec<Value>),
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment