Commit Graph

479 Commits

Author SHA1 Message Date
K. Lange
070a11b461 Makefile changes from building for macos 2021-01-21 21:09:01 +09:00
K. Lange
9737c713ca Add a more direct replacement for krk_typeOf to call natively 2021-01-21 20:50:01 +09:00
K. Lange
c0ef3a0917 Do that thing Python does when repr'ing strings where it picks between single and double quote 2021-01-21 18:52:53 +09:00
K. Lange
f1811fe23c Fixup Makefile after relocating files 2021-01-21 18:45:16 +09:00
K. Lange
f1387f9a74 Try to clean up internal doc-related things 2021-01-21 18:40:54 +09:00
K. Lange
deea801fe4 Minor stuff tripping up static analyzers 2021-01-21 16:57:01 +09:00
K. Lange
b872410b95 Add support for comma-separated imports 2021-01-21 11:09:20 +09:00
K. Lange
7497994100 Initial pass at format strings 2021-01-21 11:00:23 +09:00
K. Lange
b4344f7d21 Start reorganizing codebase 2021-01-21 09:11:55 +09:00
K. Lange
b3bc879c8c github's markdown parser doesn't like that 2021-01-21 08:18:44 +09:00
K. Lange
6cf0efed5d README typos 2021-01-21 08:17:37 +09:00
K Lange
d4c601ba75 Link with -lm when bundling. 2021-01-20 22:35:16 +09:00
K Lange
2d87fc2a68 (rline) don't fill input line with spaces if there's no right prompt 2021-01-20 22:23:36 +09:00
K. Lange
1cbe2d1857 Support * for list and str 2021-01-20 20:23:12 +09:00
K. Lange
d60ecf92af Clean up internal storage of lists and dicts 2021-01-20 19:46:00 +09:00
K. Lange
3b6db4be78 Unpack iterables in argument expansion 2021-01-20 19:13:59 +09:00
K Lange
e5bda9df8d Use ms_printf format strings in Windows so we can print our long longs 2021-01-19 23:28:26 +09:00
K. Lange
d6169a2c12 Support unpacking iterables in multiple assignments 2021-01-19 22:49:36 +09:00
K. Lange
85e7c667b4 C-ify some more collection methods 2021-01-19 22:27:05 +09:00
K. Lange
abff851af0 Don't give loop iterator an accessible name in for ... in 2021-01-19 21:11:28 +09:00
K. Lange
895eb367ee Support comprehensions for dicts, tuples. 2021-01-19 21:06:52 +09:00
K. Lange
851d3df8cd Add more operators. 2021-01-19 19:29:29 +09:00
K. Lange
bcccaa09bf Allow simple statements to be chained on one line 2021-01-19 18:37:57 +09:00
K. Lange
fdc1a500fe Add pass statement just for compatibility. 2021-01-19 18:22:13 +09:00
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