Index of /publis/MiniPy

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]ace/2021-03-08 22:16 -  
[DIR]css/2021-03-08 22:16 -  
[DIR]screenshots/2021-03-08 22:16 -  
[   ]LICENSE2021-03-08 22:16 11K 
[   ]Makefile2021-03-08 22:16 152  
[TXT]README.md2021-03-08 22:16 3.7K 
[TXT]console.html2021-03-08 22:16 2.7Kminipy toplevel
[TXT]editor.html2021-03-08 22:16 2.0Kminipy editor
[   ]editor_js.bc.js2021-03-08 22:16 628K 
[   ]toplevel_js.bc.js2021-03-08 22:16 583K 

My local copy of OCaml MiniPy

A Naive (OCaml) interpreter for a (minimalist subset of a) Python like language.

Try the interpreter online or use the editor (these rely on js_of_ocaml).

This is a work in progress, most of the supported features are only partially implemented.


Screenshots

Here is an example of using the MiniPy OCaml console, to define a sum function. It shows that a lot of basic construct of the Python language are supported, but almost no functions from the standard library are available:

Screenshot showing the use of MiniPy OCaml console (console.html)

Here is a second example, using the MiniPy OCaml editor, loaded with one of the example files, showing a Eratosthene Sieve to detect prime numbers:

Screenshot showing the use of MiniPy OCaml editor (editor.html)

Here is a third and last example, using the MiniPy OCaml editor, loaded with one of the example files, showing the prime decompositions of integers. I added a few comments (# blabla) to show some features supported by MiniPy:

Screenshot showing the use of MiniPy OCaml editor (editor.html)


Details about this local copy

Where is it hosted on my website?

On my websites, it is as https://perso.crans.org/besson/publis/MiniPy/ and https://besson.link/publis/MiniPy/.

Where do the files come from?

License ?

Apache-2.0 License Copyright 2020 by LaurentMazare.


Documentation of supported features

See https://github.com/LaurentMazare/ocaml-minipy#supported-features

Supported Features

Not implemented yet