DOTS code generator
Project description
dots-code-generator
Usage
Add path with config_txt.py and path to "dots" python module to PYTHONPATH.
Call dcg.py: cd examples mkdir -p out ../bin/dcg.py -T templates -C config_txt -o out some_types.dots -v
Generated files will be places in directory "out".
Update DOTS grammar
DOTS grammer is defined in "dots.lark". If the grammar is updated, a new parser has to be generated with the "lark" python module:
python -m lark.tools.standalone dots.lark > dots/dots_parser.py
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dots-code-generator-0.1.0.tar.gz
(48.4 kB
view details)
File details
Details for the file dots-code-generator-0.1.0.tar.gz
.
File metadata
- Download URL: dots-code-generator-0.1.0.tar.gz
- Upload date:
- Size: 48.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78af0e691902df78d3ce6b444d7249ca5ad6c10d704d541884d5a157bffb2ddc |
|
MD5 | 41c96186b44956379b4fa09e3431da35 |
|
BLAKE2b-256 | 6f91645bc9613013b83a80144bcd5874090eea7314eae5a30ef1473ac109218a |