calcium-lang
Version:
Calcium language interpreter
72 lines • 2.46 kB
JavaScript
export var BinaryOperator;
(function (BinaryOperator) {
BinaryOperator["Addition"] = "+";
BinaryOperator["Subtraction"] = "-";
BinaryOperator["Multiplication"] = "*";
BinaryOperator["Exponentiation"] = "**";
BinaryOperator["Division"] = "/";
BinaryOperator["FloorDivision"] = "//";
BinaryOperator["Remainder"] = "%";
BinaryOperator["Equal"] = "==";
BinaryOperator["NotEqual"] = "!=";
BinaryOperator["GreaterThan"] = ">";
BinaryOperator["GreaterThanOrEqual"] = ">=";
BinaryOperator["LessThan"] = "<";
BinaryOperator["LessThanOrEqual"] = "<=";
BinaryOperator["And"] = "and";
BinaryOperator["Or"] = "or";
BinaryOperator["Is"] = "is";
BinaryOperator["IsNot"] = "is not";
BinaryOperator["In"] = "in";
BinaryOperator["NotIn"] = "not in";
BinaryOperator["BitwiseAnd"] = "&";
BinaryOperator["BitwiseOr"] = "|";
BinaryOperator["BitwiseXor"] = "^";
BinaryOperator["LeftShift"] = "<<";
BinaryOperator["RightShift"] = ">>";
})(BinaryOperator || (BinaryOperator = {}));
export var Command;
(function (Command) {
Command["Assign"] = "=";
Command["Break"] = "break";
Command["Class"] = "class";
Command["Comment"] = "#";
Command["CompoundAddition"] = "+=";
Command["CompoundSubtraction"] = "-=";
Command["CompoundMultiplication"] = "*=";
Command["Continue"] = "continue";
Command["Def"] = "def";
Command["Elif"] = "elif";
Command["Else"] = "else";
Command["End"] = "end";
Command["Except"] = "except";
Command["ExprStmt"] = "expr";
Command["For"] = "for";
Command["If"] = "if";
Command["Ifs"] = "ifs";
Command["Import"] = "import";
Command["Pass"] = "pass";
Command["Raise"] = "raise";
Command["Return"] = "return";
Command["Try"] = "try";
Command["While"] = "while";
})(Command || (Command = {}));
export var Reference;
(function (Reference) {
Reference["Attribute"] = "attr";
Reference["Call"] = "call";
Reference["Subscript"] = "sub";
Reference["Variable"] = "var";
})(Reference || (Reference = {}));
export var Syntax;
(function (Syntax) {
Syntax["Comma"] = ",";
Syntax["KwArg"] = "kwarg";
})(Syntax || (Syntax = {}));
export var UnaryOperator;
(function (UnaryOperator) {
UnaryOperator["BitwiseNot"] = "~";
UnaryOperator["Negative"] = "-_";
UnaryOperator["Not"] = "not";
})(UnaryOperator || (UnaryOperator = {}));
//# sourceMappingURL=keywords.js.map