A rudimentary Python-to-C++ converter for Arduino projects.
Use chmod +x on parser.py, then run ./parser.py with test.py as argument
Partial list of limitations:
- Code must not be outside of functions
- Very basic string variable support
- No dictionary support, yet
- Lists and tuples only work when all elements are of the same type
- Using while loops does not work yet
- Advanced operators like += / -= don't work
- Boolean support is basic.
- Handling
if __name__ == "__main__":
- Handling
str()
is partial at best. - Many more not known yet
- Functions with default values
- More operator test
- String slices