Skip to content

O.O.P based language for backend, GL, and hardware communication purposes

Notifications You must be signed in to change notification settings

JukaVerse/PolyJuka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Accessibility Types

external -> Public
internal -> Private
static -> Static
pub -> Public for used namespace

Operations

Name Token
Equals =
Compare ==
Not Equal To !=
Greater then or equal to >=
Less then or equal to <=
Greater Then <
Less then >
Not !
Add +
Subtract -
Exponent ^
Divide /

Notes

// Your note here

These lines are not read by the parser

Import

import IMPORT_TYPE DIRECTORY

Import Types:

local -> File in your project
thirdParty -> File from the web
global -> File from different directory

Main Function

namespace app.net.com
{
   external class extends EXTENTION_CLASS
   {
        fx Main()
        {
            // MAIN FUNCTION
        }
   }
}

This function will be called on start

Change Main function name

[Main = STRING];

This will change the main function that will be called on start

If Else Statements

if(SITUATION){}
else if(SITUATION){}
else{}

Try Catch

try
{
    // CODE
}
catch(ExceptionType VALUE)
{
    // CODE
}

Throw Exception

throw new exception(ExceptionType);

Console Logging

Same Line Printing

console.out.print(STRING);

New Line Printing

console.out.printLine(STRING);

Defining Variable

set x = VALUE;

set will automaticaly assign a variable type based on the value. Note: This is a non static type.

TYPE x = VALUE;
Name Type
Integer int
Float float
Double dbl
Boolean bool
String string
Character char
Set Dynamic

Defining Function

fx FUNCTION_NAME(TYPE name) -> RETURN_TYPE
{
    // Do Stuff
}

Create Window

new (Window)window = Window.instance.new(
    {
        title: STRING,
        size: TUPLE,
        3dRenderingMode: BOOLEAN,
        Frame: BOOLEAN,
        startFullscreen: BOOLEAN,
        resizable: BOOLEAN
    }
);

This will create a instance of the Window builtin class

Window Hint

window.hint(HINT_TYPE, HINT_VALUE);

window is your instance of the Window builtin class. This will change the classes internal variables.

Debug Label

window.debug.log(STRING);

This will be shown when run threw the interperter window but not on the final build.

About

O.O.P based language for backend, GL, and hardware communication purposes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages