@@ -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))
|
||||
}
|
||||
*/
|
||||
@@ -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))
|
||||
}
|
||||
|
||||
*/
|
||||
Reference in New Issue
Block a user