K Lange
036368557b
Applications may set vm.binpath before call krk_initVM to supply an executable path.
2021-01-22 20:49:41 +09:00
K. Lange
935ad8096d
Finish C-ifying dicts
2021-01-22 19:38:18 +09:00
K. Lange
ad29dadf68
C-ify any, all
2021-01-22 19:11:52 +09:00
K. Lange
c44d24fb66
Make krk_runtimeError return None so we can simplify a common usecase
2021-01-22 16:10:58 +09:00
K. Lange
57cb1c61bc
Start implementing some better argument/type checking
2021-01-22 15:45:23 +09:00
K. Lange
e510deaf7f
Get rid of KrkInstance->_internal and just let C stuff extend KrkInstance
2021-01-22 15:12:19 +09:00
K. Lange
26480a5e1c
Only run one script, other args are arguments after all.
2021-01-22 11:10:52 +09:00
K. Lange
460d1c39b9
Fix bad multiline handling in syntax.highlighter
2021-01-22 11:10:03 +09:00
K. Lange
8ec3cfe07d
Optimizations for f-strings
2021-01-22 08:38:36 +09:00
K. Lange
195bd33a19
Fix issue with f-strings with multiple format blocks
2021-01-22 08:25:20 +09:00
K Lange
d4b8ed6747
Try to fix some stuff on Windows
2021-01-21 23:16:14 +09:00
K Lange
8ae251af52
Provide kuroko.executable_path and use it to set kuroko.module_path on Windows
2021-01-21 22:51:11 +09:00
K Lange
0093b92fc9
list.insert()
2021-01-21 22:50:54 +09:00
K. Lange
a69ee8efca
oops, we accidentally commented out the rline-less fgets call
2021-01-21 21:24:35 +09:00
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