1. 20 Jan, 2015 2 commits
  2. 16 Jan, 2015 2 commits
  3. 14 Jan, 2015 3 commits
  4. 13 Jan, 2015 2 commits
  5. 10 Jan, 2015 1 commit
  6. 01 Jan, 2015 1 commit
  7. 27 Dec, 2014 2 commits
    • Damien George's avatar
      py: Allow to properly disable builtin slice operation. · 83204f34
      Damien George authored
      This patch makes the MICROPY_PY_BUILTINS_SLICE compile-time option
      fully disable the builtin slice operation (when set to 0).  This
      includes removing the slice sytanx from the grammar.  Now, enabling
      slice costs 4228 bytes on unix x64, and 1816 bytes on stmhal.
      83204f34
    • 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
  8. 21 Dec, 2014 2 commits
  9. 20 Dec, 2014 1 commit
  10. 12 Dec, 2014 1 commit
    • Damien George's avatar
      py: Fix optimised for-loop compiler so it follows proper semantics. · e181c0dc
      Damien George authored
      You can now assign to the range end variable and the for-loop still
      works correctly.  This fully addresses issue #565.
      
      Also fixed a bug with the stack not being fully popped when breaking out
      of an optimised for-loop (and it's actually impossible to write a test
      for this case!).
      e181c0dc
  11. 11 Dec, 2014 1 commit
  12. 10 Dec, 2014 1 commit
  13. 02 Nov, 2014 1 commit
  14. 17 Oct, 2014 3 commits
  15. 05 Oct, 2014 1 commit
  16. 03 Oct, 2014 3 commits
  17. 23 Sep, 2014 1 commit
    • Damien George's avatar
      py: Free non-interned strings in the parser when not needed. · 52b5d76a
      Damien George authored
      mp_parse_node_free now frees the memory associated with non-interned
      strings.  And the parser calls mp_parse_node_free when discarding a
      non-used node (such as a doc string).
      
      Also, the compiler now frees the parse tree explicitly just before it
      exits (as opposed to relying on the caller to do this).
      
      Addresses issue #708 as best we can.
      52b5d76a
  18. 08 Sep, 2014 1 commit
  19. 06 Sep, 2014 1 commit
  20. 03 Sep, 2014 1 commit
  21. 29 Aug, 2014 1 commit
  22. 27 Aug, 2014 1 commit
  23. 15 Aug, 2014 3 commits
  24. 09 Jul, 2014 1 commit
  25. 03 Jul, 2014 1 commit
  26. 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
  27. 21 Jun, 2014 1 commit