Completely Refactor Execution

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-03-06 21:40:19 -05:00
parent f96350f89d
commit eff19df968
15 changed files with 418 additions and 351 deletions
+7
View File
@@ -73,6 +73,13 @@ open class ProgramExecution: CustomStringConvertible {
return new_pe
}
public func declare(identifier: Identifier, withValue value: P4Value) -> ProgramExecution {
let new_pe = self
let new_scopes = self.scopes.declare(identifier: identifier, withValue: value)
new_pe.scopes = new_scopes
return new_pe
}
}
public typealias ValueScope = Scope<P4Value>