Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fernandod1/code-preprocessor
Automatic remove and replace pieces of code and includes external files code. Simple code pre-processor.
https://github.com/fernandod1/code-preprocessor
code code-generator codereader processing-library processing-python processor python python-script python3 replace replace-in-files replace-text replaceall replacement replacements replacer
Last synced: 19 days ago
JSON representation
Automatic remove and replace pieces of code and includes external files code. Simple code pre-processor.
- Host: GitHub
- URL: https://github.com/fernandod1/code-preprocessor
- Owner: fernandod1
- License: other
- Created: 2019-09-29T01:09:24.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-02T11:55:30.000Z (about 4 years ago)
- Last Synced: 2024-11-12T22:28:12.346Z (3 months ago)
- Topics: code, code-generator, codereader, processing-library, processing-python, processor, python, python-script, python3, replace, replace-in-files, replace-text, replaceall, replacement, replacements, replacer
- Language: Python
- Homepage: https://www.fernando.info
- Size: 7.81 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Code preprocessor
DESCRIPTION:
This script was coded to simplify and automate the boring stuff of removing pieces of code and including new ones. A This script executes 2 actions:
1. Removes all code between '#>>>>>> and '#<<<<<< tags from a file. You can set your own tags.
2. Search for tags like '#include "file.ext" and replace them with its files content.
REQUIREMENTS:
- Python v3
- Python module reUSAGE:
Replace "original" variable with the name of your original file.
Replace "destination" variable with the name of your desired output file.
Execute script using command: "python code.py"
If using under Linux/UNIX, include #!/usr/bin/python in first line of script.COLLABORATIONS:
Collaborations to improve script are always welcome.