Skip to content

A rudimentary Python-to-C converter for Arduino projects

License

Notifications You must be signed in to change notification settings

GoodGuysFree/pyduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A rudimentary Python-to-C converter for Arduino projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published