Skip to content

pnxs/dots-code-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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