Skip to content

Commit d44a250

Browse files
committed
Update README and .gitignore
1 parent 42b4ec6 commit d44a250

File tree

2 files changed

+11
-15
lines changed

2 files changed

+11
-15
lines changed

.gitignore

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
.antlr/
1+
# Editor
22
.vscode/
3-
__pycache__/
3+
.antlr/
4+
5+
# Python
6+
__pycache__/
7+
.pytest_cache/
8+
.ruff_cache/
9+
.venv/

README.md

+3-13
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,11 @@
22

33
[![actions status](https://github.com/mdbrnowski/linalg-language/actions/workflows/test.yml/badge.svg)](https://github.com/mdbrnowski/linalg-language/actions)
44

5-
To generate lexer and parser in Python, run
5+
To explore all available commands, simply run `./main.py`.
6+
7+
If you want to generate lexer and parser yourself (for some reason), run
68

79
```bash
810
antlr4 -o generated -Dlanguage=Python3 MyLexer.g4
911
antlr4 -o generated -Dlanguage=Python3 MyParser.g4
1012
```
11-
12-
To use lexer on `example.txt`, run
13-
14-
```bash
15-
./main.py lex example.txt
16-
```
17-
18-
To use parser on `example.txt`, run
19-
20-
```bash
21-
./main.py parse example.txt
22-
```

0 commit comments

Comments
 (0)