Support Parameters For Parsers

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-03-30 07:57:41 -04:00
parent 744c375c5f
commit 8962235aca
8 changed files with 317 additions and 26 deletions
+7
View File
@@ -43,3 +43,10 @@ public protocol CompilableDeclaration {
node: Node, withContext context: CompilerContext
) -> Result<(P4Type, CompilerContext)?>
}
public protocol Compilable<T> {
associatedtype T
static func Compile(
node: Node, withContext context: CompilerContext
) -> Result<(T, CompilerContext)>
}