Created
October 19, 2021 00:04
-
-
Save willemolding/db71b8925b3658295049df44a4c8451a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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