language: Remove Attributed Type

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-05-18 05:05:18 -04:00
parent 979fa69ab8
commit cbebcae20a
2 changed files with 8 additions and 35 deletions
+8 -7
View File
@@ -116,13 +116,14 @@ We will try to maintain the following headline format for commit messages:
where `<component>` is one of:
1. `grammar`: For the tree-sitter-based grammar.
2. `compiler`: For the Swift-based P4 compiler of tree-sitter-based-parser parsed programs into AST.
3. `runtime`: For the Swift-based P4 interpreter.
4. `common`: For any Swift-based components common to the entire project (and macros).
5. `documentation`: For any documentation updates.
6. `testing`: For Swift-based tests.
7. `cli`: For Cli components.
7. `codegen`: For code generation components.
1. `compiler`: For the Swift-based P4 compiler of tree-sitter-based-parser parsed programs into AST.
1. `language`: For the Swift-based AST of a compiled P4 program.
1. `runtime`: For the Swift-based P4 interpreter.
1. `common`: For any Swift-based components common to the entire project (and macros).
1. `documentation`: For any documentation updates.
1. `testing`: For Swift-based tests.
1. `cli`: For Cli components.
1. `codegen`: For code generation components.
where `<subcomponent>` can be more free-form and `<change>` is a pithy description of the changes in the commit.
-28
View File
@@ -1,28 +0,0 @@
// p4rse, Copyright 2026, Will Hawkins
//
// This file is part of p4rse.
//
// This file is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
import Common
public struct AttributedP4Type {
public let type: P4Type
public let attributes: P4QualifiedType
public init(_ type: P4Type, _ attributes: P4QualifiedType) {
self.type = type
self.attributes = attributes
}
}