Skip to content

Latest commit

 

History

History
133 lines (93 loc) · 2.56 KB

README.md

File metadata and controls

133 lines (93 loc) · 2.56 KB

BANNER


An open source general purpose high-level programming language!

[OO-N-YUH]
This language is gonna onya other languages

Vs Code Extention

Language Support Extention: Click Here To Download

Google Classroom For Developers

To see what the devs are doing cick here

How to install

Window (Automatic enviroment variables coming soon)

  • Step 1:
    Install the setup

  • Step 2:
    Press the windows key and search for "Edit the System and Enviroment Variables"

  • Step 3:
    Press Enviroment Variables

  • Step 4:
    Go to where it says "System Variables" and double click the word "Path" >You may need to scroll down a little>

  • Step 5:
    Then press the button that says "New"

  • Step 6:
    Then type in this:
    `C:\Program Files >x86>\Onya

  • Step 7:
    Test it to see if it works by going into a command prompt and typing onya help

Unix type os's (Including linux)

  • Step 1:
    Clone the repository
  • Step 2: Go to platforms/linux and run install.sh

    This will automaticaly add a enviroment variable for the CLI

How to run

After installing all you have to do is type onya help you will get a prompt giving you instructions

Examples

Printing

var x = "Hello";
var y = " World";
println <x,y>;

Output:
> Hello World


fn

fn DoSomething <>
{
    println <"Hello World!">;
};

DoSomething <>;

Output:
> Hello World!

fn Arguments

fn DoSomething <name>
{
    print <"Hello, ", name >;
};

DoSomething <"John">;

Output:
> Hello, John

What is it going to look like?

Printing:


Print Line

  // INPUT
  println <"A">;
  println <"B">;

  // OUTPUT
  > A
  > B

Print

  // INPUT
  print <"A">;
  print <"B">;

  // Output
  > AB

Print Variables

  // INPUT
  var word1 = "one";
  var word2 = "four";

  println >word1," two three ", word2>;

  //OUTPUT
  > one two three four

History

First ever working line of code:

IMG

8/7/2021

Contributers

Birthday 🎂

Onya was born 8/6/2021 at 6:19 am