Skip to content

Commit 4431c87

Browse files
committed
add a readme
1 parent 32ac9cd commit 4431c87

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# @syntaxs/compiler `v0.0.1-alpha`
2+
3+
> Main compiler module of Syntax Script.
4+
5+
This module is used to either compile a syntax script project, or create diagnostic reports for language servers.
6+
7+
# Usage
8+
9+
Using the compiler.
10+
11+
```typescript
12+
// Compiling
13+
import { SyntaxScriptCompiler } from '@syntaxs/compiler';
14+
15+
const compiler = new SyntaxScriptCompiler('/path/to/root/dir','/path/to/out/dir','ts');
16+
compiler.compile();
17+
```
18+
19+
Creating diagnostic reports.
20+
21+
```typescript
22+
//TODO
23+
```

0 commit comments

Comments
 (0)