Skip to content

A Python port of the Convex esoteric programming language.

License

Notifications You must be signed in to change notification settings

ZekNikZ/ConvexPy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages