forked from upizpp/PhiScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Operators
gene-2012 edited this page Jan 6, 2024
·
1 revision
There are 39 operators in PhiScript!
//Operators defined in PhiScript
//In src/phi/phi_std.cpp
static const search_container operators{
"+", "-", "*", "/", "%", "**", "-", "~", "|", "&", "^", "@", "@@", "<<", ">>", "==", "!=", "<", "<=", ">", ">=", "&&", "||", "!", "^^", "=", "+=", "-=", "*=", "/=", "%=", "&=", "|=", "^=", "<<=", ">>=", ".", "..", "..."
};<var/value> <operator> <var/value>
import io;
import os;
var a = 10;
var b = 20;
var c = a + b;
io.print(c);
os.system("pause");