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