Runtime Work

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-01-23 23:30:28 -05:00
parent f9ed3e7fbd
commit d6d5cc8df7
10 changed files with 532 additions and 137 deletions
+16 -2
View File
@@ -1,12 +1,26 @@
// The Swift Programming Language
// https://docs.swift.org/swift-book
public enum ValueType {
public enum ValueType: CustomStringConvertible {
case Boolean(Bool)
public var description: String {
switch self {
case ValueType.Boolean(let b):
return "\(b) of Boolean"
}
}
}
public struct Value {
public struct Value: CustomStringConvertible {
public var value_type: ValueType
public init(withValue value: ValueType) {
self.value_type = value
}
public var description: String {
return "\(value_type)"
}
}
public class Packet {