[Snek] [keith-packard/snek] 65557d: snekserver: allow network connections to a single ...

Keith Packard noreply at github.com
Tue Aug 10 16:39:22 PDT 2021


  Branch: refs/heads/debian
  Home:   https://github.com/keith-packard/snek
  Commit: 65557dcbac93699a6433776864cf09ad65480e08
      https://github.com/keith-packard/snek/commit/65557dcbac93699a6433776864cf09ad65480e08
  Author: Misha Gusarov <dottedmag at dottedmag.net>
  Date:   2020-10-11 (Sun, 11 Oct 2020)

  Changed paths:
    M ports/ev3/.gitignore
    M ports/ev3/Makefile
    M ports/ev3/snek-ev3.h
    M ports/ev3/snek-main.c
    A ports/ev3/snekserver.c
    M ports/ev3/utils.c
    M ports/ev3/utils.h

  Log Message:
  -----------
  snekserver: allow network connections to a single Snek instance

This functionality ought to be implemented in inetd, systemd or socat, but none
of them provide "replace old client with new one" option.

Signed-off-by: Misha Gusarov <dottedmag at dottedmag.net>


  Commit: 36a617ba2702f4a3f4371d01cf2486ebba92f932
      https://github.com/keith-packard/snek/commit/36a617ba2702f4a3f4371d01cf2486ebba92f932
  Author: Misha Gusarov <dottedmag at dottedmag.net>
  Date:   2020-10-11 (Sun, 11 Oct 2020)

  Changed paths:
    M ports/ev3/snek-main.c

  Log Message:
  -----------
  Fix broken non-interactive mode in snek-ev3

snek_getc() was completely confused, so snek-ev3 --file X didn't work.

Switch to -i/--interactive while doing so to match snek-posix.

Signed-off-by: Misha Gusarov <dottedmag at dottedmag.net>


  Commit: b6ef826bdb54d54c5d0ff006a29250fcd840b0fe
      https://github.com/keith-packard/snek/commit/b6ef826bdb54d54c5d0ff006a29250fcd840b0fe
  Author: Misha Gusarov <dottedmag at dottedmag.net>
  Date:   2020-10-11 (Sun, 11 Oct 2020)

  Changed paths:
    M ports/ev3/Makefile
    M ports/ev3/snek-ev3.builtin
    M ports/ev3/snek-main.c
    M ports/ev3/snekserver.c
    M ports/ev3/utils.c
    M ports/ev3/utils.h

  Log Message:
  -----------
  Implement reset, eeprom.write, eeprom.erase, eeprom.show in snek-ev3

Signed-off-by: Misha Gusarov <dottedmag at dottedmag.net>


  Commit: 11924eaaaf8884e14de60e999907cdf38f3bef55
      https://github.com/keith-packard/snek/commit/11924eaaaf8884e14de60e999907cdf38f3bef55
  Author: Misha Gusarov <dottedmag at dottedmag.net>
  Date:   2020-10-11 (Sun, 11 Oct 2020)

  Changed paths:
    M ports/ev3/snek-main.c
    M ports/ev3/snekserver.c

  Log Message:
  -----------
  ev3: Add "raw" mode that enables line editing/echoing in Snek

Mu/snekde do not do any local echoing/line editing, so this mode is enabled by
snekserver.

Signed-off-by: Misha Gusarov <dottedmag at dottedmag.net>


  Commit: 6ae24cc4277374e965842f2bd84da421a268f4e5
      https://github.com/keith-packard/snek/commit/6ae24cc4277374e965842f2bd84da421a268f4e5
  Author: Misha Gusarov <dottedmag at dottedmag.net>
  Date:   2020-10-12 (Mon, 12 Oct 2020)

  Changed paths:
    M ports/ev3/motors.c

  Log Message:
  -----------
  ev3: Fix onfor() ignoring fractional parts of a second

Signed-off-by: Misha Gusarov <dottedmag at dottedmag.net>
Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: 430c4aefa49f249a44903f7c72caae6060dae199
      https://github.com/keith-packard/snek/commit/430c4aefa49f249a44903f7c72caae6060dae199
  Author: Keith Packard <keithp at keithp.com>
  Date:   2020-11-03 (Tue, 03 Nov 2020)

  Changed paths:
    M Makefile

  Log Message:
  -----------
  Add 'black-reformat' make target

Useful to get code formatted before merging

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


  Commit: 718bdf67199fd771d270734f0ebc70ef981712a0
      https://github.com/keith-packard/snek/commit/718bdf67199fd771d270734f0ebc70ef981712a0
  Author: Keith Packard <keithp at keithp.com>
  Date:   2020-11-03 (Tue, 03 Nov 2020)

  Changed paths:
    M ports/esp32/loadable_elf_example_test.py
    M test/pass-trailing-comma.py

  Log Message:
  -----------
  Reformat a couple of python files

Just ran 'make black-reformat'

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


  Commit: c9983132be909cd0bf175fbcb8a8c6a6c28423bf
      https://github.com/keith-packard/snek/commit/c9983132be909cd0bf175fbcb8a8c6a6c28423bf
  Author: Keith Packard <keithp at keithp.com>
  Date:   2020-11-03 (Tue, 03 Nov 2020)

  Changed paths:
    M .github/Dockerfile

  Log Message:
  -----------
  .github: Update qemu to current custom versions

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


  Commit: 87cb807238cb6f20c42e477fb9759898f922f7c3
      https://github.com/keith-packard/snek/commit/87cb807238cb6f20c42e477fb9759898f922f7c3
  Author: Keith Packard <keithp at keithp.com>
  Date:   2020-11-03 (Tue, 03 Nov 2020)

  Changed paths:
    A .github/Dockerfile-black
    A .github/workflows/black.yml

  Log Message:
  -----------
  .github: Add workflow to check snek/python formatting with black

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


  Commit: aa484e29eca2cb7561d87999dad8e2fa4e3fcf2d
      https://github.com/keith-packard/snek/commit/aa484e29eca2cb7561d87999dad8e2fa4e3fcf2d
  Author: Keith Packard <keithp at keithp.com>
  Date:   2020-11-10 (Tue, 10 Nov 2020)

  Changed paths:
    M chips/atmega/snek-atmega-serial.c
    A ports/narrow-1284/Makefile
    A ports/narrow-1284/machine/ieeefp.h
    A ports/narrow-1284/snek-narrow-1284-install.1
    A ports/narrow-1284/snek-narrow-1284-install.in
    A ports/narrow-1284/snek-narrow-1284-math.builtin
    A ports/narrow-1284/snek-narrow-1284.builtin
    A ports/narrow-1284/snek-narrow-1284.c
    A ports/narrow-1284/snek-narrow-1284.h
    M snek-install.defs

  Log Message:
  -----------
  ports/narrow-1284: Add support for Narrow 1284 board

This board has an ATmega 1284 processor and is being sold through
Crowd Supply.

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


  Commit: 358ef187a10c932b8843d46aad51a65d9f91b273
      https://github.com/keith-packard/snek/commit/358ef187a10c932b8843d46aad51a65d9f91b273
  Author: Keith Packard <keithp at keithp.com>
  Date:   2020-12-07 (Mon, 07 Dec 2020)

  Changed paths:
    A chips/atmega/machine/ieeefp.h
    R ports/mega/machine/ieeefp.h
    R ports/narrow-1284/machine/ieeefp.h

  Log Message:
  -----------
  Move atmega ieeefp.h file to chips/atmega/machine

Instead of having more than one of these.

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


  Commit: bacc7a47982a227f708fac61f2431ac45ffdd26f
      https://github.com/keith-packard/snek/commit/bacc7a47982a227f708fac61f2431ac45ffdd26f
  Author: Keith Packard <keithp at keithp.com>
  Date:   2020-12-07 (Mon, 07 Dec 2020)

  Changed paths:
    M chips/atmega/snek-328p.builtin
    M chips/atmega/snek-atmega-eeprom.c
    M chips/atmega/snek-atmega-serial.c
    M ports/mega/snek-mega.builtin
    M ports/narrow-1284/snek-narrow-1284.builtin
    M snekde/snekde.py

  Log Message:
  -----------
  chips/atmega: Make EEPROM size target-specific. Add sync eeprom

328p has 1024 bytes of eeprom, 1284 and 2560 have 4096 bytes. Devices
missing xon/xoff support need synchronous put support where the target
sends a CR every 16 bytes and the host waits for that. This avoids
overrunning the serial input buffer.

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


  Commit: 29bdeb9bed5aa32265a3efab1f1db7064e90c1e4
      https://github.com/keith-packard/snek/commit/29bdeb9bed5aa32265a3efab1f1db7064e90c1e4
  Author: Keith Packard <keithp at keithp.com>
  Date:   2020-12-07 (Mon, 07 Dec 2020)

  Changed paths:
    M chips/atmega/snek-328p.c
    M chips/qemu/snek-qemu.c
    M chips/samd21/snek-altos.c
    M ports/esp32/main/snek-esp32.c
    M ports/hifive1revb/snek-metal-builtin.c
    M ports/mega/snek-mega.c
    M ports/narrow-1284/Makefile
    M ports/narrow-1284/snek-narrow-1284.c

  Log Message:
  -----------
  Use all available bits for random.randrange

Don't truncate to snek_soffset_t and allow random.randrange to work up
to the largest float

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


  Commit: 9c83d0966c5795133563b93aea746dd47591bb0a
      https://github.com/keith-packard/snek/commit/9c83d0966c5795133563b93aea746dd47591bb0a
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-01-30 (Sat, 30 Jan 2021)

  Changed paths:
    M snek.svg

  Log Message:
  -----------
  Remove stray <circle> in snek.svg

This doesn't appear to contribute to the rendered image and elicits a
warning from asciidoctor.

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


  Commit: db90df7a563d44f68703066deecb26badf6e06fb
      https://github.com/keith-packard/snek/commit/db90df7a563d44f68703066deecb26badf6e06fb
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-01-30 (Sat, 30 Jan 2021)

  Changed paths:
    M test/Makefile
    A test/pass-random.py

  Log Message:
  -----------
  test: Add pass-random.py

This tests to see if the 'randrange' function returns values outside
of the specified range.

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


  Commit: 9955a82411a71e1b885df2f0886e5c7168273b59
      https://github.com/keith-packard/snek/commit/9955a82411a71e1b885df2f0886e5c7168273b59
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-02 (Tue, 02 Feb 2021)

  Changed paths:
    M snek-exec.c
    M snek-gram.ll
    M snek-list.c
    M snek-parse.c
    M snek-string.c
    M snek.defs

  Log Message:
  -----------
  Add SNEK_NO_SLICE build option

List and string slices take a bunch of code. Make them optional so
that smaller platforms can save that space.

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


  Commit: 67abfbd8c5f620b5ed35f07f16aeb80f66eee598
      https://github.com/keith-packard/snek/commit/67abfbd8c5f620b5ed35f07f16aeb80f66eee598
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-02 (Tue, 02 Feb 2021)

  Changed paths:
    M chips/atmega/snek-328p.c
    M chips/atmega/snek-atmega-time.c

  Log Message:
  -----------
  chips/atmega: Add 'tone' support on D5

This reprograms timer0 to generate tones on pin D5. To do that, the
main clock now uses timer2.

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


  Commit: 6f265a2b33c9aee0a7b15a5d6982e4fd16799ea9
      https://github.com/keith-packard/snek/commit/6f265a2b33c9aee0a7b15a5d6982e4fd16799ea9
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-02 (Tue, 02 Feb 2021)

  Changed paths:
    M snek-exec.c
    M snek-gram.ll
    M snek-lex.c
    M snek-list.c
    M snek-parse.c
    M snek-poly.c
    M snek-print.c
    M snek-string.c
    M snek.defs
    M snek.h

  Log Message:
  -----------
  Add SNEK_NO_DICT build option

This option removes dictionaries from the language, saving
considerable space in ROM.

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


  Commit: e35ac1625868575a6a5636f1d3b2e39839d184e6
      https://github.com/keith-packard/snek/commit/e35ac1625868575a6a5636f1d3b2e39839d184e6
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-02 (Tue, 02 Feb 2021)

  Changed paths:
    M ports/uno/Makefile
    M ports/uno/snek-uno-install.in

  Log Message:
  -----------
  ports/uno: Switch to 115200 baud, require sync eeprom loading

Instead of relying on flow control when loading programs, use the
synchronous loading function which sends \r after each chunk that the
host can use to avoid overflowing the serial buffer.

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


  Commit: 3040eede3956da4c933f0e8a32d1a71a82d747c8
      https://github.com/keith-packard/snek/commit/3040eede3956da4c933f0e8a32d1a71a82d747c8
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-02 (Tue, 02 Feb 2021)

  Changed paths:
    A chips/atmega/snek-atmega-i2c.c
    A snek-i2c.h

  Log Message:
  -----------
  chips/atmega: Add i2c driver

