https://github.com/definetlynotai/peng
A transpiler that turns english-style python to proper python - A mini language of its own :)
https://github.com/definetlynotai/peng
beginner easy english freindly pre-processing python transpiler
Last synced: 4 months ago
JSON representation
A transpiler that turns english-style python to proper python - A mini language of its own :)
- Host: GitHub
- URL: https://github.com/definetlynotai/peng
- Owner: DefinetlyNotAI
- License: other
- Archived: true
- Created: 2024-08-15T15:46:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-06T06:19:21.000Z (about 1 year ago)
- Last Synced: 2025-06-02T06:10:54.842Z (8 months ago)
- Topics: beginner, easy, english, freindly, pre-processing, python, transpiler
- Language: Python
- Homepage:
- Size: 34.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Peng: Python English Transpiler 📎
Welcome to Peng 🌐,
a cutting-edge tool
designed to teach you python using english.
Crafted with Python 🐍,
it's an actively developed project..
## ❤️ Support Me ❤️
Please consider buying me a coffee or sponsoring me in GitHub sponsor,
I am saving for my college funds in MIT, and I need your help!
Supporters will be placed in the Credits ❤️
## 🛠️ Installation and Setup 🛠️
### Prerequisites
Ensure your system meets these requirements:
### Basic Usage
Just create a .peng file with normal python programming,
then you may replace the following words with easier peng counterparts to learn programming easier:
Finally you can run peng.py via `python peng.py -h` to see available commands, Enjoy
The first part shows the english version of the python language, the second part shows the python version of the language
You can add and remove from `Replacements.py` to add more words to the dictionary:-
```
replacements for operators
"multiply": "*",
"divide_by": "/",
"add": "+",
"subtract": "-",
"mod": "%",
"exponent": "**",
"equal": "==",
"not_equal": "!=",
"less_than_or_equal": "<=",
"greater_than_or_equal": ">=",
"mod_and_assign": "%=",
"exponent_and_assign": "**=",
"divide": "/",
"plus": "+",
"minus": "-",
"modulus": "%",
"exponentiate": "**",
"floor_divide": "//",
"less_than": "<",
"greater_than": ">",
"equal_to": "==",
"not_equal_to": "!=",
"less_than_or_equal_to": "<=",
"greater_than_or_equal_to": ">=",
"assign": "=",
"add_and_assign": "+=",
"subtract_and_assign": "-=",
"multiply_and_assign": "*=",
"divide_and_assign": "/=",
"modulus_and_assign": "%=",
"exponentiate_and_assign": "**=",
"floor_divide_and_assign": "//=",
"bitwise_and": "&",
"bitwise_or": "|",
"bitwise_XOR": "^",
"left_shift": "<<",
"right_shift": ">>",
replacements_function
"turn_to_string": "str",
"turn_to_integer": "int",
"turn_to_boolean": "bool",
"turn_to_float": "float",
"length_of": "len",
"range_of": "range",
"sum_of": "sum",
"sort": "sorted",
"define_function": "def",
"define_class": "class",
"else_if": "elif",
"absolute_value": "abs",
"check_all_true": "all",
"check_any_true": "any",
"convert_to_ascii": "ascii",
"convert_to_binary": "bin",
"convert_to_bool": "bool",
"create_byte_array": "bytearray",
"create_bytes": "bytes",
"check_callable": "callable",
"character_from_unicode": "chr",
"list_of_names_or_attributes": "dir",
"divide_and_remainder": "divmod",
"add_counter_to_iterable": "enumerate",
"construct_iterator": "filter",
"format_variables": "format",
"invoke_help_system": "help",
"convert_to_hexadecimal": "hex",
"identity_of_object": "id",
"read_input_line": "input",
"check_instance_type": "isinstance",
"number_of_items_in_object": "len",
"create_list": "list",
"apply_function_to_iterable": "map",
"find_max_min": "max",
"find_min": "min",
"convert_to_octal": "oct",
"unicode_character_code": "ord",
"power_operation": "pow",
"print_message": "print",
"output": "print",
"generate_sequence_of_numbers": "range",
"round_number": "round",
"sorted_list": "sorted",
"sum_of_items": "sum",
"type_of_object": "type",
"merge_lists": "zip",
"mutable_sequence": "list",
"dictionary": "dict",
"collection_of_unique_elements": "set",
"immutable_sequence": "tuple",
"sequence_of_unicode_characters": "str",
"integer": "int",
"floating_point_number": "float",
"complex_number": "complex",
"boolean_value": "bool"
```