File tree 2 files changed +11
-15
lines changed
2 files changed +11
-15
lines changed Original file line number Diff line number Diff line change 1
- .antlr /
1
+ # Editor
2
2
.vscode /
3
- __pycache__ /
3
+ .antlr /
4
+
5
+ # Python
6
+ __pycache__ /
7
+ .pytest_cache /
8
+ .ruff_cache /
9
+ .venv /
Original file line number Diff line number Diff line change 2
2
3
3
[ ![ actions status] ( https://github.com/mdbrnowski/linalg-language/actions/workflows/test.yml/badge.svg )] ( https://github.com/mdbrnowski/linalg-language/actions )
4
4
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
6
8
7
9
``` bash
8
10
antlr4 -o generated -Dlanguage=Python3 MyLexer.g4
9
11
antlr4 -o generated -Dlanguage=Python3 MyParser.g4
10
12
```
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
- ```
You can’t perform that action at this time.
0 commit comments