feat: add language parser base interface
This commit is contained in:
6
packages/parser/src/languages/base.ts
Normal file
6
packages/parser/src/languages/base.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { FileNode } from "@codeboard/shared";
|
||||
|
||||
export interface LanguageParser {
|
||||
extensions: string[];
|
||||
parse(content: string, filePath: string): FileNode;
|
||||
}
|
||||
Reference in New Issue
Block a user