Start Rewrite
Continuous Integration / Grammar Tests (push) Successful in 3m54s
Continuous Integration / Library Format Tests (push) Failing after 4m49s
Continuous Integration / Library Tests (push) Successful in 7m40s

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-06-12 06:24:53 -04:00
parent 6908d9a91d
commit b9ff228362
73 changed files with 1779 additions and 11477 deletions
@@ -22,7 +22,6 @@ import SwiftTreeSitter
import Testing
import TreeSitter
import TreeSitterP4
import P4Lang
import P4Compiler
let p4_program_with_control_decl = """
@@ -37,7 +36,7 @@ let p4_program_with_control_decl = """
};
"""
/*
// snippet.include
let flter = { (tipe: P4QualifiedType) -> Bool in
switch tipe.baseType(){
@@ -48,3 +47,4 @@ let flter = { (tipe: P4QualifiedType) -> Bool in
if case .Ok(let program) = SpecialCompilers.ProgramCompiler.Compile(p4_program_with_control_decl) {
print(program.InstancesWithTypes(flter))
}
*/
+2 -1
View File
@@ -22,7 +22,6 @@ import SwiftTreeSitter
import Testing
import TreeSitter
import TreeSitterP4
import P4Lang
import P4Compiler
let p4_program_with_struct_decl = """
@@ -31,6 +30,7 @@ let p4_program_with_struct_decl = """
};
"""
/*
// snippet.include
let flter = { (tipe: P4Type) -> Bool in
switch tipe {
@@ -42,3 +42,4 @@ if case .Ok(let program) = SpecialCompilers.ProgramCompiler.Compile(p4_program_w
print(program.TypesWithTypes(flter))
}
*/