compiler, runtime, common, documentation: Refactor Type System
The type system (and the value system) now include attributes for each type (things like direction, const-ness). Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
@@ -18,10 +18,10 @@
|
||||
import Common
|
||||
|
||||
public struct AttributedP4Type {
|
||||
public let type: P4Type
|
||||
public let attributes: P4TypeAttributed
|
||||
public let type: P4DataType
|
||||
public let attributes: P4Type
|
||||
|
||||
public init(_ type: P4Type, _ attributes: P4TypeAttributed) {
|
||||
public init(_ type: P4DataType, _ attributes: P4Type) {
|
||||
self.type = type
|
||||
self.attributes = attributes
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user