Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 738 Bytes

File metadata and controls

31 lines (26 loc) · 738 Bytes

PyDuino

Intro

A rudimentary Python-to-C++ converter for Arduino projects.

Usage

Use chmod +x on parser.py, then run ./parser.py with test.py as argument

Known Limitations

Partial list of limitations:

  1. Code must not be outside of functions
  2. Very basic string variable support
  3. No dictionary support, yet
  4. Lists and tuples only work when all elements are of the same type
  5. Using while loops does not work yet
  6. Advanced operators like += / -= don't work
  7. Boolean support is basic.
  8. Handling if __name__ == "__main__":
  9. Handling str() is partial at best.
  10. Many more not known yet

Needed Tests

  • Functions with default values
  • More operator test
  • String slices