42 lines
797 B
Markdown
42 lines
797 B
Markdown
# ForeignThon
|
|
|
|
Write Python in any human language.
|
|
|
|
ForeignThon transpiles `.es.py`, `.ta.py` (and more) into standard Python. Keywords, builtins, exceptions — all translated. Errors come back in your language too.
|
|
|
|
```python
|
|
# hola.es.py
|
|
definir saludar(nombre):
|
|
retornar f"Hola, {nombre}!"
|
|
|
|
para i en rango(3):
|
|
imprimir(saludar(f"mundo {i}"))
|
|
```
|
|
|
|
```bash
|
|
fpy run hola.es.py
|
|
# Hola, mundo 0!
|
|
# Hola, mundo 1!
|
|
# Hola, mundo 2!
|
|
```
|
|
|
|
## Install
|
|
|
|
```bash
|
|
pip install foreignthon
|
|
pip install foreignthon-es # Spanish
|
|
pip install foreignthon-ta # Tamil
|
|
```
|
|
|
|
## Docs
|
|
|
|
- [Getting Started](docs/getting-started.md)
|
|
- [Language Packs](docs/language-packs.md)
|
|
- [Postfix Syntax](docs/postfix-syntax.md)
|
|
- [Contributing](docs/contributing.md)
|
|
- [Releasing](docs/releasing.md)
|
|
|
|
## License
|
|
|
|
GPL
|