[Snek] [keith-packard/snek] d31572: Share new 'snek_error_args' among common users

Keith Packard noreply at github.com
Tue May 21 13:42:53 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/keith-packard/snek
  Commit: d31572a066bd6cf308276ca6fce5e67b724dc163
      https://github.com/keith-packard/snek/commit/d31572a066bd6cf308276ca6fce5e67b724dc163
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-20 (Mon, 20 May 2019)

  Changed paths:
    M snek-code.c
    M snek-error.c
    M snek-func.c
    M snek-math.c
    M snek.h

  Log Message:
  -----------
  Share new 'snek_error_args' among common users

I found four places validating formal/actual count matching. Now they
all use the same underlying function to avoid duplicating the message.

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


  Commit: fbfde9cc0977d222def47b88646e1c218bff49fc
      https://github.com/keith-packard/snek/commit/fbfde9cc0977d222def47b88646e1c218bff49fc
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-20 (Mon, 20 May 2019)

  Changed paths:
    M snek-error.c
    M snek-parse.c
    M snek.h

  Log Message:
  -----------
  Share 'snek_error_syntax' among the two places reporting syntax errors

Reduces size of strings

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


  Commit: be4475cfa95f5839753dbbd92ec69abc381060f0
      https://github.com/keith-packard/snek/commit/be4475cfa95f5839753dbbd92ec69abc381060f0
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-20 (Mon, 20 May 2019)

  Changed paths:
    M snek-builtin.c
    M snek-code.c
    M snek-poly.c
    M snek.h

  Log Message:
  -----------
  Create snek_soffset_to_poly

Use this instead of passing soffset values to float_to_poly so that
the conversion code can be shared.

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


  Commit: 04498fd67fe67e1d978190e6ad9f72513482fe3d
      https://github.com/keith-packard/snek/commit/04498fd67fe67e1d978190e6ad9f72513482fe3d
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-20 (Mon, 20 May 2019)

  Changed paths:
    M snek-code.c
    M snek-gram.ll
    M snek.h

  Log Message:
  -----------
  Change calling convention for snek_code_add_slice

Pass pre-computed bitfield of slice parameters instead of separate
booleans. Compute these with multiplication in the grammar instead of
?: in the code generator.

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


  Commit: 6889202e262db62b801a44ce8ae3c8b6755c65f1
      https://github.com/keith-packard/snek/commit/6889202e262db62b801a44ce8ae3c8b6755c65f1
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-20 (Mon, 20 May 2019)

  Changed paths:
    M macosx/Makefile
    M snek-install.defs

  Log Message:
  -----------
  macosx: Only build Mac OSX snek binary if SNEKMAC is non-empty

Also, don't set SNEKMAC by default.

Building snek for mac os x requires a remote mac os X machine

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


  Commit: 2b1470d6b5b6271a4952ea0010cee408e07a8ebb
      https://github.com/keith-packard/snek/commit/2b1470d6b5b6271a4952ea0010cee408e07a8ebb
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-20 (Mon, 20 May 2019)

  Changed paths:
    M doc/Makefile

  Log Message:
  -----------
  doc: Remove generated coderay-asciidoctor.css file in 'make clean'

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


  Commit: f703e3a2603934a00bdcaef35cbe51dff897beb2
      https://github.com/keith-packard/snek/commit/f703e3a2603934a00bdcaef35cbe51dff897beb2
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-20 (Mon, 20 May 2019)

  Changed paths:
    M avr/ao-usb-avr.c

  Log Message:
  -----------
  avr: Remove some code from USB driver

Don't initialize ep0 in/out lens in set_ep0. These values
get set when processing relevant setup packets.

Assign instead of modify registers.