This adds a basic i2c interface. The two functions exposed are:

	void snek_i2c_put(uint8_t addr, uint8_t reg, uint8_t val);

	uint8_t snek_i2c_get(uint8_t addr, uint8_t reg);

These functions read/write individual byte registers in the device
with the specified address The address is left-justified with the LSB
read-bit set to zero.

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


  Commit: 0ae9d79dad44eac795d11b84eb7e4aceb8c5416f
      https://github.com/keith-packard/snek/commit/0ae9d79dad44eac795d11b84eb7e4aceb8c5416f
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-02 (Tue, 02 Feb 2021)

  Changed paths:
    A snek-bmp280.c
    A snek-lis3dh.c

  Log Message:
  -----------
  Add BMP280 and LIS3DH drivers

These two i2c devices are found in the Grove Beginner Kit.

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


  Commit: 846d9703e32d9bdad323cd34127e359dcfb11753
      https://github.com/keith-packard/snek/commit/846d9703e32d9bdad323cd34127e359dcfb11753
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-02 (Tue, 02 Feb 2021)

  Changed paths:
    A ports/grove/.gitignore
    A ports/grove/Makefile
    A ports/grove/snek-grove-install.1
    A ports/grove/snek-grove-install.in
    A ports/grove/snek-grove.builtin
    M snek-install.defs

  Log Message:
  -----------
  snek/grove: Add port for Seeed's Grove Beginner Kit

This supports many of the devices supplied in this kit, including:

 1. LED
 2. Buzzer (with tone function)
 3. Light sensor
 4. Sound sensor
 5. Button
 6. Rotary Potentiometer
 7. Air Pressure
 8. 3-Axis Acceleration

Still to add:

 1. OLED display
 2. Temperature and Humidity

Of course, the ROM is full at this point, so adding these presents a
significant challenge.

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


  Commit: 188bfd775152f55a49d376a863951f8c6cb90779
      https://github.com/keith-packard/snek/commit/188bfd775152f55a49d376a863951f8c6cb90779
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-02 (Tue, 02 Feb 2021)

  Changed paths:
    M chips/atmega/snek-atmega-eeprom.c
    M chips/avr/snek-avr-eeprom.c
    M chips/samd21/snek-eeprom.c
    M ports/mega/snek-mega.builtin
    M snekde/snekde.py

  Log Message:
  -----------
  chips, snekde: Update eeprom writing code to work synchronously

The synchronous eeprom writing code works by sending a carriage-return
after each 16 bytes received. This makes the process more reliable,
even when the underlying serial link has no flow control.

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


  Commit: 94814cdb9c8ccf546e682e23f8ddb2919518f3be
      https://github.com/keith-packard/snek/commit/94814cdb9c8ccf546e682e23f8ddb2919518f3be
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-02 (Tue, 02 Feb 2021)

  Changed paths:
    M ports/mega/Makefile
    A snek-i2c.builtin
    A snek-i2c.c

  Log Message:
  -----------
  ports/mega: Add bare i2c API to mega port

Get/put register values to any i2c device.

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


  Commit: fbd90a10b8719c2ab7476c3d4429f0a8ea6a6449
      https://github.com/keith-packard/snek/commit/fbd90a10b8719c2ab7476c3d4429f0a8ea6a6449
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-03 (Wed, 03 Feb 2021)

  Changed paths:
    M ports/duemilanove/.gitignore
    M ports/duemilanove/Makefile
    R ports/duemilanove/snek-duemilanove-install.1
    A ports/duemilanove/snek-duemilanove-install.1.in
    R ports/mega/Arduino-usbserial-atmega16u2-Mega2560-Rev3.hex
    R ports/uno/Arduino-usbserial-atmega16u2-Uno-Rev3.hex
    M ports/uno/Makefile
    R ports/uno/snek-uno-install.1
    R ports/uno/snek-uno-install.in

  Log Message:
  -----------
  ports/uno: Use duemilanove files to build this target

Uno is identical to duemilanove except for the name and the default
tty port used when installing.

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


  Commit: 0be07157912ce8d0e86c801406c6cbfa580ea76e
      https://github.com/keith-packard/snek/commit/0be07157912ce8d0e86c801406c6cbfa580ea76e
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-03 (Wed, 03 Feb 2021)

  Changed paths:
    M chips/atmega/snek-atmega-i2c.c

  Log Message:
  -----------
  chips/atmega: Support atmega with i2c on portd

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


  Commit: 950e734eaf6d45b4bf0c43fce19736a39b5c10d4
      https://github.com/keith-packard/snek/commit/950e734eaf6d45b4bf0c43fce19736a39b5c10d4
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-03 (Wed, 03 Feb 2021)

  Changed paths:
    M ports/posix/snek-main.c
    M snek-io.c
    M snek-parse.c

  Log Message:
  -----------
  Reset parser on interrupt

Check for snek_abort after snek_lex returns, returning
parse_return_error if true. This makes sure the parser is completely
reset on interrupt, providing a reliable way to get back to a clean
state.

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


  Commit: 12b6a2a9642533cf2c9a8f439197fc9db65dc1b4
      https://github.com/keith-packard/snek/commit/12b6a2a9642533cf2c9a8f439197fc9db65dc1b4
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-03 (Wed, 03 Feb 2021)

  Changed paths:
    M chips/atmega/snek-atmega-eeprom.c
    M chips/atmega/snek-atmega-serial.c
    M chips/avr/snek-avr-eeprom.c
    M chips/samd21/snek-eeprom.c

  Log Message:
  -----------
  Abandon eeprom reading after interrupt or error

Stop reading from eeprom when we encounter an error or the user
interrupts execution. This makes sure a ^C can get back to a known
state.

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


  Commit: 079fbc1044dd504687b334143695959908e93ef9
      https://github.com/keith-packard/snek/commit/079fbc1044dd504687b334143695959908e93ef9
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-03 (Wed, 03 Feb 2021)

  Changed paths:
    M ports/mega/Makefile
    M ports/mega/snek-mega-install.1
    M ports/mega/snek-mega-install.in

  Log Message:
  -----------
  ports/mega: Remove atmega16u2 bits from snek-mega-install

