{"id":17908034,"url":"https://github.com/yoland68/saul","last_synced_at":"2025-08-01T04:04:29.094Z","repository":{"id":86275936,"uuid":"110058142","full_name":"yoland68/saul","owner":"yoland68","description":"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! :+1::telephone_receiver::man::balance_scale:⚫:snake:","archived":false,"fork":false,"pushed_at":"2017-11-13T22:05:00.000Z","size":281,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-19T00:38:53.865Z","etag":null,"topics":["antlr","ast","refactor"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yoland68.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-09T02:40:58.000Z","updated_at":"2024-05-07T20:32:05.000Z","dependencies_parsed_at":"2023-03-04T02:15:46.623Z","dependency_job_id":null,"html_url":"https://github.com/yoland68/saul","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoland68%2Fsaul","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoland68%2Fsaul/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoland68%2Fsaul/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoland68%2Fsaul/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yoland68","download_url":"https://codeload.github.com/yoland68/saul/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245164771,"owners_count":20571176,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["antlr","ast","refactor"],"created_at":"2024-10-28T19:14:06.467Z","updated_at":"2025-03-23T20:30:57.995Z","avatar_url":"https://github.com/yoland68.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Better Call Saul.py 👍📞👨⚖️⚫🐍\n\n- Are you frustrated with writing log calls or other statement over and over?\n- Are you frustrated with time consuming code refactor that a 5-year can do?\n- Do you know you have rights as a software develper? \n\nWell, you **better call saul.py**\n\nThis project aim to create scripts with Antlr4 and predefined Antlr4 grammars\nto tokenize source code and refactor them\n\n## Prerequisites\n\n1. Python3 (investigating a python2 antlr runtime bug)\n\n## Installation\n\n0. (Optional) [Install Antlr4](https://github.com/antlr/antlr4/blob/master/doc/getting-started.md).\nYou only need this if you want to generate new lex/parser file for a language\n\n1. **Install Antlr4 Python3 runtime**\n```bash\npip3 install antlr4-python3-runtime\n```\n\n2. **Download this repo to your source code repository**\n```bash\ngit clone https://github.com/yoland68/saul\n```\n\n## Usage\n\n- Better call ⤵ to log every statement in a Javafile\n```\npython3 saul/src/saul.py -a android-add-log -f [path-to-file]\n```\n- Better call ⤵ to log every statement in a method\n```\npython3 saul/src/saul.py -a android-add-log -f [path-to-file] --method-declaration [method-name]\n```\n- Better call ⤵ to log method call with specific name\n```\npython3 saul/src/saul.py -a android-add-log -f [path-to-file] --method-invocation [method-name]\n```\n- Better call ⤵ to trace every statement in a Javafile\n```\npython3 saul/src/saul.py -a android-add-trace -f [path-to-file]\n```\n- Better call ⤵ to learn how to use saul.py\n```\npython3 saul/src/saul.py -h\n```\n- Better call ⤵ to find out all the available Saul agents\n```\npython3 saul/src/saul.py -l\n```\n\n## Links\n\n- [Install Antlr4](https://github.com/antlr/antlr4/blob/master/doc/getting-started.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoland68%2Fsaul","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoland68%2Fsaul","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoland68%2Fsaul/lists"}