As all bytes sent with ep0_queue_byte were always zero, remove
the ability to send arbitrary bytes.

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


  Commit: d41066f95d12cae08a086c934b4655fa01f5d5e6
      https://github.com/keith-packard/snek/commit/d41066f95d12cae08a086c934b4655fa01f5d5e6
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-20 (Mon, 20 May 2019)

  Changed paths:
    M avr/snek-avr.h
    M itsybitsy-snek/ao-pins.h

  Log Message:
  -----------
  itsybitsy-snek: Remove a couple functions from the binary

Use strnlen_P instead of strlen_P as the former is used by avr-libc
internally.

Replace getc(stdin) with direct call to snek_avr_file.get(stdin) to save
the space required by fgetc.

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


  Commit: a51a1131544b3386b22215b1a9cc1fc5a59bd9c4
      https://github.com/keith-packard/snek/commit/a51a1131544b3386b22215b1a9cc1fc5a59bd9c4
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-20 (Mon, 20 May 2019)

  Changed paths:
    M itsybitsy-snek/ao-snek-itsybitsy.c
    M itsybitsy-snek/itsybitsy.builtin

  Log Message:
  -----------
  itsybitsy-snek: Add random number generator

Use a 16-bit generator to save some space.

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


  Commit: cf6889ba0991abeee35cc51e346572bae1787e93
      https://github.com/keith-packard/snek/commit/cf6889ba0991abeee35cc51e346572bae1787e93
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-20 (Mon, 20 May 2019)

  Changed paths:
    M itsybitsy-snek/ao-snek-itsybitsy.c
    M itsybitsy-snek/itsybitsy.builtin

  Log Message:
  -----------
  itsybitsy-snek: Add onfor builtin

This should be the last missing builtin.

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


  Commit: 7716d03f72a5ebb19d6ed8b7686ef9a741073ddc
      https://github.com/keith-packard/snek/commit/7716d03f72a5ebb19d6ed8b7686ef9a741073ddc
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-20 (Mon, 20 May 2019)

  Changed paths:
    M doc/snek.adoc
    M itsybitsy-snek/itsybitsy.builtin

  Log Message:
  -----------
  itsybitsy-snek: Add pin names in itsybitsy.builtin

Just barely enough space in the ROM for these.

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


  Commit: b90d605af29d1e5d1c775196fd9cfa1a8abf8614
      https://github.com/keith-packard/snek/commit/b90d605af29d1e5d1c775196fd9cfa1a8abf8614
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-20 (Mon, 20 May 2019)

  Changed paths:
    M itsybitsy-snek/ao-snek-itsybitsy.c

  Log Message:
  -----------
  itsybitsy-snek: Fix ADC mappings

Unlike the duemilanove, the itsybitsy ADC pin mapping is
not simple. Use a table to map from pin number to ADC number.

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


  Commit: 8532164c1ed151c77f7de811f1256abe5b7d3e97
      https://github.com/keith-packard/snek/commit/8532164c1ed151c77f7de811f1256abe5b7d3e97
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-20 (Mon, 20 May 2019)

  Changed paths:
    M itsybitsy-snek/Makefile
    M itsybitsy-snek/snek-itsybitsy-install.in

  Log Message:
  -----------
  itsybitsy-snek: Add '-quick' mode to snek-itsybitsy-install

This disables the verify step and saves time during install.

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


  Commit: aedb18b3f6194413d353a5c86e97f6d6ae46dbb0
      https://github.com/keith-packard/snek/commit/aedb18b3f6194413d353a5c86e97f6d6ae46dbb0
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-21 (Tue, 21 May 2019)

  Changed paths:
    M snekde/snekde.py

  Log Message:
  -----------
  snekde: Limit cursor motion to width of screen

Keep curses from crashing when we try to move right of the screen.

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


  Commit: 55f7b6f70f1d249fa5fc07ac09d52d419fed0778
      https://github.com/keith-packard/snek/commit/55f7b6f70f1d249fa5fc07ac09d52d419fed0778
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-21 (Tue, 21 May 2019)

  Changed paths:
    M snekde/snekde.py

  Log Message:
  -----------
  snekde: Make <return> in repl win work more like emacs shell

