Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/legopitstop/molang-py
Molang to Python Translator & interpreter written in pure Python.
https://github.com/legopitstop/molang-py
bedrock hacktoberfest language minecraft modtoberfest molang
Last synced: about 1 month ago
JSON representation
Molang to Python Translator & interpreter written in pure Python.
- Host: GitHub
- URL: https://github.com/legopitstop/molang-py
- Owner: legopitstop
- License: mit
- Created: 2024-01-19T00:20:41.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-04-11T17:45:42.000Z (9 months ago)
- Last Synced: 2024-10-29T07:39:46.155Z (about 2 months ago)
- Topics: bedrock, hacktoberfest, language, minecraft, modtoberfest, molang
- Language: Python
- Homepage: https://pypi.org/project/molang/
- Size: 2.68 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# molang
[![PyPI](https://img.shields.io/pypi/v/molang)](https://pypi.org/project/molang/)
[![Python](https://img.shields.io/pypi/pyversions/molang)](https://www.python.org/downloads//)
![Downloads](https://img.shields.io/pypi/dm/molang)
![Status](https://img.shields.io/pypi/status/molang)
[![Issues](https://img.shields.io/github/issues/legopitstop/molang)](https://github.com/legopitstop/molang/issues)Molang to Python Translator & interpreter written in pure Python.
Documentation: https://molang.readthedocs.io/
## Installation
Install the module with pip:
```bat
pip3 install molang
```Update existing installation: `pip3 install molang --upgrade`
## Features
- Decorator to convert a Python function to Molang.
- Execute .molang files from the command line or using Python. See [Road map](#road-map)See the docs for more information.
## Example
Convert `my_function` to Molang
```python
from molang import molang@molang
def my_function(a, b):
return a + bprint(my_function)
>> return t.a+t.b
```## Command-line interface
```
usage: molang [-h] [-V]Run molang files
options:
-h, --help show this help message and exit
-V, --version print the molang version number and exit.```
## Road map
- [x] Python function to Molang
- [ ] Interpreter
- [ ] Lexer
- [ ] Parser
- [ ] cli to convert Python code to Molang code (vice versa)