• Our popular and beloved forums are finally back, after being down since April 2018 due to hosting and server issues. We have now switched to a better platform, while maintenaing all data as it was before (contents and user names) . Thank you for your patience and loyalty. If you have any questions, need to report an error, or are having trouble logging in, please email us at: assyrianvoice@rogers.com

All Assyrian/Syriac programming Language =)

mrzurnaci

Active member
To those that know about coding and programming. I've been working on an all-Syriac programming language.

The language is C-like and I'm utilizing C++ to build the compiler.

Here's a current revision of the language

Code:
/**** DECLARATIONS ****/

[SIZE=32px]
//struct/record as "amoma" meaning mould

????? ???? {
	???? ?;
	???? ?;
};

// int as "minya"
???? ?;


//function that returns a ?: evaluation
???? ???(???? ??, ???? ??)
{
	??? ?? > ?? ? ?? : ??;
}


/**** STATEMENTS ****/


//statements
???? ?????()
{
    //local variable
    ???? ? = ?;
        
    //block
    {
        ???? ? = ?;
    }
    
    //for as ?? "qah"
    ?? (???? ? = ?; ? < ???; ?++) {
        ??? ?;
    }
    
    //while as ?? "(ad"
    ?? (? < ???) {
        ? += ?;
    }
    
    //if as ?? "en"
    ?? (? == ???) {
        ??? "? is ???\n";
    }
    ??? ?? (? < ???) {
        ??? "? is less than ???\n";
    }
    ??? {
        ??? "? is greater than ???\n";
    }
    
    //print as ??? "kateb"
    ??? "the quick brown fox", ' ', ?.??;
    
    //assignment
    ? = ?;
    
    //expression
    ???(?, ?);
    
    //???
    ??? ?;
}
    

/**** EXPRESSIONS ****/


//expressions
????? ?????()
{    
    ???? ? = ?;
    ???? ? = ?;
    ???? ?;
    
    //conditional
    ? = ? > ? ? ? : ?;
    
    //logical or
    ? = ? || ?;
    
    //logical and
    ? = ? && ?;
    
    //equality
    ? = ? == ?;
    
    //difference
    ? = ? != ?;
    
    //less than
    ? = ? < ?;
    
    //less than or equal
    ? = ? <= ?;
    
    //greater than
    ? = ? > ?;
    
    //greater than or equal
    ? = ? >= ?;
    
    //addition
    ? = ? + ?;
    
    //subtraction
    ? = ? - ?;
    
    //multiplication
    ? = ? * y;
    
    //division
    ? = ? / ?;
    
    //logical not
    ? = !?;
    
    //positive
    ? = +?;
    
    //negative
    ? = -?;
    
    //call function
    ? = ???(?, ?);
    
    //member access
    ???? ?;
    ? = ?.?;
    
    //float literal
    ???? ? = ?.?;
    
    //integer literal
    ???? ?? = ????;
    
    //string literal
    ???? ???? = "the quick brown fox";
    
    //char literal
    ????? ? = 'a';
    
    //boolean : ??? "sharer" is true and ??? "shaqer" is false
    ?????? ? = ???;
}[/SIZE]
 
Top