From 2265e9f5ee5c2f5ad5f616a65c6489ab28a978ff Mon Sep 17 00:00:00 2001 From: AnishB Date: Sat, 13 Jun 2026 11:17:53 -0500 Subject: [PATCH] chatgpt readme :3 --- README.md | 123 ++++++++++++++++++------------------------------------ 1 file changed, 41 insertions(+), 82 deletions(-) diff --git a/README.md b/README.md index 3fec0e6..cf8784e 100644 --- a/README.md +++ b/README.md @@ -1,54 +1,33 @@ - +# foreignthon-te -# foreignthon-xx - - -French language pack for [ForeignThon](https://foreignthon.keshavanand.net/) — write Python in Français. +Telugu language pack for [ForeignThon](https://foreignthon.keshavanand.net/) — write Python in తెలుగు. --- ## Install ```bash -pip install foreignthon foreignthon-xx +pip install foreignthon foreignthon-te ``` - - --- ## Example - - -**`fizzbuzz.xx.py`** +**`fizzbuzz.te.py`** ```python - -pour i dans intervalle(1, 21): - si i % 15 == 0: - afficher("FizzBuzz") - sinonsi i % 3 == 0: - afficher("Fizz") - sinonsi i % 5 == 0: - afficher("Buzz") - sinon: - afficher(i) +ప్రతి i లోపల పరిధి(1, 21): + ఒకవేళ i % 15 == 0: + చూపు("FizzBuzz") + లేకపోతే_ఒకవేళ i % 3 == 0: + చూపు("Fizz") + లేకపోతే_ఒకవేళ i % 5 == 0: + చూపు("Buzz") + లేనిపక్షంలో: + చూపు(i) ``` - - Compiles to standard Python: ```python @@ -66,91 +45,71 @@ for i in range(1, 21): Run it directly without compiling first: ```bash -fpy run fizzbuzz.xx.py +fpy run fizzbuzz.te.py ``` --- ## Keyword reference - - -| Python | | +| Python | తెలుగు | |---|---| -| `if` | | -| `else` | | -| `elif` | | -| `for` | | -| `while` | | -| `def` | | -| `class` | | -| `return` | | -| `import` | | -| `True` | | -| `False` | | -| `None` | | -| `print` | | -| `input` | | -| `len` | | -| `range` | | +| `if` | `ఒకవేళ` | +| `else` | `లేనిపక్షంలో` | +| `elif` | `లేకపోతే_ఒకవేళ` | +| `for` | `ప్రతి` | +| `while` | `ఎంతవరకు` | +| `def` | `రూపొందించు` | +| `class` | `మాదిరి` | +| `return` | `ఇవ్వు` | +| `import` | `చేర్చు` | +| `True` | `అవును` | +| `False` | `కాదు_విలువ` | +| `None` | `శూన్యం` | +| `print` | `చూపు` | +| `input` | `అడుగు` | +| `len` | `పొడవు` | +| `range` | `పరిధి` | -The full mapping is in [`xx.json`](https://git.keshavanand.net/foreign-thon/foreignthon-xx/raw/branch/main/src/foreignthon_xx/xx.json). - - +The full mapping is in [`te.json`](https://git.keshavanand.net/foreign-thon/foreignthon-te/raw/branch/main/src/foreignthon_te/te.json). --- - - ## Postfix syntax - This pack supports the `@@` postfix operator for natural SOV word order. Instead of writing the keyword first: ```python -ஆனால் x > 0: - பதிப்பி(x) +ఒకవేళ x > 0: + చూపు(x) ``` -You can write it in natural Tamil order — condition first, keyword after: +You can write it in natural Telugu order — condition first, keyword after: ```python -x > 0 @@ஆனால்: - பதிப்பி(x) +x > 0 @@ఒకవేళ: + చూపు(x) ``` Both compile to the same Python. Decompile with postfix output using: ```bash -fpy decompile script.py --lang xx --postfix +fpy decompile script.py --lang te --postfix ``` See [Postfix Syntax](https://foreignthon.keshavanand.net/postfix-syntax/) for full details. - - --- ## Start a project ```bash -fpy new myproject --lang xx +fpy new myproject --lang te cd myproject -fpy run src/main.xx.py +fpy run src/main.te.py ``` - - --- ## Documentation @@ -167,4 +126,4 @@ Found a missing translation or a better keyword for your language? Open an issue ## License -GPL v3 +GPL v3 \ No newline at end of file