Now that loading is synchronous on this device, leave the default boot
loader in place and use that.

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


  Commit: 4304a1fad6e1343242df06bae15ab26aa1f52b9c
      https://github.com/keith-packard/snek/commit/4304a1fad6e1343242df06bae15ab26aa1f52b9c
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-03 (Wed, 03 Feb 2021)

  Changed paths:
    M ports/mega/snek-mega.c

  Log Message:
  -----------
  ports/mega: Switch clock to timer 2

This follows the other atmega users which want to allow timer 2 to be
used for the tone operation.

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


  Commit: 2138e2562837cd1cef9ef6dd4c32c204c8ca05eb
      https://github.com/keith-packard/snek/commit/2138e2562837cd1cef9ef6dd4c32c204c8ca05eb
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-03 (Wed, 03 Feb 2021)

  Changed paths:
    M snekde/snekde.py

  Log Message:
  -----------
  snekde: Repaint code window after loading file

Make sure the user sees the updated bits.

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


  Commit: 598066b35811ac6a5c6198cd9b1170e053febcc7
      https://github.com/keith-packard/snek/commit/598066b35811ac6a5c6198cd9b1170e053febcc7
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-04 (Thu, 04 Feb 2021)

  Changed paths:
    A snek-draw.builtin
    A snek-ssd1315.c

  Log Message:
  -----------
  Add SSD1315 driver (128x64 OLED screen via I2C)

This is the screen that comes with the Grove Beginner Kit. To work
with the 328p's memory limitations, this driver creates a half-scale
bitmap and then expands it.

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


  Commit: 2f91314d05bff6da1c5805b847450a7d17dbc27b
      https://github.com/keith-packard/snek/commit/2f91314d05bff6da1c5805b847450a7d17dbc27b
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M chips/atmega/snek-328p.builtin
    M chips/atmega/snek-atmega.h
    M ports/mega/snek-mega.builtin

  Log Message:
  -----------
  chips/atmega: Increase parse stack size to 128 by shrinking heap

The tiny 64 element parse stack could be overflowed by nesting parens
twice. The heap is shrunk to 768 bytes so that the stack will fit.

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


  Commit: 7febea141da21fb3ad63d0fe9de07d076256ba2f
      https://github.com/keith-packard/snek/commit/7febea141da21fb3ad63d0fe9de07d076256ba2f
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M chips/atmega/snek-atmega-i2c.c
    M snek-i2c.h

  Log Message:
  -----------
  Expose low-level i2c interface

This lets drivers use a lower-level interface than register get/put.

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


  Commit: 699616ee76456dbe1642e40abdb49d2c819171fd
      https://github.com/keith-packard/snek/commit/699616ee76456dbe1642e40abdb49d2c819171fd
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M snek-builtin.py

  Log Message:
  -----------
  Allow '#if defined' in .builtin files

All that was necessary was to pass any '#endif' lines through that
didn't match a #ifdef

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


  Commit: 9d86ef28bfbb3f8b2380a4fcac43102021a2b4eb
      https://github.com/keith-packard/snek/commit/9d86ef28bfbb3f8b2380a4fcac43102021a2b4eb
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M snek-gram.ll

  Log Message:
  -----------
  Fix array index parsing when SNEK_SLICE is not set

The replacement code wasn't pushing the slice indicator to the value
stack, which broke parsing. Fix by removing the code which checks for
that entry.

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


  Commit: 8dc156198707457b6520a9b4ee5d4d29700489d5
      https://github.com/keith-packard/snek/commit/8dc156198707457b6520a9b4ee5d4d29700489d5
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M snek-input.c

  Log Message:
  -----------
  Allow portions of snek-input.c to be used in isolation

Just avoid compiler warnings about the unused functions

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


  Commit: 5c64fa8af4b14a8a85e9440eb631defb43ded3d1
      https://github.com/keith-packard/snek/commit/5c64fa8af4b14a8a85e9440eb631defb43ded3d1
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M ports/grove/Makefile
    M ports/grove/snek-grove.builtin

  Log Message:
  -----------
  ports/grove: Add OLED, remove baro

The OLED seems like more fun than the baro sensor, and we don't have
space for both drivers.

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


  Commit: 0db0eba29c4a7edc454e5d07025c7e4ddf900cd9
      https://github.com/keith-packard/snek/commit/0db0eba29c4a7edc454e5d07025c7e4ddf900cd9
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M ports/duemilanove/.gitignore
    M ports/duemilanove/Makefile
    M ports/uno/.gitignore

  Log Message:
  -----------
  ports/duemilanove: Clean generated man page

Now that the man page is generated to share with the uno port, it
needs to be cleaned.

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


  Commit: 66c903264a76c5cede55ac2192aae5fc63398a42
      https://github.com/keith-packard/snek/commit/66c903264a76c5cede55ac2192aae5fc63398a42
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M snekde/snekde.py
    M test/pass-random.py

  Log Message:
  -----------
  Reformat code with black

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


  Commit: e1cbf2defe51c15462282fcc213543548726cbfb
      https://github.com/keith-packard/snek/commit/e1cbf2defe51c15462282fcc213543548726cbfb
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M .github/Dockerfile

  Log Message:
  -----------
  .github: Update qemu versions

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


  Commit: 46d40bff932e775b580f312364f157615fcd5811
      https://github.com/keith-packard/snek/commit/46d40bff932e775b580f312364f157615fcd5811
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M ports/mega/Makefile

  Log Message:
  -----------
  ports/mega: Remove USBSERIAL_HEX from mega install

This file isn't present anymore

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


  Commit: 0a22b965ff74881f2037182207cf2e91210048ed
      https://github.com/keith-packard/snek/commit/0a22b965ff74881f2037182207cf2e91210048ed
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M doc/snek.adoc
    M snek-install.defs

  Log Message:
  -----------
  Remove more references to updated boot loaders

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


  Commit: 1fa953a2a133769c5186819c9464befb7feb5bf6
      https://github.com/keith-packard/snek/commit/1fa953a2a133769c5186819c9464befb7feb5bf6
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-10 (Wed, 10 Feb 2021)

  Changed paths:
    A ports/narrow-1284/.gitignore

  Log Message:
  -----------
  ports/narrow-1284: Add .gitignore

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


  Commit: 6a4326bb46053bc3bb4b115b5b91ad44e8f13db5
      https://github.com/keith-packard/snek/commit/6a4326bb46053bc3bb4b115b5b91ad44e8f13db5
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-10 (Wed, 10 Feb 2021)

  Changed paths:
    M chips/samd21/ao-snek.h
    M chips/samd21/snek-gpio.c

  Log Message:
  -----------
  chips/samd21: Add SNEK_PIN_INVERT mode

