Programming-Language-PRPR is a project mainly written in RUBY and PYTHON, based on the MIT license.
セキュリティ&プログラミング言語で作成したプログラミング言語PRPRです。
Copyright Tomoki Imai. The License is MIT License.
Programming PRPR requires following software.
Ruby. Racc.(if you build own PRPR) Python.
How to use. move progprpr dir.
prpr need indents like python.
$ ./prpr
syntax. you can use following mathmatic syntax.
-calc remainder. -ex. 5 mod 4 is 1. 4.5 mod 3 is 1.5. -in some other programming language, mod is %.
-cal power. -ex. 5^3 means 555. -in some other programming language, ^ is **.
-ex,5is5 return true. 4 is 3 return false. -in some other programming language, "is" is ==.
In prpr,there is no difference intger and float. It means,there is only float. Prpr also have strings.
-In prpr,no high function for strings. -Because,prpr is for mathmatics. -but,I'm planning to add some functions.
In prpr,there is "for" and "if".
for "initialize expression" to "condition expression" do: <-->expressions
At first,"init exp" will be evaled. while "condition expression" returned false, eval expressions again and again.
If "condition exp" returned true,expressions will be evaled. if syntax can have else.
If "condition exp" returned true,true expressions will be evaled. if "condition exp" returned false,false expressions will be evaled.
Label System. label system is the way to insert function.
These are pair. goto "String" insert expressions.
See test.bas