Xiaotao Nie
Xiaotao Nie

Reputation: 61

making a python interpreter using javascript

I want to make a python interpreter by using Javascript.

Then you can input the python code and the Javascript in the webpage can interpret the code into javascript code and then run the code and return the result.

Because I have not much experience in this area, so I want some advice from the senior.

Thanks very much ...

Upvotes: 1

Views: 7237

Answers (3)

ganesh kumar
ganesh kumar

Reputation: 146

You can use pypyjs, and the detailed procedure is also available.

Upvotes: 2

Anderson Green
Anderson Green

Reputation: 31850

There are many interpreters and source-to-source compilers that can convert Python to JavaScript. The Skulpt interpreter allows Python source code to run in a web browser on the client-side.

Upvotes: 2

bestafubana
bestafubana

Reputation: 102

Well, an interpreter is not really a job for a beginner, also you'd better send the code to server side with AJAX, and then display the result in the page.

Upvotes: 1

Related Questions