This inverts the values sent to a pin for cases where a peripheral is
active low.

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


  Commit: f14e515283a601c939ca0d2e42e6304a2b2e55df
      https://github.com/keith-packard/snek/commit/f14e515283a601c939ca0d2e42e6304a2b2e55df
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-02-10 (Wed, 10 Feb 2021)

  Changed paths:
    A ports/xiao/.gitignore
    A ports/xiao/Makefile
    A ports/xiao/ao-pins.h
    A ports/xiao/snek-xiao.builtin
    M snek-install.defs

  Log Message:
  -----------
  ports/xiao: Add port to Seeed XIAO

This is a tiny SAMD21-based board with a few built-in LEDs

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


  Commit: a403a50193e33e70a95b43205955c3f6924fde7c
      https://github.com/keith-packard/snek/commit/a403a50193e33e70a95b43205955c3f6924fde7c
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-03-23 (Tue, 23 Mar 2021)

  Changed paths:
    M README.md

  Log Message:
  -----------
  README.md: List supported boards.

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


  Commit: 53a9c819d27a1b975545350d24622bf1134b8929
      https://github.com/keith-packard/snek/commit/53a9c819d27a1b975545350d24622bf1134b8929
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-03-27 (Sat, 27 Mar 2021)

  Changed paths:
    M snek-strtof.c

  Log Message:
  -----------
  Remove unused 'FL_MINUS' flag in strtof

The lexer leaves the unary minus to the parser, so strtof will never
get a string with a sign. That code has been removed, but the flag was
left hanging around unused.

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


  Commit: 2da490be45e017d1c34c2c5c449f1d597aed05da
      https://github.com/keith-packard/snek/commit/2da490be45e017d1c34c2c5c449f1d597aed05da
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-03-29 (Mon, 29 Mar 2021)

  Changed paths:
    M test/Makefile
    A test/pass-precedence.py

  Log Message:
  -----------
  test: Add operator precedence tests

Snek has inverted the precedence of bitwise and and xor operators;
this test checks those and other less common operators to make sure
they are ordered correctly.

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


  Commit: 4eab0a09988136524557238da8f24d7e2d149b18
      https://github.com/keith-packard/snek/commit/4eab0a09988136524557238da8f24d7e2d149b18
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-03-29 (Mon, 29 Mar 2021)

  Changed paths:
    M snek-gram.ll

  Log Message:
  -----------
  Invert precedence of bitwise and (&) and xor (^) operators

Python makes bitwise xor lower precedence than bitwise and

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


  Commit: a7eadabf673a8387850300eed41105a1cd92e30e
      https://github.com/keith-packard/snek/commit/a7eadabf673a8387850300eed41105a1cd92e30e
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-04-13 (Tue, 13 Apr 2021)

  Changed paths:
    M ports/posix/snek-main.c

  Log Message:
  -----------
  ports/posix: Treat sigint specially to avoid exiting on error

Need to figure out if snek_abort was set due to sigint or some other
error and handle that specially. Otherwise, snek would exit on the
first syntax error found in the input.

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


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

  Changed paths:
    M chips/atmega/snek-328p.c

  Log Message:
  -----------
  chips/atmega: Clock was off by *2 after tone changes

The patch adding tone support introduced an error in the clock timer
configuration that left it running twice as fast as desired.

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


  Commit: 7382c774cafdb3d3934a567cc614d9c992423764
      https://github.com/keith-packard/snek/commit/7382c774cafdb3d3934a567cc614d9c992423764
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-05-10 (Mon, 10 May 2021)

  Changed paths:
    M chips/atmega/snek-atmega-eeprom.c

  Log Message:
  -----------
  chips/atmega: Use unsigned value for eeprom offset

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


  Commit: 79fae8d0d19c484980537ceb9fe98b160a62efaf
      https://github.com/keith-packard/snek/commit/79fae8d0d19c484980537ceb9fe98b160a62efaf
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-05-10 (Mon, 10 May 2021)

  Changed paths:
    M chips/atmega/snek-atmega-serial.c
    M chips/atmega/snek-atmega-time.c

  Log Message:
  -----------
  chips/atmega: Add support for ATmega4809

This is the SoC used in the Nano-Every

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


  Commit: 8aa27be0c34b1aa44f3426f5a496c6445ad49a72
      https://github.com/keith-packard/snek/commit/8aa27be0c34b1aa44f3426f5a496c6445ad49a72
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-05-10 (Mon, 10 May 2021)

  Changed paths:
    M ports/duemilanove/snek-duemilanove-install.in

  Log Message:
  -----------
  ports/duemilanove: Set default programming port from Makefile

Instead of forcing to /dev/ttyUSB0, let each target using this script
pick their own default.

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


  Commit: 7da3cc8e4bbc71c748197ce8601e6e1904375b2e
      https://github.com/keith-packard/snek/commit/7da3cc8e4bbc71c748197ce8601e6e1904375b2e
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-05-10 (Mon, 10 May 2021)

  Changed paths:
    A ports/nano-every/.gitignore
    A ports/nano-every/Makefile
    A ports/nano-every/snek-nano-every-install.1.in
    A ports/nano-every/snek-nano-every-install.in
    A ports/nano-every/snek-nano-every-reset-port.c
    A ports/nano-every/snek-nano-every.builtin
    A ports/nano-every/snek-nano-every.c

  Log Message:
  -----------
  ports/nano-every: Add port for Arduino Nano Every board

This board has the ATmega 4809 SoC.

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


  Commit: 54d1962bc26923a59c43ce1d143be2cdc4d99ef4
      https://github.com/keith-packard/snek/commit/54d1962bc26923a59c43ce1d143be2cdc4d99ef4
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-06-20 (Sun, 20 Jun 2021)

  Changed paths:
    M chips/atmega/snek-atmega.h
    M chips/avr/snek-avr.h
    M snek-print.c
    M snek.h

  Log Message:
  -----------
  Use strfromf instead of sprintf for floats

