[Snek] [keith-packard/snek] 310314: Make del a regular statement rather than only a to...
Keith Packard
noreply at github.com
Wed Mar 6 22:03:12 PST 2019
Branch: refs/heads/master
Home: https://github.com/keith-packard/snek
Commit: 31031477d2cf32d521f90f22aa6611a4480cb2d3
https://github.com/keith-packard/snek/commit/31031477d2cf32d521f90f22aa6611a4480cb2d3
Author: Keith Packard <keithp at keithp.com>
Date: 2019-03-07 (Thu, 07 Mar 2019)
Changed paths:
M snek-gram.ll
Log Message:
-----------
Make del a regular statement rather than only a top-level operation
Now that del generates code to delete stuff at runtime, it needs to be
a regular statement that can be included in functions rather than only
operating at the top level
Signed-off-by: Keith Packard <keithp at keithp.com>
Commit: 3b9bcc819378207a6eee54019c015190c3e503d8
https://github.com/keith-packard/snek/commit/3b9bcc819378207a6eee54019c015190c3e503d8
Author: Keith Packard <keithp at keithp.com>
Date: 2019-03-07 (Thu, 07 Mar 2019)
Changed paths:
M snek-error.c
Log Message:
-----------
Don't cascade error messages
Once snek_abort is set, stop printing more messages as those are likely
a consequence of the first.
Signed-off-by: Keith Packard <keithp at keithp.com>
Commit: 70a18bfb655205328c594c37bc158210743e0e27
https://github.com/keith-packard/snek/commit/70a18bfb655205328c594c37bc158210743e0e27
Author: Keith Packard <keithp at keithp.com>
Date: 2019-03-07 (Thu, 07 Mar 2019)
Changed paths:
M snek-error.c
Log Message:
-----------
Use \n for newline in error text
Syntax errors often occur at new line as a result of incorrect
indentation. Instead of printing \x0a, print \n which should be easier
to understand.
Signed-off-by: Keith Packard <keithp at keithp.com>
Commit: 31570180f1916525c1de5ce8f8b4ff40114dc97f
https://github.com/keith-packard/snek/commit/31570180f1916525c1de5ce8f8b4ff40114dc97f
Author: Keith Packard <keithp at keithp.com>
Date: 2019-03-07 (Thu, 07 Mar 2019)
Changed paths:
M examples/hanoi.py
M snek-lex.c
Log Message:
-----------
Switch string literals from octal to hex for arbitrary char notation
If we only offer one string literal notation for arbitrary characters,
let's make that hex instead of octal. Python's hex syntax is better
constrained too.
Signed-off-by: Keith Packard <keithp at keithp.com>
Commit: 2aac2bd6a394fe818530ba869944ae069273c31e
https://github.com/keith-packard/snek/commit/2aac2bd6a394fe818530ba869944ae069273c31e
Author: Keith Packard <keithp at keithp.com>
Date: 2019-03-07 (Thu, 07 Mar 2019)
Changed paths:
M snek-print.c
Log Message:
-----------
Offer %o and delete %u in string interpolation
%u isn't useful, and %o might be
Signed-off-by: Keith Packard <keithp at keithp.com>
Commit: 5bd520fab1da3c6107beb26082eb98b536aa7b10
https://github.com/keith-packard/snek/commit/5bd520fab1da3c6107beb26082eb98b536aa7b10
Author: Keith Packard <keithp at keithp.com>
Date: 2019-03-07 (Thu, 07 Mar 2019)
Changed paths:
M snek-lex.c
Log Message:
-----------
Generate error on newline in string constant
Instead of reading forever
Signed-off-by: Keith Packard <keithp at keithp.com>
Commit: 57193c423d6a979fc9b83bffa5cf37d1d8721d14
https://github.com/keith-packard/snek/commit/57193c423d6a979fc9b83bffa5cf37d1d8721d14
Author: Keith Packard <keithp at keithp.com>
Date: 2019-03-07 (Thu, 07 Mar 2019)
Changed paths:
M doc/snek.adoc
Log Message:
-----------
doc: More work on snek.adoc
Fill in sections on lexical structure for string, list, tuple and
dictionary constants.
Compress lists of keywords and punctuation.
Add slice description.
Add string interpolation.
Document more builtin functions, including curses.
Signed-off-by: Keith Packard <keithp at keithp.com>
Compare: https://github.com/keith-packard/snek/compare/8632b6734a66...57193c423d6a
More information about the Snek
mailing list