Skip to content

Commit 3f16534

Browse files
committed
JavaScript installation update
1 parent aa234ea commit 3f16534

2 files changed

Lines changed: 8 additions & 11 deletions

File tree

port_JavaScript/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
### JavaScript
22

3-
#### Command line example for node.js:
4-
- first copy the two grammar files and the example.py to this directory
3+
#### Command line example for [Node.js](https://nodejs.org/en/download):
4+
- first download the necessary node modules and set the ```type``` field in the ```package.json``` then copy the two grammar files and example.py to this directory:
5+
```bash
6+
npm i antlr4
7+
npm install --save-dev webpack
8+
npm pkg set type=module
9+
```
510

611
Unix:
712
```bash
@@ -22,4 +27,5 @@ node grun_tokens.js example.py
2227
```
2328

2429
#### Related link:
30+
[Node.js](https://nodejs.org/en/download)
2531
[JavaScript target](https://github.com/antlr/antlr4/blob/dev/doc/javascript-target.md)

port_JavaScript/package.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)