Skip to content

cplant27/TOAL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Totally Original Applicable Language ( T. O. A. L. )

Logo

by: CJ Plantemoli, Sam Richard, Chris Jansky, Jayden Craig

Official T.O.A.L. Website

Description

Introducing the Totally Original and Applicable Language (T.O.A.L.), a revolutionary new coding language that is designed to make programming more accessible to everyone. T.O.A.L. is written like plain English, so it is easy to understand and use, even for those with no prior coding experience. The simple syntax and intuitive structure make it easy for anyone to create powerful and complex programs with ease.

Whether you are a seasoned programmer or just starting out, this language is the perfect tool for creating efficient and effective code. So why wait? Start coding today with this new and user-friendly language!

Features

  • Feel like a pro with our simple syntax and commands
  • Contain all the data you need with our built in list structure
  • Easily and elegantly repeat tasks or iterate over data with loops
  • Make decisions with ease using conditional statements
  • Automate your code and call it anytime you want with custom automations

Types

JavaScript T.O.A.L.
string word
integer number
float number
boolean boolean
array list

Variable Declaration and Assignment

JavaScript T.O.A.L.
let a = 55; make a with 55;
let b = “Hello World!”; make b with “Hello World!”;
let c = 1.7; make c with 1.7;
let d = true; make d with true;
let e = false; make e with false;
const var = “Constant”; constantly make var with "Constant";

Variable Incrementation

JavaScript T.O.A.L.
x++ add 1 to x;
x-- subtract 1 from x
x = x * 1 multiply x by 1
x = x / 2 divide x by 2
x = x^3 raise x to the 3
x = x % 2 mod x by 2

Simple Arithmetic

  • Sum: 9 plus 10
  • Difference: 9 minus 10
  • Multiplication: 9 times 10
  • Division: 9 divided by 10
  • Exponents: 9 to the 10
  • Modulus: 9 mod 10

Built In Functions

Printing

  • print "Hello World!";

List Functions

  • append [element] to [list];
  • remove [index] from [list];

Keywords

Traditional T.O.A.L.
true true
false false
print print
function automation
return output
if if
else ifnot
for loop over
while loop while
break break

Examples

If Statements

JavaScriptT.O.A.L.
let x = 4;
if (x > 4) {
  return true;
  
} else {
  return false;
}
make x with 4;
if x is larger than 4 {
  output true;
}
ifnot {
  output false;
}

For-Loops

JavaScriptT.O.A.L.
let list = [1, 2, 3, 4, 5];
for element in list {
  element++;
  console.log(element);
}
make list with [1, 2, 3, 4, 5];
loop over element in list { 
  add 1 to element;
  print element; 
}

Automations

JavaScriptT.O.A.L.
function addNums(num1, num2) {
  return num1 + num2
}
automate addNums(num1, num2) {
  output num1 plus num2;
}

Automations

JavaScriptT.O.A.L.
// this is a comment
# this is a comment

About

CJ Plantemoli, Sam Richard, Chris Jansky, Jayden Craig

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •