Files
gp4/Sources/P4/Types.swift
T
Will Hawkins d6d5cc8df7 Runtime Work
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-23 23:30:28 -05:00

28 lines
597 B
Swift

// The Swift Programming Language
// https://docs.swift.org/swift-book
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: 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 {
public init() {}
}