Refactor Parser States

Refactor the class hierarchy for parser states so that
there is a parser state that acts more like a type and
one that acts more like a value (the latter, then, serves
as the base class for the other instantiated parser states).

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-03-30 05:16:48 -04:00
parent fda9858680
commit 7c9ecc2438
21 changed files with 199 additions and 264 deletions
+2 -4
View File
@@ -24,8 +24,7 @@ extension SelectCaseExpression: EvaluatableExpression {
}
public func type() -> any Common.P4Type {
// TODO
return reject
return ParserState()
}
}
@@ -46,9 +45,8 @@ extension SelectExpression: EvaluatableExpression {
}
}
// TODO
public func type() -> any Common.P4Type {
return reject
return ParserState()
}
}