Hitting <return> in a line other than the last line copies that line
to the end before sending it to the serial line

If there's no device connected, hitting return doesn't do anything.

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


  Commit: 10bd1a9aec65086c73d2c5273bcdcc041e511982
      https://github.com/keith-packard/snek/commit/10bd1a9aec65086c73d2c5273bcdcc041e511982
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-21 (Tue, 21 May 2019)

  Changed paths:
    M itsybitsy-snek/snek-itsybitsy-install.in
    M snek-duino/snek-duino-install.in

  Log Message:
  -----------
  snek-duino/itsybitsy-snek: Disable error checking when programming fuse bytes

The ATmega32u4 seems to return random values for the high four bits of
the efuse byte; according to the docs, those aren't used. This makes
verification fail, which causes any subsequent operations to be
skipped. Using -V -c makes avrdude skip verification of those
bytes. We don't want to skip verification of the firmware though, so
that's now done in a separtate step.

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


  Commit: 4fc5ba7cf2e134a488337cdb31a5d6b30be6d89a
      https://github.com/keith-packard/snek/commit/4fc5ba7cf2e134a488337cdb31a5d6b30be6d89a
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-21 (Tue, 21 May 2019)

  Changed paths:
    M doc/snek.adoc
    M snekde/snekde.py

  Log Message:
  -----------
  snekde: Add file dialog

This lets the user look at the file system when loading/saving programs

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


  Commit: e7b5c9dc684b4db1e3bb9f24e0b39f76cecbef80
      https://github.com/keith-packard/snek/commit/e7b5c9dc684b4db1e3bb9f24e0b39f76cecbef80
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-21 (Tue, 21 May 2019)

  Changed paths:
    M examples/neopixel.py
    A examples/neopixels.py

  Log Message:
  -----------
  examples: Create one-neopixel example, save old one as neopixels

The existing neopixel.py example uses 10 devices, which only the
Circuit Playground Express board has. Provide a simpler one-neopixel
version and call that neopixel.py leaving the old 10-neopixel example
as neopixels.py

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


  Commit: aeed196a0c6af53a73a53c69ebc87922b36ae9e4
      https://github.com/keith-packard/snek/commit/aeed196a0c6af53a73a53c69ebc87922b36ae9e4
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-21 (Tue, 21 May 2019)

  Changed paths:
    M windows/Makefile
    M windows/snek.cfg.in

  Log Message:
  -----------
  windows: Generate list of firmware in snek.cfg automatically

This avoids having to keep the two lists in sync

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


  Commit: 2102a3972f271124d9c173ba426ac3ef99c458d5
      https://github.com/keith-packard/snek/commit/2102a3972f271124d9c173ba426ac3ef99c458d5
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-21 (Tue, 21 May 2019)

  Changed paths:
    M doc/snek.adoc
    A feather-snek/.gitignore
    A feather-snek/Makefile
    A feather-snek/ao-pins.h
    A feather-snek/feather-snek.builtin
    M snek-install.defs

  Log Message:
  -----------
  feather-snek: Add explicit Feather M0 Express support

The Adafruit Feather M0 Express is almost the same as the Metro M0
Express, but it has a couple of pin differences making it useful to
create an explicit set of firmware. In particular, the on-board
Neopixel is connected to D8 instead of a separate pin.

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


  Commit: 33d480f76f8b45a27ac11eadf0e5fcf9ba8c37ae
      https://github.com/keith-packard/snek/commit/33d480f76f8b45a27ac11eadf0e5fcf9ba8c37ae
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-21 (Tue, 21 May 2019)

  Changed paths:
    M snek.defs

  Log Message:
  -----------
  Bump to 0.98

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


Compare: https://github.com/keith-packard/snek/compare/4790ae1d2ccf...33d480f76f8b


More information about the Snek mailing list