The keywords in Yet Another Language are translatable, editable, and extendible. The following list of keywords are defined by default.
Keyword Key |
English |
Description |
@keyword_fmt_clear |
fmt_clear |
Clears format settings |
@keyword_fmt_precision |
fmt_precision |
Set precision for numerical display |
@keyword_fmt_scientific |
fmt_scientific |
Displays numbers in scientific format |
@keyword_fmt_fixed |
fmt_fixed |
Displays numbers in fixed precision |
@keyword_fmt_showpoint |
fmt_showpoint |
Shows decimal point |
@keyword_fmt_hidepoint |
fmt_hidepoint |
Hides decimal point |
@keyword_fmt_showthousand |
fmt_showthousand |
Displays thousand delimiter |
@keyword_fmt_hidethousand |
fmt_hidethousand |
Hides thousand delimiter |
@keyword_try |
try |
throw - try - catch construct |
@keyword_catch |
catch |
Catches exception thrown by throw keyword |
@keyword_throw |
throw |
Throws exception |
@keyword_declare |
declare |
Declares a function before its body is defined |
@keyword_exit |
exit |
Terminates program execution |
@keyword_class |
class |
Defines user-defined data type |
@keyword_extends |
extends |
Reserved for future use |
@keyword_include |
include |
Include another file to current module |
@keyword_file |
file |
Reserved for future use |
@keyword_cout |
cout |
Console out, puts values to Output window |
@keyword_cin |
cin |
Console in, gets value from user at run-time |
@keyword_true |
true |
Boolean literal true |
@keyword_false |
false |
Boolean literal false |
@keyword_clear |
clear |
Clears output window |
@keyword_endl |
endl |
Inserts a new line character to output window |
@keyword_uvctr |
uvctr |
Declares unit vectors |
@keyword_ucplx |
ucplx |
Declares unit complex |
@keyword_static |
static |
Declares static local variable or static member function |
@keyword_share |
share |
Reserved for future use |
@keyword_select |
select |
Select construct |
@keyword_choice |
choice |
Used within select construct |
@keyword_always |
default |
Used within select construct |
@keyword_if |
if |
Conditional branch - if |
@keyword_if_true |
if_true |
Conditional branch, another sort of if construct |
@keyword_if_false |
if_false |
Conditional branch, another sort of if construct |
@keyword_else |
else |
Else clause of if construct |
@keyword_else_true |
else_true |
Another sort of else clause |
@keyword_else_false |
else_false |
Another sort of else clause |
@keyword_do |
do |
Do loop construct |
@keyword_for |
for |
For loop construct |
@keyword_while |
while |
While loop construct |
@keyword_goto |
goto |
Unconditional branch |
@keyword_break |
break |
Used inside of a for, do, while, and select construct |
@keyword_continue |
continue |
Used inside of a for, do, while construct |
@keyword_literal |
literal |
Declares literal variable |
@keyword_void |
void |
Declares function that does not return any value |
@keyword_bool |
bool, boolean |
Declares boolean variable |
@keyword_integer |
integer, int |
Declares integer variable |
@keyword_real |
real, float, double |
Declares real number variable |
@keyword_complex |
complex, cplx |
Declares complex number variable |
@keyword_vector |
vector, vctr |
Declares vector variable |
@keyword_return |
return |
Returns a value to its caller |
@keyword_strn |
string |
Declares string variable |
@keyword_strm |
stream |
Reserved for future use |
@keyword_new |
new |
Dynamically allocates memory |
@keyword_delete |
delete |
Deletes dynamically allocated memory |
@keyword_polymorpic |
polymorphic |
Reserved for future use |
@keyword_private |
private |
Reserved for future use |
@keyword_public |
public |
Reserved for future use |
@keyword_protect |
protect |
Reserved for future use |
@keyword_operator |
operator |
Reserved for future use |
@opr_real |
rpart |
Real part of a complex number |
@opr_imag |
ipart |
Imaginary part of a complex number |
@opr_xcom |
xcom |
X-component of a vector |
@opr_ycom |
ycom |
Y-component of a vector |
@opr_zcom |
zcom |
Z-component of a vector |
@opr_dimension |
dimension |
Array dimension |
@opr_size |
size |
Array element size |
@opr_resize |
resize |
Changes array element counts |
@opr_detcramer |
detcramer |
Evaluates determinant of a square matrix (either real or complex ) |
@opr_solvecramer |
solvecramer |
Solves system of linear equations (either real or complex) |
@opr_ludecompo |
ludecompo |
LU Decomposition method. Decompose matrix into LU matrix |
@opr_lumethod |
lumethod |
Solves system of linear equations (either real or complex) using LU decomposition method |
@opr_inverse |
inverse |
Evaluates inverse matrix |
@opr_gaussjordan |
gaussjordan |
Solves system of linear equations (either real or complex) using Gausss-Jordan pivoting method |
Keywords for other languages, please refer to their definition files; English, Chinese, Korean, French, Japanese, Russian
For more information about Keyword translation, click here.