Skip to content
This repository has been archived by the owner on Aug 28, 2020. It is now read-only.

leo-editor/ast-token-tools

Repository files navigation

Abstract Syntax Tree and Token Tools

The overall goal is to publish Leo Editor's AST parser as a standalone library that can be used by any python project.

This repo is highly experimental while we figure the best way to package the project. The library however has a lot of development and testing behind it and is not (so) experimental.

Requires: Python 3.6 or greater

Development environment

Example using Anaconda/Miniconda environment manager.

conda create -n leo-ast
conda activate leo-ast
conda install python=3.6

pushd path/to/my/devspace
git clone https://github.com/leo-editor/ast-token-tools
pushd ast_token_tools
pip install -e .

echo "from ast_token_tools import leoAst as last" > a-last-hello.py
echo "print(last.hello())" >> a-last-hello.py

python a-last-hello.py

the 2 lines at end will fail. The function 'hello()' doesn't exist yet. ;-)

About

Abstract Syntax Tree and Token Tools

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages