This program converts custom python files with a custom syntax to regular python files. The overall goals of this project are:
- To include some of the features that I feel are missing from the python programming language
- Provide a method for others to use this functionality without needing to contribute to this repo
pip install makros
To use this simply create a file with the .mpy
extension, like the following:
macro import namespace
namespace greet:
name = "World"
export def set_name(new_name):
name = new_name
export def say_hello():
print("Hello, " + name)
greet.say_hello()
greet.set_name("trickypr")
greet.say_hello()
Then just run it with makros:
makros my_file.mpy
For more info, please read our docs, or read the examples.