coolreader18
801c864645
Bump WASM npm version
2019-04-21 11:30:40 -05:00
Joey
01f143ec7b
Merge pull request #832 from RustPython/joey/proper-titlecase
...
str: proper titlecase support
2019-04-19 17:05:12 -07:00
luozijun
7822f6d8d8
Add benches
2019-04-20 02:09:06 +08:00
Joey
29ea307f4c
unicode-casing: specify rev explicitly, add todo comment
2019-04-19 09:26:24 -07:00
Joey
79623f4e7a
str: proper titlecase support
2019-04-14 12:23:09 -07:00
ben
dda0d561ac
Fix order of dict literal
2019-04-06 10:43:39 +13:00
coolreader18
b621a13415
Merge branch 'master' into coolreader18/update-deps
2019-03-27 22:32:42 -04:00
Adrian Wielgosik
40dd75d513
Upgrade lalrpop
2019-03-27 18:55:08 +01:00
coolreader18
e819ca6b87
Merge branch 'master' into coolreader18/update-deps
2019-03-25 21:41:32 -04:00
Windel Bouwman
ca11e7dea7
Add support for emoji as name.
2019-03-24 20:16:38 +01:00
coolreader18
565719dcda
Update cargo dependencies
2019-03-24 11:26:41 -05:00
Windel Bouwman
d0c4fcb2fa
Doing what is needed for all our non-latin friends.
2019-03-24 13:14:38 +01:00
Joey
18b57188ba
Add a custom derive for FromArgs
2019-03-16 17:13:23 -07:00
coolreader18
b5248fbd82
Fix Cargo.toml versions
2019-03-05 17:27:56 -06:00
Windel Bouwman
cb1b9d368f
Merge pull request #602 from coolreader18/prep-wasm-npm
...
Prepare the wasm crate for publishing on npm
2019-03-05 07:25:10 +01:00
coolreader18
eefde87594
Cargo.lock update
2019-03-04 21:17:29 -06:00
Adrian Wielgosik
eed0b3ca45
Add float.as_integer_ratio()
2019-03-04 20:52:56 +01:00
coolreader18
c4513a176b
Proper error handling for int to animationFrame id
2019-02-26 22:20:28 -06:00
Windel Bouwman
f2e60b24e1
Add initial platform module.
2019-02-26 21:42:38 +01:00
coolreader18
d399faa425
Remove the console_error_panic_hook crate from Cargo.toml
2019-02-25 20:50:53 -06:00
coolreader18
00bc9e9199
Convert fetch to use wasm_bindgen_futures
2019-02-17 01:12:38 -06:00
coolreader18
c83ff47f3a
Fix error with new compile() and set_attr/item()
2019-02-16 21:31:10 -06:00
coolreader18
f55a8ead68
Merge branch 'master' into wasm-vm-class
2019-02-16 20:23:35 -06:00
Joey Hain
38c0ea06e5
Support float(<str>) and float(<bytes>)
2019-02-11 19:40:55 -08:00
ben
5b637385ea
Fixed #191 , fixes recursive repr() for the standard collections
2019-02-10 13:22:03 +13:00
Adam Kelly
6539f07818
@generated comment added to Cargo.lock
2019-02-09 12:22:51 +00:00
coolreader18
a24cd8368a
Merge branch 'master' into wasm-vm-class
2019-02-05 17:53:21 -06:00
Joey Hain
b0a2f6f87d
Add range.index
2019-02-05 13:34:54 -08:00
coolreader18
de3762cabf
Add .run(); fix .addToScope(); add panic-catcher for debugging
2019-02-05 00:39:16 -06:00
holygits
33a3ec8832
Handle unicode string slicing with graphemes
2019-02-04 15:40:30 +13:00
Tom Forbes
a72dbf1d0c
Use XDG paths to store Python history
2019-02-03 10:07:50 +01:00
coolreader18
4020ee7d41
Add a bare-bones VirtualMachine class to the WASM library
2019-01-30 12:18:59 -06:00
coolreader18
1f02cc0fa3
Squash all demo commits onto one branch
2018-12-27 20:28:12 -06:00
AgentMacklin
79a3b13252
Implement most of the string methods. ( #239 )
...
* implemented more functions
* backup
* Improve demo site
* Formatting; move the `+ '\n'` hack to eval().
* Rename run_code() to run_from_textbox()
* Switch to using json.dumps for py_to_js()
* Clarify names of wasm builtins
* Remove dependency on num_bigint
* Allow injecting JS variables into python with eval_py()
eval_py(`return js_vars["a"]`, { a: 9 }) == 9
* dict() now should work properly
e.g.
``` dict(a=2, b=3) == {"a": 2, "b": 3} ```
* Add documentation for eval_py() and update error message handling
Also, switch from iterating over the values of js_injections and
serializing each of them individually to asserting it's an object and
then just stringifying the whole thing.
* Finish revamping `dict_new()`
* Add 'from x import *' syntax.
This is a separate opcode in CPython so I added it as such here.
* Add test for dicts
* added functions
* ran rustfmt and fixed isidentifier
* fixed zfill and make_title
* python3.6 doesn't contain isascii()
2018-12-27 20:22:04 +01:00
coolreader18
4c32693c7b
Switch to using one workspace, move profile to root Cargo.toml
2018-12-24 15:28:49 -06:00
Windel Bouwman
f227ce0498
Add random module
2018-11-25 23:20:10 +01:00
Windel Bouwman
17fc5a2345
Implemented hexadecimal, octal and binary literals. Also use bigint in the lexer to store big integer literals.
2018-11-04 09:00:44 +01:00
Windel Bouwman
a6f64eefee
Change int __pow__ to use bigint pow.
2018-11-03 10:30:17 +01:00
Windel Bouwman
f6cced5d65
Change integer type into bigint
2018-10-30 21:01:31 +01:00
Windel Bouwman
1e3b45ee0d
Add complex basic type
2018-10-29 21:55:58 +01:00
Windel Bouwman
adfb750129
Added ternary if operator
2018-10-17 08:45:16 +02:00
Windel Bouwman
bccb6f3bf5
Add draft re module
2018-10-14 10:59:00 +02:00
Windel Bouwman
5e27cc45b0
Initial struct module
2018-10-13 22:04:49 +02:00
Daniel Watkins
3b1536277e
Bump version of petgraph in Cargo.lock to 0.4.13
...
This should fix #102 (i.e. compilation on rust nightly).
2018-08-29 12:38:39 -04:00
Daniel Watkins
2cecd362fe
Add support for defaults to bytecode, compiler and VM
2018-08-29 08:58:20 -04:00
Daniel Watkins
7a80c04725
Basic json module implementation in rust
2018-08-26 15:10:39 -04:00
Windel Bouwman
bbc19305f8
Reduce dependencies of vm and parser crates
2018-07-18 10:22:00 +02:00
Windel Bouwman
3349e24aad
Early import mechanics
2018-07-11 23:33:59 +02:00
Windel Bouwman
7d20869dc0
Fix return value from function
2018-07-08 21:03:25 +02:00
Windel Bouwman
b4e9064516
Try to repair cpython bytecode frontend
2018-07-08 00:22:30 +02:00