This ensures conversion of float without going through double.

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


  Commit: bf2ba447e7d9440424b482f3450d5edcc4446ee4
      https://github.com/keith-packard/snek/commit/bf2ba447e7d9440424b482f3450d5edcc4446ee4
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-08-08 (Sun, 08 Aug 2021)

  Changed paths:
    M chips/atmega/snek-atmega-eeprom.c
    M chips/avr/snek-avr-eeprom.c
    M chips/qemu/snek-qemu.h
    M chips/samd21/ao-stdio.c
    M chips/samd21/snek-eeprom.c
    M ports/esp32/main/snek-esp32.h
    M snek-io.c
    M snek-io.h
    M snekde/snekde.py

  Log Message:
  -----------
  Support ENQ/ACK for console I/O

To synchronize between a host and snek device connected via a serial
port, some mechanism for flow control is necessary as XON/XOFF isn't
always available.

Have the host send ENQ (ascii 0x05), and then make Snek respond with
ACK (ascii 0x06). Waiting for the ACK will allow the host to avoid
overrunning the Snek input buffer.

This replaces the more fragile and less general mechanism where the
host "knew" Snek would send CR once per 16 characters during EEPROM
writing. Environments which don't require flow control, such as a
direct USB connected Snek device, needn't ever send ENQ or wait for
ACK.

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


  Commit: 6278ad12ec1c85599180f2720cbc9f0ccbd0fdbb
      https://github.com/keith-packard/snek/commit/6278ad12ec1c85599180f2720cbc9f0ccbd0fdbb
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-08-08 (Sun, 08 Aug 2021)

  Changed paths:
    M chips/atmega/snek-328p.builtin
    M chips/atmega/snek-atmega-eeprom.c
    M chips/avr/snek-avr-eeprom.c
    M chips/avr/snek-avr.defs
    M ports/duemilanove/Makefile
    M ports/grove/Makefile
    M ports/grove/snek-grove.builtin
    M ports/mega/Makefile
    M ports/mega/snek-mega.builtin
    M ports/nano-every/Makefile
    M ports/nano-every/snek-nano-every.builtin
    M ports/narrow-1284/Makefile
    M ports/narrow-1284/snek-narrow-1284.builtin

  Log Message:
  -----------
  atmel: Let build environment set memory sizes

Instead of defining these ourselves, let the build environment set the
memory sizes and addresses.

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


  Commit: dd271fd9bc72d76838b8150e686d3e40ed9e1d6b
      https://github.com/keith-packard/snek/commit/dd271fd9bc72d76838b8150e686d3e40ed9e1d6b
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-08-08 (Sun, 08 Aug 2021)

  Changed paths:
    M chips/atmega/snek-atmega.defs
    M chips/avr/snek-avr.defs
    M chips/samd21/snek-samd21.defs
    M ports/esp32/main/Makefile

  Log Message:
  -----------
  Add SNEK_EXT_INC dependency to ports using snek-io

This makes sure these ports are rebuilt when snek-io.h is modified.

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


  Commit: 3bfc5c3f905e54b6cc5331bdf694e5acf9de16f4
      https://github.com/keith-packard/snek/commit/3bfc5c3f905e54b6cc5331bdf694e5acf9de16f4
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-08-08 (Sun, 08 Aug 2021)

  Changed paths:
    M hosts/windows/snek-windows.h

  Log Message:
  -----------
  host/windows: Windows doesn't have strfromf

Use sprintf instead

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


  Commit: 90a47bc7b87560292c35ed8916c69623c55ea6a3
      https://github.com/keith-packard/snek/commit/90a47bc7b87560292c35ed8916c69623c55ea6a3
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-08-08 (Sun, 08 Aug 2021)

  Changed paths:
    M ports/duemilanove/Makefile
    M ports/duemilanove/snek-duemilanove-install.in
    M ports/uno/.gitignore
    M ports/uno/Makefile

  Log Message:
  -----------
  uno: Create snek-uno-install.in for linux installer

The linux installer script needs to modify the firmware installer
scripts, so make sure there's a suitable uno installer template.

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


  Commit: 32a81c9aa7b658d89164eff7d07a2dd3b13484c2
      https://github.com/keith-packard/snek/commit/32a81c9aa7b658d89164eff7d07a2dd3b13484c2
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-08-08 (Sun, 08 Aug 2021)

  Changed paths:
    M ports/narrow-1284/snek-narrow-1284.c

  Log Message:
  -----------
  ports/narrow-1284: Atmega code switched to timer 2 for clock

Need to enable timer 2 interrupt instead of timer 0.

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


  Commit: 034269161ff62726edfbab22387b5070414977d9
      https://github.com/keith-packard/snek/commit/034269161ff62726edfbab22387b5070414977d9
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-08-08 (Sun, 08 Aug 2021)

  Changed paths:
    M snek-install.defs

  Log Message:
  -----------
  Sort ev3 firmware into correct order

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


  Commit: 604a450f474ecb35c3be67a03fd727233aa7404f
      https://github.com/keith-packard/snek/commit/604a450f474ecb35c3be67a03fd727233aa7404f
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-08-08 (Sun, 08 Aug 2021)

  Changed paths:
    M ports/playground/snek-playground.builtin

  Log Message:
  -----------
  ports/playground: Provide 'SPEAKER' definition

This makes it a bit more clear which GPIO is hooked to the speaker
output.

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


  Commit: b0c6fb8c05453bd0c81c6063879b43a2e8d750e4
      https://github.com/keith-packard/snek/commit/b0c6fb8c05453bd0c81c6063879b43a2e8d750e4
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-08-08 (Sun, 08 Aug 2021)

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

  Log Message:
  -----------
  chips/avr: Flush after newline

Also, stick code in that avoids double flushing in ao_usb_flush in
case this code gets used elsewhere.

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


  Commit: 276f1e662ea5097f381f280971c3b2b5255ee376
      https://github.com/keith-packard/snek/commit/276f1e662ea5097f381f280971c3b2b5255ee376
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-08-08 (Sun, 08 Aug 2021)

  Changed paths:
    M snekde/snekde.py

  Log Message:
  -----------
  snekde: Make it work on Windows. Fix display after serial error

Windows doesn't have termios, so work around that. Don't clear the whole
screen during redisplay; that makes it blank after a device error.

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


  Commit: 69b3f21f9ef3388835ca7a997e5ff9e678e26efe
      https://github.com/keith-packard/snek/commit/69b3f21f9ef3388835ca7a997e5ff9e678e26efe
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-08-09 (Mon, 09 Aug 2021)

  Changed paths:
    M chips/avr/ao-usb-avr.c
    M ports/itsybitsy3v/Makefile
    M ports/itsybitsy3v/ao-pins.h
    R ports/itsybitsy3v/snek-itsybitsy3v.builtin
    M ports/itsybitsy5v/Makefile
    M ports/itsybitsy5v/ao-pins.h

  Log Message:
  -----------
  ports/itsybitsy3v: Share itsybitsy5v build files

