Skip to content
@JDashDash

J--

J-- (J Dash Dash) is an interpreted, non-object-oriented programming language

J--

Downloads Code size Last Release

J-- Logo

Description

J-- (J Dash Dash) is an interpreted, non-object-oriented programming language inspired by the C++ language and the very famous Java.

Java is one of the most used languages in the world of developers, however it is the source of many problems.

The language with this name following the inspiration of Java and if we find "Dash Dash" it is due to the inspiration of C++ and its use for the design of J--.

The language will use files with the extension .jdd.

Example

print("Hello World V1 \n");
println("Hi");

int a = 5;
double b = 52.3;
string a = "cc";
boolean c = true;

private void myFunc() {
    print("Only this file can call this one");
}

public void myFunc() {
    print("Every files .jdd can call me !");
}

protected void myFunc() [file.jdd] {
    print("files.jdd can call me");
}

// Comment, protected function != protected function in a class

/*
comment
here
*/

Modules

Modules are "utilities" that users can add using the "import" statement (see the language documentation):

Example

import String;

println("hi".concat("cc"));
println("hi".getIndexFromChar("h"));
println("hi".getCharFromIndex(0));
println("hi".getCharFromIndex(1));
println("hi".getCharFromIndex(2)); // Return void because it does not exist
println("hi".equals("hi"));
println("hi".equals("Hi"));
println("hi".equalsIgnoreCase("hi"));
println("hi".equalsIgnoreCase("hI"));
println("hi".equalsIgnoreCase("HI"));
println("".isEmpty());
println("c".isEmpty());
println("cc".isEmpty());
println("CC".toLowerCase());
println("CC".toUpperCase());
println("cc".toUpperCase());
println("ccaa bb".replace("a", "b"));
println("ccaa bb".replace("b", "a"));
import Integer;

int a = Integer.sum(10, 5);
println(a);
a = Integer.mul(a, 5);
println(a);
a = Integer.div(a, 2);
println(a);
a = Integer.sub(a, 3);
println(a);
a = Integer.fromBoolean(true);
println(a);
a = Integer.fromBoolean(false);
println(a);
a = Integer.abs(50);
println(a);

Links

Source Code

Modules

Discord Server

Website

JetBrains

JetBrains gives access to tools in the computer world and gives access to developers proposing interesting projects being opensource.

Website JetBrains

CLion

Pinned

  1. J-- J-- Public

    Source Code J--

    C++ 5

  2. jdashdash.github.io jdashdash.github.io Public

    Website for the programming language J--

    JavaScript 1

  3. Modules Modules Public

    Modules of the language J--

    C++ 1

Repositories

Showing 4 of 4 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…