Skip to content

Commit 6f53c8c

Browse files
committed
Updated README.md
1 parent fc33c90 commit 6f53c8c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,16 @@ pip install pyyaml
1717

1818
## Usage
1919

20-
Copy `opcodes.example.yaml` file to your application's folder, define all opcodes you need in this file. Then run the script with specified input and output files like this:
20+
Copy `opcodes.example.yaml` file to your application's folder, define all opcodes you need in this file.
21+
Then run the script with specified input and output files like this:
2122

22-
```
23-
/path/to/script/main.py path/to/opcodes.yaml opcodes.hpp
23+
```shell
24+
python /path/to/script/main.py path/to/opcodes.yaml /path/to/template opcodes.hpp
2425
```
2526

26-
The first argument is a path to file with opcodes. The second argument is a C++ header file name which will be generated by the script. The result constant list may look like this:
27+
The first argument is a path to file with opcodes. The second argument is a path to template file (look at
28+
the `templates` directory). The third argument is a C++ header file name which will be generated by the script.
29+
The result constant list may look like this:
2730

2831
```cpp
2932
enum _GeneratedOpCodes {

0 commit comments

Comments
 (0)