1. 13 Jan, 2015 2 commits
    • Paul Sokolovsky's avatar
      minimal: Convert "bare-arm" port to "minimal" port. · 5ebabcda
      Paul Sokolovsky authored
      This enable libc functions, GC, and line-editing function. Also, UART
      emulation for POSIX systems is added. Emulation build is set as default.
      5ebabcda
    • Paul Sokolovsky's avatar
      minimal: New port, intended to represent minimal working code. · d511a20a
      Paul Sokolovsky authored
      Unlike bare-arm, which is mostly intended to show raw interpreter size,
      without library and support code dependencies. This port is intended to
      be a better base to start new ports, and also will include emulation
      build to allow debug some aspects of embedded targets on POSIX systems.
      
      This initial commit is verbatim copy of bare-arm code.
      d511a20a
  2. 09 Jan, 2015 1 commit
  3. 07 Jan, 2015 1 commit
  4. 01 Jan, 2015 1 commit
  5. 08 Dec, 2014 1 commit
    • Paul Sokolovsky's avatar
      modsys: Add sys.print_exception(exc, file=sys.stdout) function. · 46c3ab20
      Paul Sokolovsky authored
      The function is modeled after traceback.print_exception(), but unbloated,
      and put into existing module to save overhead on adding another module.
      Compliant traceback.print_exception() is intended to be implemented in
      micropython-lib in terms of sys.print_exception().
      
      This change required refactoring mp_obj_print_exception() to take pfenv_t
      interface arguments.
      
      Addresses #751.
      46c3ab20
  6. 05 Dec, 2014 1 commit
    • 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
  7. 05 Nov, 2014 1 commit
  8. 21 Oct, 2014 1 commit
    • stijn's avatar
      Implement kwargs for builtin open() and _io.FileIO · 2fe4cf77
      stijn authored
      This makes open() and _io.FileIO() more CPython compliant.
      The mode kwarg is fully iplemented.
      The encoding kwarg is allowed but not implemented; mainly to allow
      the tests to specify encoding for CPython, see #874
      2fe4cf77
  9. 05 Oct, 2014 1 commit
  10. 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
  11. 04 Aug, 2014 1 commit
  12. 02 May, 2014 1 commit
  13. 12 Apr, 2014 1 commit