Gitea
ac3da8b453
Add 'from x import *' syntax.
...
This is a separate opcode in CPython so I added it as such here.
2018-12-22 22:40:02 -05:00
Gitea
9468b657d2
Run cargo fmt.
2018-12-16 17:40:25 -05:00
Gitea
c74cd90d8e
Handle mixed spaces and tabs.
...
This allows the parser to handle tabs and spaces. Currently it
requires that spaces come after any tabs, which is slightly more
strict than python3. It also requires that neighboring indentation
levels have either both more spaces and tabs or less spaces and
tabs so that tab size can't make perception of indentation
differ from what the parser interprets.
I didn't opt to implement PartialOrd on IndentationLevel because I
wasn't sure that the comparison logic would meet the logical
requirements for that trait. One could easily switch to having it
implement PartialOrd though. This would necessitate switching to
manually implementing PartialEq so that it's behavior 'matches'.
It's unclear from the docs what 'matches' exactly means so for
now I'm avoiding implementing the traits.
2018-12-16 17:11:37 -05:00
Windel Bouwman
62c53d8e5d
Try to make it simpler to switch dict storage types.
2018-12-13 20:38:09 +01:00
Windel Bouwman
521f664e16
Merge pull request #229 from AgentMacklin/master
...
Added some of the missing str methods
2018-12-13 20:31:45 +01:00
Austen LeBeau
7ac22d96d1
update and added more functions
2018-12-13 12:02:18 -06:00
Windel Bouwman
a29e882bc1
Store dict key as pyobject into hashmap.
2018-12-13 17:05:01 +01:00
Windel Bouwman
e657633e51
Move set_item to context struct.
2018-12-12 22:27:28 +01:00
Windel Bouwman
4095e0cad7
Modify location of set_attr so that we are able to create str python objects for the dictionary.
2018-12-12 22:06:19 +01:00
Windel Bouwman
31f50eda3d
Merge pull request #226 from RustPython/demo-error
...
[WASM] Catch errors and show it in the standard output textarea
2018-12-12 20:01:31 +01:00
Windel Bouwman
0215830aaa
Move set_attr and set_item to context.
2018-12-12 19:41:09 +01:00
Austen LeBeau
dd2b4e3c25
added isalnum, isalpha, isdigit, swapcase
2018-12-12 12:01:35 -06:00
Windel Bouwman
5c04ad8aae
Make underlying dict type more hidden.
2018-12-12 15:13:40 +01:00
Austen LeBeau
07336fa984
initial fork commit
2018-12-11 22:44:56 -06:00
Shing Lyu
6021fca8cd
[WASM] Print the Rust panic to the output textarea
2018-12-11 21:50:25 +01:00
Shing Lyu
fabc67985a
Make the run button bigger so it doesn't overflow
2018-12-11 21:38:02 +01:00
Windel Bouwman
95092be36d
Merge pull request #225 from RustPython/test-demo
...
Fixed the travis build for deploying the demo page
2018-12-11 20:22:13 +01:00
Shing Lyu
0159051e95
Updated README about WASM build
2018-12-10 23:13:54 +01:00
Shing Lyu
13a9922d93
Fix the demo page travis build
2018-12-10 23:07:15 +01:00
Windel Bouwman
b46fc938d4
Merge pull request #224 from RustPython/readme-demo
...
Update README, adding demo and instruction for how to update doc
2018-12-10 22:18:37 +01:00
Shing Lyu
160cfe6155
Added link to online demo in README
2018-12-10 21:58:43 +01:00
Windel Bouwman
8345acc402
Change rustfmt check to stable.
2018-12-10 21:33:23 +01:00
Shing Lyu
bb4454912e
Added instruction on updating online doc and demo page
2018-12-10 20:45:12 +01:00
Windel Bouwman
69d21e0ebb
Merge pull request #222 from RustPython/wasm-output-pure-rs
...
[WASM] Print STDOUT to textarea on the demo page
2018-12-09 22:13:00 +01:00
Shing Lyu
b2aa7ac2fb
[WASM] Changed the demo to fibonacci calculation
2018-12-09 21:35:23 +01:00
Shing Lyu
3e231620cd
[WASM] Print STDOUT to textarea in HTML
2018-12-09 21:35:23 +01:00
Windel Bouwman
f8f9fa7fd0
Merge pull request #217 from RustPython/travis-demo
...
CI build and deploy demo page on master branch
2018-12-07 10:15:50 +01:00
Shing Lyu
b5c1990267
CI build and deploy demo page on master branch
2018-12-06 20:35:53 +01:00
Windel Bouwman
351a61f2b3
Merge pull request #216 from RustPython/forkme
...
Added fork me on github ribbon to demo page
2018-12-05 11:30:58 +01:00
Windel Bouwman
34a60ce6a2
Merge pull request #218 from RustPython/stabledoc
...
Use stable rust to build documentation
2018-12-05 11:30:38 +01:00
Shing Lyu
41d5dc52eb
Use stable rust to build documentation
2018-12-04 21:15:51 +01:00
Shing Lyu
71ea9b8f16
Added fork me on github ribbon to demo page
2018-12-04 20:58:00 +01:00
Windel Bouwman
fa89e8803c
Merge pull request #214 from RustPython/online-demo
...
Created a demo page so user can try their code online
2018-12-04 09:12:07 +01:00
Windel Bouwman
30bb111b1a
Merge pull request #208 from RustPython/travis-fix
...
Limit the gh-pages deployment step to only nightly build
2018-12-04 09:01:16 +01:00
Shing Lyu
8d78c67d0b
Created a demo page so user can try their code online
2018-12-03 20:49:26 +01:00
Shing Lyu
5734fc29ca
Merge pull request #203 from RustPython/consolelog
...
Mapping Python print to JavaScript console.log
2018-12-03 20:48:43 +01:00
Shing Lyu
03911d98d7
Limit the gh-pages deployment step to only nightly build
2018-12-03 20:03:05 +01:00
Shing Lyu
2c55c4793e
[WASM] Mapping print to console.log
2018-12-03 19:51:48 +01:00
Windel Bouwman
8eacbcbc06
Add builtins to sys.modules. Add __float__ method to int class.
2018-11-26 22:31:40 +01:00
Windel Bouwman
f227ce0498
Add random module
2018-11-25 23:20:10 +01:00
Windel Bouwman
eb51007993
Merge pull request #206 from RustPython/travis-branch
...
Push website to the master branch to simplify website development
2018-11-25 22:18:14 +01:00
Windel Bouwman
1b4b157a2d
Merge pull request #207 from yodalee/math-implementation-with-statrs
...
Math implementation with statrs
2018-11-25 22:05:41 +01:00
yodalee
68892fb4e2
fix rustfmt
2018-11-25 22:13:26 +08:00
yodalee
04548db1e0
add implementation of special math function
...
function include: erf, erfc, gamma, lgamma
use package statrs' implementation
2018-11-25 20:10:34 +08:00
Windel Bouwman
ee2fb20f96
Merge pull request #205 from RustPython/readme-update
...
Added link to documentation in README
2018-11-24 12:05:52 +01:00
Shing Lyu
de61b1c685
Push website to the master branch to simplify website development
2018-11-24 10:43:56 +01:00
Shing Lyu
51271e5000
Added link to documentation in README
2018-11-24 10:37:19 +01:00
Windel Bouwman
a8fb2f3754
Merge pull request #204 from RustPython/travis-doc
...
Auto build and deploy documentation to website repo
2018-11-23 18:32:44 +01:00
Shing Lyu
023e6119c4
Auto build and deploy documentation to website repo
2018-11-23 11:51:39 +01:00
Windel Bouwman
083eb977ad
Merge pull request #202 from RustPython/cleanup
...
Removed unused wasm/src/main.rs file
2018-11-22 21:37:32 +01:00