Skip to content
Snippets Groups Projects
  1. Feb 08, 2015
    • Damien George's avatar
      py: Parse big-int/float/imag constants directly in parser. · 7d414a1b
      Damien George authored
      Previous to this patch, a big-int, float or imag constant was interned
      (made into a qstr) and then parsed at runtime to create an object each
      time it was needed.  This is wasteful in RAM and not efficient.  Now,
      these constants are parsed straight away in the parser and turned into
      objects.  This allows constants with large numbers of digits (so
      addresses issue #1103) and takes us a step closer to #722.
      7d414a1b
  2. Jan 07, 2015
  3. Jan 01, 2015
  4. Dec 27, 2014
  5. Dec 05, 2014
    • Damien George's avatar
      py: Optimise lexer by exposing lexer type. · a4c52c5a
      Damien George authored
      mp_lexer_t type is exposed, mp_token_t type is removed, and simple lexer
      functions (like checking current token kind) are now inlined.
      
      This saves 784 bytes ROM on 32-bit unix, 348 bytes on stmhal, and 460
      bytes on bare-arm.  It also saves a tiny bit of RAM since mp_lexer_t
      is a bit smaller.  Also will run a bit more efficiently.
      a4c52c5a
  6. Jul 30, 2014
  7. Jul 03, 2014
  8. Jun 03, 2014
  9. May 03, 2014
    • Damien George's avatar
      Add license header to (almost) all files. · 04b9147e
      Damien George authored
      Blanket wide to all .c and .h files.  Some files originating from ST are
      difficult to deal with (license wise) so it was left out of those.
      
      Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
      04b9147e
  10. Feb 05, 2014
  11. Jan 25, 2014
  12. Jan 18, 2014
  13. Jan 15, 2014
  14. Jan 12, 2014
  15. Jan 08, 2014
  16. Jan 06, 2014
  17. Jan 04, 2014
  18. Jan 03, 2014
    • Damien George's avatar
      Basic implementation of import. · 66028ab6
      Damien George authored
      import works for simple cases.  Still work to do on finding the right
      script, and setting globals/locals correctly when running an imported
      function.
      66028ab6
  19. Dec 21, 2013
    • Damien's avatar
      Change object representation from 1 big union to individual structs. · d99b0528
      Damien authored
      A big change.  Micro Python objects are allocated as individual structs
      with the first element being a pointer to the type information (which
      is itself an object).  This scheme follows CPython.  Much more flexible,
      not necessarily slower, uses same heap memory, and can allocate objects
      statically.
      
      Also change name prefix, from py_ to mp_ (mp for Micro Python).
      d99b0528
  20. Oct 20, 2013
  21. Oct 09, 2013
  22. Oct 04, 2013
Loading