Skip to content

Commit

Permalink
❤️ Added npm package export
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexW00 committed Feb 26, 2022
1 parent aec032f commit 5ec61a9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
.fleet
.idea
.vscode
npm
scripts
9 changes: 6 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,16 @@ Create an object that implements [AttributeGrammar](/ts/attributeGrammar/attribu
### 🦖 Denoland

```
import TinyComp, {AttributeGrammar, LexicalRuleset, SemanticRuleset, SyntaxRuleset, TinyCompOptions}
from "https://deno.land/x/[email protected]/ts/TinyComp.ts";
import TinyComp, {...} from "https://deno.land/x/[email protected]/ts/TinyComp.ts";
```

### ❤️ Npm

Coming soon?
```
npm i tiny-comp
import TinyComp, {...} from "tiny-comp";
```

### 🧪 Just test

Expand Down
4 changes: 4 additions & 0 deletions ts/TinyComp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import AttributeGrammar from "./attributeGrammar/attributeGrammar.ts";
import LexicalRuleset from "./attributeGrammar/lexicalRuleset.ts";
import SyntaxRuleset from "./attributeGrammar/syntaxRuleset.ts";
import SemanticContext from "./codeGenerator/SemanticContext.ts";
import Attribute from "./codeGenerator/Attribute.ts";
import {
_getFirstSemanticContextBySyntaxRuleName,
_getSemanticContextsBySyntaxRuleName,
Expand Down Expand Up @@ -61,4 +63,6 @@ export type {
export {
_getFirstSemanticContextBySyntaxRuleName,
_getSemanticContextsBySyntaxRuleName,
SemanticContext,
Attribute,
};

0 comments on commit 5ec61a9

Please sign in to comment.