https://github.com/virresh/pyclassmethodnamefetcher
Use ANTLRv4's python runtime with the official ANTLR's grammar for Python, to fetch class methods in any python source code
https://github.com/virresh/pyclassmethodnamefetcher
antlr4 antlr4-python3 visitor-pattern
Last synced: 2 months ago
JSON representation
Use ANTLRv4's python runtime with the official ANTLR's grammar for Python, to fetch class methods in any python source code
- Host: GitHub
- URL: https://github.com/virresh/pyclassmethodnamefetcher
- Owner: virresh
- Created: 2018-06-27T16:17:10.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-27T18:51:48.000Z (almost 7 years ago)
- Last Synced: 2025-01-19T08:28:14.046Z (4 months ago)
- Topics: antlr4, antlr4-python3, visitor-pattern
- Language: Python
- Homepage: https://virresh.wordpress.com/2018/06/27/dive-deeper-into-antlr-write-a-python-meta-program/
- Size: 91.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Get Class Methods in a Python Source code
Use ANTLR-based parse tree to obtain a json dictionary of class
names and corresponding class functions from a python 3 source code.Corresponding writeup at : https://virresh.wordpress.com/2018/06/27/dive-deeper-into-antlr-write-a-python-meta-program/
In case you do not already have it, install the `antlr4-python3-runtime` using:
```
pip install antlr4-python3-runtime
```