[Snek] [keith-packard/snek] be5976: chips/avr: Use snek-avr.defs

Keith Packard noreply at github.com
Tue Jun 25 11:13:19 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/keith-packard/snek
  Commit: be59763d08ac76ab822cfd4aae330284135178de
      https://github.com/keith-packard/snek/commit/be59763d08ac76ab822cfd4aae330284135178de
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-06-25 (Tue, 25 Jun 2019)

  Changed paths:
    M chips/avr/snek-avr.defs
    M ports/itsybitsy3v/Makefile
    M ports/itsybitsy5v/Makefile

  Log Message:
  -----------
  chips/avr: Use snek-avr.defs

This file should include shared definitions for all atmega 32u4 based
ports, but it wasn't getting used at all. Fix up the contents of this
file and then use it for both itsybitsty ports.

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


  Commit: dae24f6e7b2bdfd6f5dcd7693f5f1a89a2de547e
      https://github.com/keith-packard/snek/commit/dae24f6e7b2bdfd6f5dcd7693f5f1a89a2de547e
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-06-25 (Tue, 25 Jun 2019)

  Changed paths:
    M chips/avr/snek-avr.defs
    A chips/avr/strtod.c

  Log Message:
  -----------
  chips/avr: Customize strtof for Snek

This starts with strtod from avr-libc and removes some functionality
to reduce the size of the binary.

Snek only uses strtof with numbers, not for inf or nan. Remove the
code which matches those strings.

Snek doesn't care about errno, so don't bother setting it.

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


  Commit: 1b39a9a538b131192f76705c3b206a3b7df0e8d3
      https://github.com/keith-packard/snek/commit/1b39a9a538b131192f76705c3b206a3b7df0e8d3
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-06-25 (Tue, 25 Jun 2019)

  Changed paths:
    M snek.defs

  Log Message:
  -----------
  Don't set SNEK_CFLAGS if already set

Some ports may override the set of warnings to be used

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


  Commit: ba1be0036879c0ba7c8e02e83cbde1b8324d9f72
      https://github.com/keith-packard/snek/commit/ba1be0036879c0ba7c8e02e83cbde1b8324d9f72
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-06-25 (Tue, 25 Jun 2019)

  Changed paths:
    M snek-gram.ll
    M snek-parse.c

  Log Message:
  -----------
  Don't allow positional formals after named formals

This checks for definitions of the form:

	def (x=1,y): return x+y

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


  Commit: 104136b66d32577139254528527fd2c9ad73240b
      https://github.com/keith-packard/snek/commit/104136b66d32577139254528527fd2c9ad73240b
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-06-25 (Tue, 25 Jun 2019)

  Changed paths:
    M snek-gram.ll

  Log Message:
  -----------
  Check for named actuals in range operation

This avoids crashing when presented with:

	for i in range(x=1):

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


  Commit: a96ceab76d02fbaa03f4e01dd67a08d07f1ccde5
      https://github.com/keith-packard/snek/commit/a96ceab76d02fbaa03f4e01dd67a08d07f1ccde5
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-06-25 (Tue, 25 Jun 2019)

  Changed paths:
    M snek-gram.ll

  Log Message:
  -----------
  Check for named actuals in list immediate

Because we use the same grammar bits for actuals and list immediates,
we need to check and see for a named actual of the form:

	a = [x=1]

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


  Commit: 5077a8defb5739fd34a3f4b05e222bcafd6c3395
      https://github.com/keith-packard/snek/commit/5077a8defb5739fd34a3f4b05e222bcafd6c3395
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-06-25 (Tue, 25 Jun 2019)

  Changed paths:
    M snek-gram.ll

  Log Message:
  -----------
  Check for named actuals in tuple immediate

Similar to the previous commit, this checks for named actuals in the
list of values used to create an immediate tuple value.

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


Compare: https://github.com/keith-packard/snek/compare/acbbbf81da5b...5077a8defb57


More information about the Snek mailing list