Skip to content

A little programing language I made when I was in 6th grade (actually more like an Interpreting script), I don't really want to fix the spelling mistakes in the instructions or the unoptimized code out of sentimental value.

Notifications You must be signed in to change notification settings

patrickDugan04/PatCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hi I am Patrick and this is pat code a code I made out of java for fun the commands are bellow if you want to add a file of code you wrote put two copes of it one in the PutCodeHere folder in src and the other one in the PutCodeHere folder in bin to run the code you start op the program and it will ask you for your codes file so you will put in the file name and make sure to include the ending like .txt also I recomentd downloading eclips to run

Basic commands

{Var}(variable name)[vale of variable]; variable command

{Display}(var is its displaying a variable txt if not)[variable or text to print]; displays text on the same line

{Displayln}(var is its displaying a variable txt if not)[variable or text to print]; displays text on a new line

Math commands

{Rand}; puts a variable between 1 and 100

{Add}(valueOne)[valueTwo]; adds the two values then puts the answer in the chosen variable

{Subtract}(valueOne)[valueTwo]; subtracts the two values then puts the answer in the chosen variable

{Multiply}(valueOne)[valueTwo]; multiplies the two values then puts the answer in the chosen variable

{Divide}(valueOne)[valueTwo]; divides the two values then puts the answer in the chosen variable

logic commands

{If}(valueOne)[valueTwo]^Code: if valueOne equals valueTwo it runs the Code in between ^ and :

userInput commands

{Scan}; will wait until user types something in and then presses enter it will put what the user typed in into the variable

{ScanClose} will close all the scanner use when you are dont useing Scan it will make the rest of the code run faster

misc commands End you must put this at the end of your code to mark the end of your code

About

A little programing language I made when I was in 6th grade (actually more like an Interpreting script), I don't really want to fix the spelling mistakes in the instructions or the unoptimized code out of sentimental value.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages