1. 27 Dec, 2014 1 commit
    • Damien George's avatar
      py: Allow to properly disable builtin "set" object. · e37dcaaf
      Damien George authored
      This patch makes MICROPY_PY_BUILTINS_SET compile-time option fully
      disable the builtin set object (when set to 0).  This includes removing
      set constructor/comprehension from the grammar, the compiler and the
      emitters.  Now, enabling set costs 8168 bytes on unix x64, and 3576
      bytes on stmhal.
      e37dcaaf
  2. 19 Oct, 2014 1 commit
  3. 12 Oct, 2014 3 commits
  4. 03 Oct, 2014 2 commits
  5. 29 Sep, 2014 6 commits
  6. 23 Sep, 2014 1 commit
  7. 15 Sep, 2014 1 commit
  8. 12 Sep, 2014 1 commit
    • Damien George's avatar
      py: Load strings as objects when compiling viper. · bb295468
      Damien George authored
      Eventually, viper wants to be able to use raw pointers to strings and
      arrays for efficient access.  But for now, let's just load strings as a
      Python object so they can be used as normal.  This will anyway be
      compatible with eventual intended viper behaviour.
      
      Addresses issue #857.
      bb295468
  9. 08 Sep, 2014 2 commits
  10. 07 Sep, 2014 1 commit
  11. 06 Sep, 2014 4 commits
  12. 03 Sep, 2014 1 commit
  13. 29 Aug, 2014 1 commit
  14. 27 Aug, 2014 1 commit
  15. 16 Aug, 2014 2 commits
  16. 15 Aug, 2014 3 commits
  17. 03 Jul, 2014 1 commit
  18. 30 Jun, 2014 1 commit
    • Damien George's avatar
      py: Improvements to native emitter. · b601d957
      Damien George authored
      Native emitter can now compile try/except blocks using nlr_push/nlr_pop.
      It probably only works for 1 level of exception handling.  It doesn't
      work on Thumb (only x64).
      
      Native emitter can also handle some additional op codes.
      
      With this patch, 198 tests now pass using "-X emit=native" option to
      micropython.
      b601d957
  19. 22 Jun, 2014 1 commit
  20. 21 Jun, 2014 1 commit
  21. 30 May, 2014 1 commit
    • Damien George's avatar
      py: Fix break from within a for loop. · 25c84643
      Damien George authored
      Needed to pop the iterator object when breaking out of a for loop.  Need
      also to be careful to unwind exception handler before popping iterator.
      
      Addresses issue #635.
      25c84643
  22. 28 May, 2014 1 commit
  23. 10 May, 2014 1 commit
  24. 07 May, 2014 2 commits