diff --git a/web/thesauruses/lua/5/operators.json b/web/thesauruses/lua/5/operators.json new file mode 100644 index 000000000..eff61799e --- /dev/null +++ b/web/thesauruses/lua/5/operators.json @@ -0,0 +1,244 @@ +{ + "meta": { + "language": "lua", + "language_name": "Lua", + "structure": "operators", + "language_version": "5.1" + }, + "concepts": { + "addition": { + "name": "Addition operator", + "code": [ + "a + b" + ] + }, + "addition_assignment": { + "name": "Addition and assignment operator", + "not-implemented": true + }, + "subtraction": { + "name": "Subtraction operator", + "code": [ + "a - b" + ] + }, + "subtraction_assignment": { + "name": "Subtraction and assignment operator", + "not-implemented": true + }, + "multiplication": { + "name": "Multiplication operator", + "code": [ + "a * b" + ] + }, + "multiplication_assignment": { + "name": "Multiplication and assignment operator", + "not-implemented": true + }, + "division": { + "name": "Division operator", + "code": [ + "a / b" + ] + }, + "division_assignment": { + "name": "Division and assignment operator", + "not-implemented": true + }, + "integer_division": { + "name": "Integer division operator", + "not-implemented": true + }, + "integer_division_assignment": { + "name": "Integer division and assignment operator", + "not-implemented": true + }, + "modulus": { + "name": "Modulus (remainder) operator", + "code": [ + "a % b" + ] + }, + "modulus_assignment": { + "name": "Modulus and assignment operator", + "not-implemented": true + }, + "unary_plus": { + "name": "Unary plus operator", + "not-implemented": true + }, + "unary_minus": { + "name": "Unary minus operator", + "not-implemented": true + }, + "increment": { + "name": "Increment (add 1) operator", + "not-implemented": true + }, + "decrement": { + "name": "Decrement (subtract 1) operator", + "not-implemented": true + }, + "exponential": { + "name": "Exponential operator", + "code": [ + "a ^ b" + ] + }, + "factorial": { + "name": "Factorial operator", + "not-implemented": true + }, + "absolute_value": { + "name": "Absolute value operator", + "code": [ + "math.abs(a)" + ] + }, + "percentage": { + "name": "Percentage operator", + "not-implemented": true + }, + "equal_to": { + "name": "Equality operator", + "code": [ + "a == b" + ] + }, + "not_equal_to": { + "name": "Not equal to operator", + "code": [ + "a ~= b" + ] + }, + "less_than": { + "name": "Less than operator", + "code": [ + "a < b" + ] + }, + "less_than_or_equal_to": { + "name": "Less than or equal to operator", + "code": [ + "a <= b" + ] + }, + "greater_than": { + "name": "Greater than operator", + "code": [ + "a > b" + ] + }, + "greater_than_or_equal_to": { + "name": "Greater than or equal to operator", + "code": [ + "a >= b" + ] + }, + "null_coalescing": { + "name": "Null coalescing operator", + "not-implemented": true + }, + "is": { + "name": "Is operator", + "not-implemented": true + }, + "is_not": { + "name": "Is not operator", + "not-implemented": true + }, + "logical_and": { + "name": "Logical AND operator", + "code": [ + "a and b" + ] + }, + "logical_or": { + "name": "Logical OR operator", + "code": [ + "a or b" + ] + }, + "logical_not": { + "name": "Logical NOT operator", + "code": [ + "not [condition]" + ] + }, + "bitwise_and": { + "name": "Bitwise AND operator", + "code": [ + "a & b" + ] + }, + "bitwise_and_assignment": { + "name": "Bitwise AND and assignment operator", + "not-implemented": true + }, + "bitwise_or": { + "name": "Bitwise OR operator", + "code": [ + "a | b" + ] + }, + "bitwise_or_assignment": { + "name": "Bitwise OR and assignment operator", + "not-implemented": true + }, + "bitwise_not": { + "name": "Bitwise NOT operator", + "code": [ + "~a" + ] + }, + "not_assignment": { + "name": "Bitwise NOT and assignment operator", + "not-implemented": true + }, + "bitwise_xor": { + "name": "Bitwise XOR operator", + "not-implemented": true + }, + "bitwise_xor_assignment": { + "name": "Bitwise XOR and assignment operator", + "not-implemented": true + }, + "bitwise_xnor": { + "name": "Bitwise XNOR operator", + "not-implemented": true + }, + "bitwise_xnor_assignment": { + "name": "Bitwise XNOR and assignment operator", + "not-implemented": true + }, + "left_shift": { + "name": "Left shift bitwise operator", + "code": [ + "a << b" + ] + }, + "left_shift_assignment": { + "name": "Left shift assignment operator", + "not-implemented": true + }, + "right_shift": { + "name": "Right shift bitwise operator", + "code": [ + "a >> b" + ] + }, + "right_shift_assignment": { + "name": "Right shift assignment operator", + "not-implemented": true + }, + "ternary": { + "name": "Ternary operator", + "not-implemented": true + }, + "null_forgiving": { + "name": "Null forgiving operator", + "not-implemented": true + } + } +} \ No newline at end of file diff --git a/web/thesauruses/powershell/7/control_structures.json b/web/thesauruses/powershell/7/control_structures.json new file mode 100644 index 000000000..29c193ba4 --- /dev/null +++ b/web/thesauruses/powershell/7/control_structures.json @@ -0,0 +1,128 @@ +{ + "meta": { + "language": "powershell", + "language_name": "Powershell", + "structure": "control_structures", + "language_version": "7" + }, + "concepts": { + "if_conditional": { + "name": "If conditional", + "code": [ + "if (condition) {}" + ] + }, + "if_else_conditional": { + "name": "If/Else conditional", + "code": [ + "if (condition) {}", + "else {}" + ] + }, + "if_elseif_conditional": { + "name": "If/ElseIf conditional", + "code": [ + "if (condition) {}", + "elseif (condition) {}" + ] + }, + "if_elseif_else_conditional": { + "name": "If/ElseIf/Else conditional", + "code": [ + "if (condition) {}", + "elseif (condition) {}", + "else {}" + ] + }, + "switch_statement": { + "name": "Switch statement", + "code": [ + "switch (condition) {", + " case 1 {}", + " case 2 {}", + " default {}", + "}" + ] + }, + "ternary_conditional": { + "name": "Ternary conditional", + "code": [ + "condition ? true : false" + ] + }, + "while_loop": { + "name": "While loop", + "code": [ + "while (condition) {", + " ...", + "}" + ] + }, + "do_while_loop": { + "name": "Do/While loop", + "code": [ + "do {", + " ...", + "} while (condition)" + ] + }, + "until_loop": { + "name": "Until loop", + "code": [ + "until (condition) {", + " ...", + "}" + ] + }, + "do_until_loop": { + "name": "Do/Until loop", + "code": [ + "do {", + " ...", + "} until (condition)" + ] + }, + "for_loop": { + "name": "For loop", + "code": [ + "for ($i = 0; $i < 10; $i++) {}" + ] + }, + "foreach_loop": { + "name": "Foreach loop", + "code": [ + "foreach ($item in $items) {}" + ] + }, + "list_comprehension": { + "name": "List Comprehension", + "not-implemented": true + }, + "each_iteration": { + "name": "Each iteration", + "not-implemented": true + }, + "map_iteration": { + "name": "Map iteration", + "not-implemented": true + }, + "filter_iteration": { + "name": "Filter iteration", + "code": [ + "$items | ? { condition }", + "$items | where { condition }", + "$items | where-object { condition }" + ], + "comment": "The ? operator and the where keyword are aliases for the where-object cmdlet." + }, + "fold_iteration": { + "name": "Fold iteration", + "code": [ + "$items | % {}", + "$items | foreach {}", + "$items | foreach-object {}" + ], + "comment": "The % operator and the foreach keyword are aliases for the foreach-object cmdlet." + } + } +}