Recent revs add support for command-line arguments when running 
leo/core/leoAst.py directly:

...leo-editor\leo\core>python leoAst.py -h
usage:

    leoAst.py --help
    leoAst.py [--fstringify | --fstringify-diff | --orange | --orange-diff] 
PATHS
    leoAst.py --pytest ["-k ARGS"]
    leoAst.py --unittest [ARGS]

positional arguments:
  PATHS               directory or list of files

optional arguments:
  -h, --help          show this help message and exit
  --fstringify        leonine fstringify
  --fstringify-diff   show fstringify diff
  --orange            leonine Black
  --orange-diff       show orange diff
  --pytest "-k ARGS"  run pytest
  --unittest ARGS     run unittest

As a result:

1. Anyone can experiment with the Token Order classes without having to 
install Leo itself.

2. There is little need to "repackage" leoAst.py as a separate package. 
People can download just this file using git. One less thing for Matt to do 
:-)

Please test and report any problems.  All comments and suggestions welcome.

All tests (--unittest or --pytest) pass with Python 3.7. Some fail with 
python 3.8, due to new kinds of ast nodes.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/1a87ce44-7ba3-4df6-8247-fb95e118f736o%40googlegroups.com.

Reply via email to