Refactor Names of Scope Types

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-03-20 04:23:53 -04:00
parent 6a9a138afe
commit f0d816b99f
12 changed files with 144 additions and 163 deletions
+3 -3
View File
@@ -22,14 +22,14 @@ import P4Lang
public struct ParserRuntime: CustomStringConvertible {
public var parser: Parser
let initialValues: ValueScopes?
let initialValues: VarValueScopes?
init(parser: Parser) {
self.parser = parser
self.initialValues = .none
}
init(parser: Parser, withInitialValues initial: ValueScopes?) {
init(parser: Parser, withInitialValues initial: VarValueScopes?) {
self.parser = parser
self.initialValues = initial
}
@@ -40,7 +40,7 @@ public struct ParserRuntime: CustomStringConvertible {
}
public static func create(
program: P4Lang.Program, withInitialValues initial: ValueScopes?
program: P4Lang.Program, withInitialValues initial: VarValueScopes?
) -> Result<ParserRuntime> {
return switch program.starting_parser() {
case .Ok(let parser):