https://github.com/zeknikz/convexpy
A Python port of the Convex esoteric programming language.
https://github.com/zeknikz/convexpy
code-golf convex esoteric-programming-language port python stack-based
Last synced: 28 days ago
JSON representation
A Python port of the Convex esoteric programming language.
- Host: GitHub
- URL: https://github.com/zeknikz/convexpy
- Owner: ZekNikZ
- License: mit
- Created: 2016-07-17T21:19:23.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-07-19T23:10:26.000Z (almost 8 years ago)
- Last Synced: 2025-11-08T19:02:09.081Z (7 months ago)
- Topics: code-golf, convex, esoteric-programming-language, port, python, stack-based
- Language: Python
- Homepage:
- Size: 730 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ConvexPy
ConvexPy is the Python re-write of the programming langauge [Convex](https://github.com/GamrCorps/Convex), also created by me. ConvexPy is designed to be faster, more efficient, more accurate, and more. You can view the documentation [here](http://gamrcorps.github.io/ConvexPy).
##Running ConvexPy
Run `convex.py` as any normal Python **3.4+** script:
python convex.py
This will give an error, as you need to add some command-line flags. Here is a list:
-help: display the usage information of this program.
-h: display the usage information of this program.
-?: display the usage information of this program.
-accuracy : changes the accuracy for mathematical operations and constants.
-a : changes the accuracy for mathematical operations and constants.
-file : runs the program specified in the file at the path provided, using the CP-1252 encoding.
-f : runs the program specified in the file at the path provided, using the CP-1252 encoding.
-code : runs the code provided.
-c : runs the code provided.
-shell: starts an interactive Convex independent shell.
-s: starts an interactive Convex independent shell.
-repl: starts an interactive Convex REPL shell.
-r: starts an interactive Convex REPL shell.
-safe: disables file IO, Python eval, and operators with internet access.
-sm: disables file IO, Python eval, and operators with internet access.
-debug: prints the stack in list form after program execution.
-d: prints the stack in list form after program execution.
For example, to open a ConvexPy shell, run the following command:
python convex.py -shell