Code in your language. Think in your style. 🤏🏼
📘 Documentation
Kyvera is a lightweight programming language inspired by Python. It is built with a custom interpreter written in Python and follows a Python-like structure while introducing its own unique features.
Kyvera’s main feature is multi-language support, currently supporting Japanese, German, and Italian, with more languages planned for future releases.
The goal of Kyvera is to provide a simple, flexible, and extensible language that can grow over time.
- Python 3.x installed on your system
Clone the repository:
git clone https://github.com/iretiola-007/kyvera.git
cd kyvera
To run a .kyv file:
python run.py filename.kyv
Example:
python run.py hello_de.kyv
To use Kyvera, you must declare the language at the top of each .kyv file.
Use this to declare the language:
use <language_name>
Example:
use german
Only that language’s keywords can be used in the file.
Kyvera currently supports basic keywords and built-in commands.
🇯🇵 Japanese:
hensuu- variable declarationshutsuryoku- print statementmoshi- if statementsoredehanai- else statement
🇩🇪 German:
zahl- variable declarationausgabe- print statementwenn- if statementsonst- else statement
🇮🇹 Italian:
variabile- variable declarationstampa- print statementse- if statementaltrimenti- else statement
Variables use a simple assignment style similar to Python, but with a different operator.
Kyvera uses -> instead of =.
Example:
hensuu sai -> 18
Currently, Kyvera supports basic if and else statements in language mode.
More advanced control flow features (like loops) will be added in future updates.
Kyvera currently includes basic built-in functionality such as the shutsuryoku statement (in English, it's the print function). More built-in functions will be added over time.
file.kyv
use japanese
hensuu sai -> 18
moshi sai > 10:
shutsuryoku(1)
soredehanai:
shutsuryoku(0)
Here, you declare a variable sai and assign 18 to it.
Since strings and Boolean statements haven't been implemented, you can use numbers as placeholder for return values.
However, if you directly compare numbers in a statement, you'll get a Boolean return value.
Example:
use japanese
shutsuryoku 5 > 1
This would return True. Chain comparison is also supported.
Like in the example above. To do a chain comparison, you must encase values in parentheses as such below:
use japanese
shutsuryoku(5 > 2 > 1)
More example programs will be added as more features are implemented.
Planned features include:
- Advanced conditional features
- Function definitions
- Loops
- More built-in functions
- Expanded multi-language support
- Improved error handling
- String support (currently Kyvera only supports numbers)
This README will be updated as Kyvera evolves and new features are added. Thank you for using Kyvera.
If you find this project interesting, consider starring the repository.
Ciao 😉