Skip to content

Commit a378af6

Browse files
committed
update README.md
1 parent adafa22 commit a378af6

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

port_JavaScript/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
### JavaScript
22

33
#### Command line example for node.js:
4-
- first copy the two grammar files and the test.py to this directory
4+
- first copy the two grammar files and the example.py to this directory
55

66
Unix:
77
```bash
88
cp ../*.g4 .
9-
cp ../examples/test.py .
9+
cp ../example.py .
1010
```
1111

1212
Windows:
1313
```bash
1414
copy ..\*.g4
15-
copy ..\examples\test.py
15+
copy ..\example.py
1616
```
1717

1818
```bash
1919
antlr4 -Dlanguage=JavaScript PythonLexer.g4
2020
antlr4 -Dlanguage=JavaScript PythonParser.g4
21-
node grun_tokens.js test.py
21+
node grun_tokens.js example.py
2222
```
2323

2424
#### Related link:

port_Python3/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
### Python 3
22

33
#### Command line example:
4-
- first copy the two grammar files and the test.py to this directory and run the transformGrammar.py file
4+
- first copy the two grammar files and the example.py to this directory and run the transformGrammar.py file
55

66
Unix:
77
```bash
88
cp ../*.g4 .
9-
cp ../examples/test.py .
9+
cp ../example.py .
1010
python transformGrammar.py
1111
```
1212

1313
Windows:
1414
```bash
1515
copy ..\*.g4
16-
copy ..\examples\test.py
16+
copy ..\example.py
1717
python transformGrammar.py
1818
```
1919

2020
```bash
2121
antlr4 -Dlanguage=Python3 PythonLexer.g4
2222
antlr4 -Dlanguage=Python3 PythonParser.g4
23-
pygrun --tokens Python file_input test.py
24-
pygrun --tree Python file_input test.py
23+
pygrun --tokens Python file_input example.py
24+
pygrun --tree Python file_input example.py
2525
```
2626

2727
#### Related link:

0 commit comments

Comments
 (0)