Treelang programs consist of whitespace, comments, keywords and names.
A B
x=1; // Set X to 1
{ - used to start the statements in a function } - used to end the statements in a function ( - start list of function arguments, or to change the precedence of operators in an expression ) - end list or prioritised operators in expression , - used to separate parameters in a function prototype or in a function call ; - used to end a statement + - addition - - subtraction = - assignment == - equality test if - begin IF statement else - begin 'else' portion of IF statement static - indicate variable is permanent, or function has file scope only automatic - indicate that variable is allocated for the life of the function external_reference - indicate that variable or function is defined in another file external_definition - indicate that variable or function is to be accessible from other files int - variable is an integer (same as C int) char - variable is a character (same as C char) unsigned - variable is unsigned. If this is not present, the variable is signed return - start function return statement void - used as function type to indicate function returns nothing
a A _a a_ IF_Xare all different names.
Go to the first, previous, next, last section, table of contents.