[Snek] [keith-packard/snek] 5c5c26: Allow return without expr

Keith Packard noreply at github.com
Mon Feb 18 21:06:17 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/keith-packard/snek
  Commit: 5c5c2695d9f6ac5d705395f28aa8d31b3d79fc82
      https://github.com/keith-packard/snek/commit/5c5c2695d9f6ac5d705395f28aa8d31b3d79fc82
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-02-17 (Sun, 17 Feb 2019)

  Changed paths:
    M snek-gram.ll

  Log Message:
  -----------
  Allow return without expr

This returns 'None'

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


  Commit: 72d325e78b91d2918aa52da0aac67d404d9566ad
      https://github.com/keith-packard/snek/commit/72d325e78b91d2918aa52da0aac67d404d9566ad
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-02-18 (Mon, 18 Feb 2019)

  Changed paths:
    M snek-func.c
    M snek-memory.c
    M snek.h

  Log Message:
  -----------
  snek_stash_code was used in only one place

In-line it explicitly in snek_func_alloc to save some space.

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


  Commit: 5bdb0aa06d76735e25193c7c3be8ead607091ee5
      https://github.com/keith-packard/snek/commit/5bdb0aa06d76735e25193c7c3be8ead607091ee5
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-02-18 (Mon, 18 Feb 2019)

  Changed paths:
    M snek-code.c

  Log Message:
  -----------
  Generate error if builtin with more than 3 args

There isn't code for this case, although it would be easy to add.

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


  Commit: daa5bef2ed61d63603657dbbed48a2a67291d5dc
      https://github.com/keith-packard/snek/commit/daa5bef2ed61d63603657dbbed48a2a67291d5dc
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-02-18 (Mon, 18 Feb 2019)

  Changed paths:
    M snek-list.c
    M snek-memory.c
    M snek.h

  Log Message:
  -----------
  Create common empty tuple value

Share this whenever an empty tuple is created. This makes () is ()
return True now.

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


  Commit: 959ef2e6ac3cacfe90af45e4857e4eaf7984bbb0
      https://github.com/keith-packard/snek/commit/959ef2e6ac3cacfe90af45e4857e4eaf7984bbb0
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-02-18 (Mon, 18 Feb 2019)

  Changed paths:
    M snek-duino/Makefile

  Log Message:
  -----------
  snek-duino: Print out ROM usage after compilation

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


Compare: https://github.com/keith-packard/snek/compare/31ccea0e981c...959ef2e6ac3c


More information about the Snek mailing list