K. Lange
abfaa50bee
Implement module packages
2021-01-17 22:01:58 +09:00
K. Lange
97922d3922
Improvements to exceptions
...
- Exceptions get repr'd to print for better flexibility and no more weird
if/else tree in dumpTraceback to handle other cases.
- Parser / compiler errors are now SyntaxError's.
- Try to read filenames when printing tracebacks.
- Fixup formatting to look more like CPython.
2021-01-17 18:19:00 +09:00
K. Lange
f97d8cd562
Fix a bad indentation handling for if/try.
2021-01-17 16:52:38 +09:00
K. Lange
fe737255ba
Fix from ... import ... as?
2021-01-17 08:22:45 +09:00
K. Lange
7e11fcb920
Try to help the compiler with branch prediction hints
2021-01-16 22:47:52 +09:00
K. Lange
129c92bdea
Superclass-related cleanups.
...
- If no superclass, set `super` to `object`.
- Superclasses can be derived from any expression (but still must be a Class)
2021-01-16 22:46:10 +09:00
K. Lange
014b8bcee1
Add note about WASM builds to readme
2021-01-16 18:30:53 +09:00
K. Lange
97fd51651d
Not sure why that doesn't work
2021-01-16 12:36:04 +09:00
K. Lange
221e97e086
ifdef a bunch of missing stuff in math module
2021-01-16 12:29:22 +09:00
K. Lange
bc223126bc
Sync rline with ToaruOS
2021-01-16 12:29:12 +09:00
K. Lange
da61bcd0d5
No gamma functions in emscripten's libc
2021-01-16 11:06:59 +09:00
K. Lange
5df382a8ce
time.time
2021-01-16 10:28:18 +09:00
K. Lange
9d9d5d5be7
Add math module
2021-01-16 10:18:19 +09:00
K. Lange
648ed8c85f
Add something original for once
2021-01-15 19:31:00 +09:00
K. Lange
66e52a90c3
Support more unpackables
2021-01-15 11:03:18 +09:00
K. Lange
1abc8529cb
Put some actual tuple unpacks in a test
2021-01-15 09:53:29 +09:00
K. Lange
d6459d5930
Obvious correct approach to doing that...
2021-01-15 08:50:44 +09:00
K. Lange
7c279e3cd0
Better handling of single local declaration
2021-01-15 07:41:40 +09:00
K. Lange
2a01172aec
Ensure class method pointers are zero'd on creation
2021-01-15 07:29:10 +09:00
K. Lange
d44f080260
oops, leaked a pointer in a test
2021-01-14 23:19:59 +09:00
K. Lange
5568665ad6
Unverified implementation for __getattr__
2021-01-14 23:16:13 +09:00
K. Lange
6f51f7b841
Fix up error type for bad unpack
2021-01-14 21:38:06 +09:00
K. Lange
13bbc3ae2d
Change 'let' semantics to do unpacking; support unpacking more things
2021-01-14 21:16:48 +09:00
K. Lange
d2d1c98a1e
Add 'del' statement.
2021-01-14 16:08:25 +09:00
K. Lange
a9b25d26ee
Don't zero the indent width in the repl on a line ending with backslash
2021-01-14 14:29:14 +09:00
K. Lange
a08b76adb5
Support backslash at end of line as continuation
2021-01-14 14:17:02 +09:00
K. Lange
976db6f954
Integer type behind macros
2021-01-14 09:15:44 +09:00
K. Lange
9015176bbb
Cleanups clang asked for
2021-01-14 09:15:18 +09:00
K. Lange
2b02ef457e
Add basic support for -m argument to interpreter
2021-01-13 09:08:11 +09:00
K. Lange
0c59a20bbb
Support binary modes in fileio
2021-01-13 08:27:07 +09:00
K. Lange
63ba9cbced
More readme cleanup on strings
2021-01-13 07:57:16 +09:00
K. Lange
a6432e476b
missing close paren
2021-01-13 07:39:24 +09:00
K. Lange
5f0f7ea0b1
Some notes on Unicode
2021-01-13 07:36:46 +09:00
K Lange
70732eed56
Add hex()
2021-01-12 22:57:39 +09:00
K. Lange
975d4dcb9b
Implement __eq__ and hashing for tuples
2021-01-12 22:30:06 +09:00
K. Lange
f43eff0f2e
JSON module should be able to support unicode strings easily
2021-01-12 22:19:24 +09:00
K. Lange
11cb36b751
README cleanup
2021-01-12 22:19:13 +09:00
K. Lange
058a510149
Add some missing builtins
2021-01-12 20:44:40 +09:00
K Lange
1f189ed82c
Fixup string iteration for unicode strings
2021-01-12 20:11:52 +09:00
K. Lange
de71ada519
More mentions of unicode stuff
2021-01-12 19:44:18 +09:00
K. Lange
be8b8adbc6
Add simplistic utf-8 error detection
2021-01-12 19:42:52 +09:00
K. Lange
10f3c16e40
Major overhaul of strings to support Unicode
2021-01-12 19:23:14 +09:00
K. Lange
76b0b50154
don't explode on bad repr print?
2021-01-12 14:07:16 +09:00
K. Lange
cc236b8da3
Add stress-test target to run valgrind
2021-01-12 07:34:42 +09:00
K. Lange
d5645b3fb6
Fixup more GC losses
2021-01-12 07:34:26 +09:00
K. Lange
6ebe859ad7
More typo cleanup
2021-01-11 22:35:55 +09:00
K. Lange
6ef5c980af
typo
2021-01-11 22:09:59 +09:00
K. Lange
e237120d7d
typo
2021-01-11 22:06:00 +09:00
K. Lange
574dd82b92
fixup gc reserve ordering in tryBind
2021-01-11 21:52:44 +09:00
K. Lange
ef92ace5a7
Add | and & operations for sets
2021-01-11 21:46:47 +09:00