These two products are almost identical, the only difference for
software is clock rate with the 3v version running at 8MHz and the 5v
version running at 16MHz. Instead of duplicating build files, share
use the 5v files.

There was some code in the USB driver which had been voltage dependent
back long ago, but these devices both end up using the same code.

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


  Commit: 36f5e5aa79a188d8b77d3ef8fdd29fbb0f195d12
      https://github.com/keith-packard/snek/commit/36f5e5aa79a188d8b77d3ef8fdd29fbb0f195d12
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-08-09 (Mon, 09 Aug 2021)

  Changed paths:
    M chips/atmega/snek-328p.builtin
    M chips/atmega/snek-atmega.h
    M chips/avr/snek-avr.h
    M ports/itsybitsy5v/snek-itsybitsy5v.builtin
    M ports/mega/snek-mega.builtin

  Log Message:
  -----------
  atmel: Simplify memory configuration

Make all 328p devices use a common memory setup, as well as 32u4.
Make mega use the standard memory setup.

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


  Commit: d17f8b0d8f64851faa4723e56602dd1ef5ab0c98
      https://github.com/keith-packard/snek/commit/d17f8b0d8f64851faa4723e56602dd1ef5ab0c98
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-08-09 (Mon, 09 Aug 2021)

  Changed paths:
    M snekde/snekde.py

  Log Message:
  -----------
  reformat


  Commit: d3103448f350069ac940cffe747be822979f1598
      https://github.com/keith-packard/snek/commit/d3103448f350069ac940cffe747be822979f1598
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-08-09 (Mon, 09 Aug 2021)

  Changed paths:
    M chips/avr/ao-snek-avr.c

  Log Message:
  -----------
  chips/avr: switch from 16-bit to 32-bit RNG

This makes the pi example work.

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


  Commit: 8b7cf1ea37f863ed91d14b4f935453dcab168e1d
      https://github.com/keith-packard/snek/commit/8b7cf1ea37f863ed91d14b4f935453dcab168e1d
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-08-09 (Mon, 09 Aug 2021)

  Changed paths:
    M ports/grove/snek-grove.builtin
    M ports/nano-every/snek-nano-every.builtin
    M ports/uduino/snek-uduino.builtin

  Log Message:
  -----------
  atmel: Shrink some pools to make space for the increased stacks

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


  Commit: 0ce9088a676900d72ae662cfdc9742de595508cb
      https://github.com/keith-packard/snek/commit/0ce9088a676900d72ae662cfdc9742de595508cb
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-08-10 (Tue, 10 Aug 2021)

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

  Log Message:
  -----------
  Add snek_code_add_line function

Share the code that adds line number information; this shrinks the
duemilanove image by four bytes.

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


  Commit: 6354436c302e9c40cac29395a1b1a2d13bc1efaa
      https://github.com/keith-packard/snek/commit/6354436c302e9c40cac29395a1b1a2d13bc1efaa
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-08-10 (Tue, 10 Aug 2021)

  Changed paths:
    M chips/atmega/snek-328p.builtin
    M ports/grove/snek-grove.builtin

  Log Message:
  -----------
  ports/grove: Shrink parse and snek stacks

Make sure there's enough memory for the C stack.

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


  Commit: 834460c3f1f5203a60aa21d5162218229e07962c
      https://github.com/keith-packard/snek/commit/834460c3f1f5203a60aa21d5162218229e07962c
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-08-10 (Tue, 10 Aug 2021)

  Changed paths:
    M chips/avr/snek-avr.defs
    M ports/itsybitsy3v/Makefile
    R ports/itsybitsy3v/ao-pins.h
    M ports/itsybitsy5v/Makefile

  Log Message:
  -----------
  ports/itsybitsy3v: Use ao-pins from itsybitsy5v directly

Remove itsybitsy3v/ao-pins.h which was #include'ing
../itstybitsy5v/ao-pins.h

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


  Commit: ba4823aabafc445e78aafca08dcb67e3ec72e6a4
      https://github.com/keith-packard/snek/commit/ba4823aabafc445e78aafca08dcb67e3ec72e6a4
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-08-10 (Tue, 10 Aug 2021)

  Changed paths:
    M README.md

  Log Message:
  -----------
  Update README

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


  Commit: c9c7ce61fd3a48a3f81109817b46dacd8c1fa143
      https://github.com/keith-packard/snek/commit/c9c7ce61fd3a48a3f81109817b46dacd8c1fa143
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-08-10 (Tue, 10 Aug 2021)

  Changed paths:
    A build-snek

  Log Message:
  -----------
  Add 'build-snek' script

This script can be run in my local environment to build enough for a
snek release.

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


  Commit: 89df91c78b88227550a7ecdbb976dba9707c2acc
      https://github.com/keith-packard/snek/commit/89df91c78b88227550a7ecdbb976dba9707c2acc
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-08-10 (Tue, 10 Aug 2021)

  Changed paths:
    M hosts/macosx/build-mac
    M ports/posix/snek-posix.h
    M snek-poly.c
    M snek.defs

  Log Message:
  -----------
  macosx: Add changes needed to build on mac os x

