K. Lange
b98751d991
Use 'long long' integers on Windows
2021-01-19 17:47:53 +09:00
K. Lange
87c99d5c8f
Add support for \U escape
2021-01-19 14:05:21 +09:00
K. Lange
dd22d86abe
If we are going to link the modules back to libkuroko, it needs to be built first...
2021-01-19 13:58:34 +09:00
K Lange
a9b04cceb2
Experimental Windows support
2021-01-19 12:52:22 +09:00
K Lange
f4444cccaa
Bundle math module in static builds
2021-01-19 12:38:24 +09:00
K Lange
ce0ff9e504
Force cast of bytes len to long for printValueSafe
2021-01-19 01:36:12 +09:00
K. Lange
ef7fb215b2
Add a module that does simple Kuroko syntax highlighting with flexible outputs
2021-01-18 20:45:26 +09:00
K. Lange
7c230c3d12
Fixes
2021-01-18 20:45:07 +09:00
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