You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/cli.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,4 +14,14 @@ npx bnf-compile ./bnf/
14
14
Once you have `bnf-parser` installed simply run `npx bnf-compile ./bnf/` where `./bnf/` is actually the folder where your bnfs are stored.
15
15
After running this you will notice multiple artifacts will be generated which is what you will then `import`/`require` into your project.
16
16
17
-
Please note that by default this command will generate javascript modules using the `import`/`export` syntax, if you are running an environment which **does not support**`import`/`export`, the CLI will not currently be able export artifacts useable in your project.
17
+
Please note that by default this command will generate javascript modules using the `import`/`export` syntax, if you are running an environment which **does not support**`import`/`export`, the CLI will not currently be able export artifacts useable in your project.
18
+
19
+
20
+
## Optional output dir
21
+
22
+
```bash
23
+
npx bnf-compile ./bnf/ ./bin/bnf/
24
+
```
25
+
26
+
You can also add a second argument for the output directory for the artifacts.
27
+
Note: If that directory does not currently exist, the cli will attempt to recursively make the dir
0 commit comments