[Snek] [keith-packard/snek] 801993: Shrink morse example a bit

Keith Packard noreply at github.com
Wed Oct 9 22:18:42 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/keith-packard/snek
  Commit: 8019936048d8cac9d1394211c455cacc452b8c6c
      https://github.com/keith-packard/snek/commit/8019936048d8cac9d1394211c455cacc452b8c6c
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-10-09 (Wed, 09 Oct 2019)

  Changed paths:
    M examples/morse.py

  Log Message:
  -----------
  Shrink morse example a bit


  Commit: 20b6a10057b4eda5d745f912e7d84c38a1d1d390
      https://github.com/keith-packard/snek/commit/20b6a10057b4eda5d745f912e7d84c38a1d1d390
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-10-09 (Wed, 09 Oct 2019)

  Changed paths:
    M ports/duemilanove/snek-duemilanove.builtin
    M ports/itsybitsy3v/snek-itsybitsy3v.builtin
    M ports/itsybitsy5v/snek-itsybitsy5v.builtin
    M ports/mega/snek-mega.builtin
    M snek-lex.c

  Log Message:
  -----------
  Increase default max lex token to 255

Allow ports to override, and do that for all of the tiny boards.

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: a1824beff967dba4345978af02c403f3c5a1618a
      https://github.com/keith-packard/snek/commit/a1824beff967dba4345978af02c403f3c5a1618a
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-10-09 (Wed, 09 Oct 2019)

  Changed paths:
    M snek-input.c

  Log Message:
  -----------
  Make float() and int() accept numbers as well as strings

And shrink the int() implementation by using float() for most of it.

Signed-off-by: Keith Packard <keithp at keithp.com>


Compare: https://github.com/keith-packard/snek/compare/9d4db5efa39e...a1824beff967


More information about the Snek mailing list