-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.ts
More file actions
21 lines (20 loc) · 723 Bytes
/
index.ts
File metadata and controls
21 lines (20 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// <reference path="types.d.ts"/>
export * from "./types";
import * as parsers from "./src/parse";
export const parse = {
module: (
x: string,
format: "compact" | "long" | "bare" = "compact",
options: any = {}
) => parsers.parseModule(x, format, { startRule: "module", ...options }),
board: (
x: string,
format: "compact" | "long" | "bare" = "compact",
options: any = {}
) => parsers.parseModule(x, format, { startRule: "board", ...options }),
symbol: (
x: string,
format: "compact" | "long" | "bare" = "compact",
options: any = {}
) => parsers.parseSymbolVerbose(x, format, { startRule: "kicad_symbol_lib", ...options }),
};