Skip to content
A Python port of the Convex esoteric programming language.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__pycache__
.gitignore
LICENSE
README.md
convex.py
dictionary.py
ideas.txt
test.convex
todo.txt

README.md

ConvexPy

ConvexPy is the Python re-write of the programming langauge Convex, also created by me. ConvexPy is designed to be faster, more efficient, more accurate, and more. You can view the documentation here.

##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 <digits>: changes the accuracy for mathematical operations and constants.
-a <digits>: changes the accuracy for mathematical operations and constants.
-file <file>: runs the program specified in the file at the path provided, using the CP-1252 encoding.
-f <file>: runs the program specified in the file at the path provided, using the CP-1252 encoding.
-code <code>: runs the code provided.
-c <code>: 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
You can’t perform that action at this time.