Mac OS X doesn't have strfromf.
Clang identifies as 'clang' instead of 'llvm'.
Need __attribute__((fallthrough)) for case now.
Propagate build failures from build-mac script.

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


  Commit: 006e1d667436747b3d6667acfa829ca23303b597
      https://github.com/keith-packard/snek/commit/006e1d667436747b3d6667acfa829ca23303b597
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-08-10 (Tue, 10 Aug 2021)

  Changed paths:
    A RELEASING.md

  Log Message:
  -----------
  Add initial version of releasing instructions


  Commit: 7a84b47fa30e2e65969f5ffcc229a4a31403e6d2
      https://github.com/keith-packard/snek/commit/7a84b47fa30e2e65969f5ffcc229a4a31403e6d2
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-08-10 (Tue, 10 Aug 2021)

  Changed paths:
    M snek.defs

  Log Message:
  -----------
  Snek version 1.6

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


  Commit: 7b3cf508e37f339020e7fcbb7d914defe6ad870a
      https://github.com/keith-packard/snek/commit/7b3cf508e37f339020e7fcbb7d914defe6ad870a
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-08-10 (Tue, 10 Aug 2021)

  Changed paths:
    M .github/Dockerfile
    A .github/Dockerfile-black
    A .github/workflows/black.yml
    M Makefile
    M README.md
    A RELEASING.md
    A build-snek
    A chips/atmega/machine/ieeefp.h
    M chips/atmega/snek-328p.builtin
    M chips/atmega/snek-328p.c
    M chips/atmega/snek-atmega-eeprom.c
    A chips/atmega/snek-atmega-i2c.c
    M chips/atmega/snek-atmega-serial.c
    M chips/atmega/snek-atmega-time.c
    M chips/atmega/snek-atmega.defs
    M chips/atmega/snek-atmega.h
    M chips/avr/ao-snek-avr.c
    M chips/avr/ao-usb-avr.c
    M chips/avr/snek-avr-eeprom.c
    M chips/avr/snek-avr.defs
    M chips/avr/snek-avr.h
    M chips/qemu/snek-qemu.c
    M chips/qemu/snek-qemu.h
    M chips/samd21/ao-snek.h
    M chips/samd21/ao-stdio.c
    M chips/samd21/snek-altos.c
    M chips/samd21/snek-eeprom.c
    M chips/samd21/snek-gpio.c
    M chips/samd21/snek-samd21.defs
    M doc/snek.adoc
    M hosts/macosx/build-mac
    M hosts/windows/snek-windows.h
    M ports/duemilanove/.gitignore
    M ports/duemilanove/Makefile
    R ports/duemilanove/snek-duemilanove-install.1
    A ports/duemilanove/snek-duemilanove-install.1.in
    M ports/duemilanove/snek-duemilanove-install.in
    M ports/esp32/loadable_elf_example_test.py
    M ports/esp32/main/Makefile
    M ports/esp32/main/snek-esp32.c
    M ports/esp32/main/snek-esp32.h
    M ports/ev3/.gitignore
    M ports/ev3/Makefile
    M ports/ev3/motors.c
    M ports/ev3/snek-ev3.builtin
    M ports/ev3/snek-ev3.h
    M ports/ev3/snek-main.c
    A ports/ev3/snekserver.c
    M ports/ev3/utils.c
    M ports/ev3/utils.h
    A ports/grove/.gitignore
    A ports/grove/Makefile
    A ports/grove/snek-grove-install.1
    A ports/grove/snek-grove-install.in
    A ports/grove/snek-grove.builtin
    M ports/hifive1revb/snek-metal-builtin.c
    M ports/itsybitsy3v/Makefile
    R ports/itsybitsy3v/ao-pins.h
    R ports/itsybitsy3v/snek-itsybitsy3v.builtin
    M ports/itsybitsy5v/Makefile
    M ports/itsybitsy5v/ao-pins.h
    M ports/itsybitsy5v/snek-itsybitsy5v.builtin
    R ports/mega/Arduino-usbserial-atmega16u2-Mega2560-Rev3.hex
    M ports/mega/Makefile
    R ports/mega/machine/ieeefp.h
    M ports/mega/snek-mega-install.1
    M ports/mega/snek-mega-install.in
    M ports/mega/snek-mega.builtin
    M ports/mega/snek-mega.c
    A ports/nano-every/.gitignore
    A ports/nano-every/Makefile
    A ports/nano-every/snek-nano-every-install.1.in
    A ports/nano-every/snek-nano-every-install.in
    A ports/nano-every/snek-nano-every-reset-port.c
    A ports/nano-every/snek-nano-every.builtin
    A ports/nano-every/snek-nano-every.c
    A ports/narrow-1284/.gitignore
    A ports/narrow-1284/Makefile
    A ports/narrow-1284/snek-narrow-1284-install.1
    A ports/narrow-1284/snek-narrow-1284-install.in
    A ports/narrow-1284/snek-narrow-1284-math.builtin
    A ports/narrow-1284/snek-narrow-1284.builtin
    A ports/narrow-1284/snek-narrow-1284.c
    A ports/narrow-1284/snek-narrow-1284.h
    M ports/playground/snek-playground.builtin
    M ports/posix/snek-main.c
    M ports/posix/snek-posix.h
    M ports/uduino/snek-uduino.builtin
    M ports/uno/.gitignore
    R ports/uno/Arduino-usbserial-atmega16u2-Uno-Rev3.hex
    M ports/uno/Makefile
    R ports/uno/snek-uno-install.1
    R ports/uno/snek-uno-install.in
    A ports/xiao/.gitignore
    A ports/xiao/Makefile
    A ports/xiao/ao-pins.h
    A ports/xiao/snek-xiao.builtin
    A snek-bmp280.c
    M snek-builtin.py
    M snek-code.c
    A snek-draw.builtin
    M snek-exec.c
    M snek-gram.ll
    A snek-i2c.builtin
    A snek-i2c.c
    A snek-i2c.h
    M snek-input.c
    M snek-install.defs
    M snek-io.c
    M snek-io.h
    M snek-lex.c
    A snek-lis3dh.c
    M snek-list.c
    M snek-parse.c
    M snek-poly.c
    M snek-print.c
    A snek-ssd1315.c
    M snek-string.c
    M snek-strtof.c
    M snek.defs
    M snek.h
    M snek.svg
    M snekde/snekde.py
    M test/Makefile
    A test/pass-precedence.py
    A test/pass-random.py
    M test/pass-trailing-comma.py

  Log Message:
  -----------
  Merge tag '1.6' into debian

Snek version 1.6


  Commit: 6512d220e9c197b80dc92d405369cfbe712053d9
      https://github.com/keith-packard/snek/commit/6512d220e9c197b80dc92d405369cfbe712053d9
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-08-10 (Tue, 10 Aug 2021)

  Changed paths:
    M debian/control

  Log Message:
  -----------
  debian: Update control

Standards version 4.5.1
Fix Homepage spelling.

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


  Commit: 5ea9275bde3a8256bece338a111caaca068f6fa4
      https://github.com/keith-packard/snek/commit/5ea9275bde3a8256bece338a111caaca068f6fa4
  Author: Keith Packard <keithp at keithp.com>
  Date:   2021-08-10 (Tue, 10 Aug 2021)

  Changed paths:
    M debian/changelog

  Log Message:
  -----------
  debian-1.6


Compare: https://github.com/keith-packard/snek/compare/8a9598477659...5ea9275bde3a


More information about the Snek mailing list