Skip to content

Commit

Permalink
Merge branch 'main' into features/draft
Browse files Browse the repository at this point in the history
  • Loading branch information
ulyssear authored Nov 2, 2023
2 parents 46eed21 + 110edd4 commit da1f516
Show file tree
Hide file tree
Showing 2 changed files with 372 additions and 0 deletions.
244 changes: 244 additions & 0 deletions web/thesauruses/lua/5/operators.json
Original file line number Diff line number Diff line change
@@ -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
}
}
}
128 changes: 128 additions & 0 deletions web/thesauruses/powershell/7/control_structures.json
Original file line number Diff line number Diff line change
@@ -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."
}
}
}

0 comments on commit da1f516

Please sign in to comment.