First Commit
This commit is contained in:
16
bindings/swift/TreeSitterJrpc/jrpc.h
generated
Normal file
16
bindings/swift/TreeSitterJrpc/jrpc.h
generated
Normal file
@ -0,0 +1,16 @@
|
||||
#ifndef TREE_SITTER_JRPC_H_
|
||||
#define TREE_SITTER_JRPC_H_
|
||||
|
||||
typedef struct TSLanguage TSLanguage;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
const TSLanguage *tree_sitter_jrpc(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // TREE_SITTER_JRPC_H_
|
12
bindings/swift/TreeSitterJrpcTests/TreeSitterJrpcTests.swift
generated
Normal file
12
bindings/swift/TreeSitterJrpcTests/TreeSitterJrpcTests.swift
generated
Normal file
@ -0,0 +1,12 @@
|
||||
import XCTest
|
||||
import SwiftTreeSitter
|
||||
import TreeSitterJrpc
|
||||
|
||||
final class TreeSitterJrpcTests: XCTestCase {
|
||||
func testCanLoadGrammar() throws {
|
||||
let parser = Parser()
|
||||
let language = Language(language: tree_sitter_jrpc())
|
||||
XCTAssertNoThrow(try parser.setLanguage(language),
|
||||
"Error loading Jrpc grammar")
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user