Refactor P4Compiler to P4Parser
Continuous Integration / Grammar Tests (push) Successful in 36s
Continuous Integration / Library Format Tests (push) Successful in 1m46s
Continuous Integration / Library Tests (push) Successful in 4m23s

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-06-12 23:23:35 -04:00
parent e17533dfc8
commit 6c23cf7458
23 changed files with 1042 additions and 1120 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: "P4Compiler",
targets: ["P4Compiler"]
name: "P4Parser",
targets: ["P4Parser"]
),
.library(
name: "Common",
@@ -40,7 +40,7 @@ let package = Package(
],
swiftSettings: [.enableExperimentalFeature("CodeItemMacros")]),
.target(
name: "P4Compiler",
name: "P4Parser",
dependencies: [
.product(name: "SwiftTreeSitter", package: "swift-tree-sitter"),
.product(name: "SwiftTreeSitterLayer", package: "swift-tree-sitter"),
@@ -70,14 +70,14 @@ let package = Package(
.target(
name: "P4CodeGen",
dependencies: [
"P4Compiler", "Common",
"P4Parser", "Common",
//.product(name: "SwiftProtobuf", package: "swift-protobuf"),
]
),
.testTarget(
name: "Tests",
dependencies: [
"P4Compiler", "P4CodeGen", "Macros", "TreeSitterExtensions", "Common",
"P4Parser", "P4CodeGen", "Macros", "TreeSitterExtensions", "Common",
.product(name: "SystemPackage", package: "swift-system"),
],
//swiftSettings: [.enableExperimentalFeature("CodeItemMacros"), .unsafeFlags(["-Xfrontend", "-dump-macro-expansions"])],