yoland68 / Saul
Tool to use a parsed AST to understand its tokens and regenerate code, tool usage is bound by developer-client privelidge, better call saul.py! πππ¨βοΈβ«π
Stars: β 14
Programming Languages
python
139335 projects - #7 most used programming language
Labels
Projects that are alternatives of or similar to Saul
Js Code To Svg Flowchart
js2flowchart - a visualization library to convert any JavaScript code into beautiful SVG flowchart. Learn otherβs code. Design your code. Refactor code. Document code. Explain code.
Stars: β 6,290 (+44828.57%)
Mutual labels: ast
Astring
π³ Tiny and fast JavaScript code generator from an ESTree-compliant AST.
Stars: β 757 (+5307.14%)
Mutual labels: ast
Tenko
An 100% spec compliant ES2021 JavaScript parser written in JS
Stars: β 490 (+3400%)
Mutual labels: ast
Esdispatch
trigger events based on esquery selectors during a traversal of a SpiderMonkey format AST
Stars: β 9 (-35.71%)
Mutual labels: ast
Tolerant Php Parser
An early-stage PHP parser designed for IDE usage scenarios.
Stars: β 717 (+5021.43%)
Mutual labels: ast
Rehype
HTML processor powered by plugins part of the @unifiedjs collective
Stars: β 634 (+4428.57%)
Mutual labels: ast
Meriyah
A 100% compliant, self-hosted javascript parser - https://meriyah.github.io/meriyah
Stars: β 690 (+4828.57%)
Mutual labels: ast
Esprima
ECMAScript parsing infrastructure for multipurpose analysis
Stars: β 6,391 (+45550%)
Mutual labels: ast
Metric Parser
π AST-based advanced mathematical parser written by Typescript.
Stars: β 26 (+85.71%)
Mutual labels: ast
Micromark
the smallest commonmark compliant markdown parser that exists; new basis for @unifiedjs (hundreds of projects w/ billions of downloads for dealing w/ content)
Stars: β 793 (+5564.29%)
Mutual labels: ast
Better Call Saul.py πππ¨βοΈβ«π
- Are you frustrated with writing log calls or other statement over and over?
- Are you frustrated with time consuming code refactor that a 5-year can do?
- Do you know you have rights as a software develper?
Well, you better call saul.py
This project aim to create scripts with Antlr4 and predefined Antlr4 grammars to tokenize source code and refactor them
Prerequisites
- Python3 (investigating a python2 antlr runtime bug)
Installation
-
(Optional) Install Antlr4. You only need this if you want to generate new lex/parser file for a language
-
Install Antlr4 Python3 runtime
pip3 install antlr4-python3-runtime
- Download this repo to your source code repository
git clone https://github.com/yoland68/saul
Usage
- Better call ‡ to log every statement in a Javafile
python3 saul/src/saul.py -a android-add-log -f [path-to-file]
- Better call ‡ to log every statement in a method
python3 saul/src/saul.py -a android-add-log -f [path-to-file] --method-declaration [method-name]
- Better call ‡ to log method call with specific name
python3 saul/src/saul.py -a android-add-log -f [path-to-file] --method-invocation [method-name]
- Better call ‡ to trace every statement in a Javafile
python3 saul/src/saul.py -a android-add-trace -f [path-to-file]
- Better call ‡ to learn how to use saul.py
python3 saul/src/saul.py -h
- Better call ‡ to find out all the available Saul agents
python3 saul/src/saul.py -l
Links
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].