Refactor Parsing -> Compiling

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-03-02 08:25:29 -05:00
parent cfe78a9b29
commit 6dba17c97a
21 changed files with 550 additions and 489 deletions
+5 -5
View File
@@ -10,8 +10,8 @@ let package = Package(
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "P4Parser",
targets: ["P4Parser"]
name: "P4Compiler",
targets: ["P4Compiler"]
),
.library(
name: "Common",
@@ -40,7 +40,7 @@ let package = Package(
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
]),
.target(
name: "P4Parser",
name: "P4Compiler",
dependencies: [
.product(name: "SwiftTreeSitter", package: "swift-tree-sitter"),
.product(name: "SwiftTreeSitterLayer", package: "swift-tree-sitter"),
@@ -71,8 +71,8 @@ let package = Package(
dependencies: ["P4Lang", "Common"]
),
.testTarget(
name: "ParserTests",
dependencies: ["P4Parser", "P4Runtime", "P4Lang", "Macros", "TreeSitterExtensions", "Common"]
name: "Tests",
dependencies: ["P4Compiler", "P4Runtime", "P4Lang", "Macros", "TreeSitterExtensions", "Common"]
),
]
)