DEV Community

Cover image for Gold-Language - Version 1.02; Out Now!
Colack
Colack

Posted on

Gold-Language - Version 1.02; Out Now!

Wanting To Check out the Language? Go here - Gold

Forenote

As you know from yesterdays post, Gold just had an gigantic update! So I thought to myself this morning - How about I take it off today, and just roll out an very basic update?

So, that's exactly what I did.

New Update

Gold Version 1.02, or The File End Update, is just an small update adding some basic changes.

Your old .gold files will no longer work with this new version of the Gold Programming language, meaning that you will need to update or convert your code to this new version.

Your files need the ending function end for your program to work. This means that your Hello World! Program will look something like this:

// Built for Reg Interpreter.

var myGoldProgram = {
    name: "Example Gold Program",
    des: "An Example Gold Program for the README file.",
    int: "regInt",
    ex: [
        {
            fun: "log",
            val1: "Hello World!"
        },
        {
            fun: "end"
        }
    ]
};

export { myGoldProgram };
Enter fullscreen mode Exit fullscreen mode

New Interpreter; English Interpreter

Oh yeah, there is also an new interpreter in town, the English Interpreter!

This interpreter is just basically an re-write of the Original Interpreter, with an more Language-Friendly feel. That means your functions would look something like this now:


execute // add, sub, mul, div, if, log, var, logVar   
saveToVariable // true/false   
value1   
value2   
variableSlot    
ifStatementType // =, >, <, !    
logIfValueTrue   
logIfValueFalse    
endProgram // ALWAYS END YOUR PROGRAM WITH THIS!!!!   
Enter fullscreen mode Exit fullscreen mode

Finalizing

Anyway, that just about wraps up the new Update.

You can always check out the Language Here.

Wanting To Contact Me? Join my Discord Server - Discord

Discussion (0)