GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - tomoki/Programming-Language-PRPR: セキュリティ&プログラミング言語で作成したプログラミング言語PRPRです。

BranchesTags
Open more actions menu

Latest commit

 

History

30 Commits
30 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
README
README
 
 
buf.bas
buf.bas
 
 
fizzbuzz.bas
fizzbuzz.bas
 
 
labeltest.bas
labeltest.bas
 
 
prpr
prpr
 
 
prpr.pdf
prpr.pdf
 
 
prpr.rb
prpr.rb
 
 
prpr.y
prpr.y
 
 
test.bas
test.bas
 
 
translater.py
translater.py
 
 

Repository files navigation

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 <file>.
Like ruby,you can use stdin.

syntax.
you can use following mathmatic syntax.

-------------------------------------------------------------------------------
a + b.
 -> return a plus b.
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
a - b.
 -> return a minus b.
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
a * b.
 -> return a multiple b
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
a / b.
 -> return a divide b.
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------

-------------------------------------------------------------------------------
a mod b.
 -> return remainder of "a divide b".
-------------------------------------------------------------------------------
-calc remainder.
-ex. 5 mod 4 is 1.
     4.5 mod 3 is 1.5.
-in some other programming language,
 mod is %.

-------------------------------------------------------------------------------
a ^ b.
 -> return a power b.
-------------------------------------------------------------------------------
-cal power.
-ex. 5^3 means 5*5*5.
-in some other programming language,
 ^ is **.

-------------------------------------------------------------------------------
a is b.
 -> return true if a=b.false if a not = b.
-------------------------------------------------------------------------------
-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.

-------------------------------------------------------------------------------
"String".
 -> return "String".
-------------------------------------------------------------------------------
-In prpr,no high function for strings.
-Because,prpr is for mathmatics.
-but,I'm planning to add some functions.


-------------------------------------------------------------------------------
print a.
 ->output value a to stdout.
-------------------------------------------------------------------------------

-------------------------------------------------------------------------------
a = b.
 make a b.
-------------------------------------------------------------------------------

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 syntax.
-------------------------------------------------------------------------------
if "condition exp" then:
<-->expressions
-------------------------------------------------------------------------------

If "condition exp" returned true,expressions will be evaled.
if syntax can have else.

-------------------------------------------------------------------------------
if "condition exp" then:
<-->true expressions
else:
<-->false expressions
-------------------------------------------------------------------------------

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.

-------------------------------------------------------------------------------
label "String" to:
<-->expressions
-------------------------------------------------------------------------------
and
-------------------------------------------------------------------------------
goto "String"
-------------------------------------------------------------------------------

These are pair.
goto "String" insert expressions.

See test.bas

About

セキュリティ&プログラミング言語で作成したプログラミング言語PRPRです。

tomokisilfa.wordpress.com/

Resources

Readme
MIT license
Activity

Stars

3 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.