sPyOpenSource / compiler

The bytecode compiler for Java OS
http://s55969da3.adsl.online.nl/git/index.html#item/43
GNU General Public License v2.0
3 stars 0 forks source link

all programming languages to json format #41

Open sPyOpenSource opened 1 year ago

sPyOpenSource commented 1 year ago

JSON syntax rules are simple and consistent. Data is in name/value pairs, separated by commas. Curly braces hold objects, and square brackets hold arrays. Strings are in double quotes, and numbers are without quotes. Booleans are represented by true or false, and nulls are represented by null. Whitespace can be inserted between any tokens to improve readability

sPyOpenSource commented 5 days ago
{
    language: Java,
    modifier: public, 
    type: class, 
    name: HelloWord, 
    function: {
        modifier: [public, static],
        return: void,
        name: main, 
        arguments: {
            name: args,
            type: String[]
        }
        body: System.out.println(“Hello, world!);
    }
}
sPyOpenSource commented 5 days ago
{
    language: Python,
    body: print(“Hello, world!”)
}
sPyOpenSource commented 5 days ago
{
    language: Rust,
    function: {
        name: main, 
        body: println!("Hello, World!");
    }
}
sPyOpenSource commented 5 days ago
{
    language: C,
    include: stdio.h,
    function: {
        return: int,
        name: main,
        arguments: void,
        body: [printf("Hello, World!\n");, return 0;]
    }
}