Skip to content

Commit

Permalink
Update data_types.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ayaan-qadri authored Oct 28, 2023
1 parent 5178fff commit 57a2833
Showing 1 changed file with 125 additions and 5 deletions.
130 changes: 125 additions & 5 deletions web/thesauruses/lua/5/data_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,65 +8,185 @@
"concepts": {
"boolean": {
"name": "Boolean",
"code": [
""
],
"not-implemented": true,
"comment": "The type boolean has two values, false and true and both nil and false make a condition false."
},
"signed_integer_8_bit": {
"name": "Signed 8-bit integer",
"code": [
""
],
"not-implemented": true
},
"unsigned_integer_8_bit": {
"name": "Unsigned 8-bit integer",
"code": [
""
],
"not-implemented": true
},
"signed_integer_16_bit": {
"name": "Signed 16-bit integer",
"code": [
""
],
"not-implemented": true
},
"unsigned_integer_16_bit": {
"name": "Unsigned 16-bit integer",
"code": [
""
],
"not-implemented": true
},
"signed_integer_32_bit": {
"name": "Signed 32-bit integer",
"code": [
""
],
"not-implemented": true
},
"unsigned_integer_32_bit": {
"name": "Unsigned 32-bit integer",
"code": [
""
],
"not-implemented": true
},
"signed_integer_64_bit": {
"name": "Signed 64-bit integer",
"code": [
""
],
"not-implemented": true
},
"unsigned_integer_64_bit": {
"name": "Unsigned 64-bit integer",
"code": [
""
],
"not-implemented": true
},
"signed_integer_as_object": {
"name": "Signed object-based Integer",
"code": [
""
],
"not-implemented": true,
"comment":"Lua does not have a built-in concept of distinct signed, object-based integers with the full range of operations and methods that you might find in languages like C++ or Java."

},
"unsigned_integer_as_object": {
"name": "Unsigned object-based Integer",
"code": [
""
],
"not-implemented": true
},
"signed_float_16_bit": {
"name": "Signed 16-bit floating point",
"code": [
""
],
"not-implemented": true
},
"unsigned_float_16_bit": {
"name": "Unsigned 16-bit floating point",
"code": [
""
],
"not-implemented": true
},
"signed_float_32_bit": {
"name": "Signed 32-bit floating point",
"code": [
""
],
"not-implemented": true
},
"unsigned_float_32_bit": {
"name": "Unsigned 32-bit floating point",
"code": [
""
],
"not-implemented": true
},
"signed_float_64_bit": {
"name": "Signed 64-bit floating point",
"code": [
""
],
"not-implemented": true
},
"unsigned_float_64_bit": {
"name": "Unsigned 64-bit floating point",
"code": [
""
],
"not-implemented": true
},
"signed_float_as_object": {
"name": "Signed object-based floating point",
"code": [
""
],
"not-implemented": true,
"comment":"Same as integer applies here too."
},
"unsigned_float_as_object": {
"name": "Unsigned object-based floating point",
"code": [
""
],
"not-implemented": true
},
"character": {
"name": "Character",
"code": [
""
],
"not-implemented": true
},
"string_as_object": {
"name": "String as an object",
"code": [
""
],
"not-implemented": true,
"comment":"In Lua, strings are typically treated as sequences of characters and do not have built-in support for being 'signed' or 'object-based' in the same way that numbers do not."
"comment":"In Lua, strings are not treated as objects in the same way that some other programming languages, like Python or JavaScript"
},
"string_as_array": {
"name": "String as an array of characters",
"not-implemented": true
"code":
[
"local myString = 'Hello, World!'\nlocal firstChar = myString:sub(1, 1) -- Access the first character\nlocal fifthChar = myString:sub(5, 5) -- Access the fifth character\nprint(firstChar) -- Output: 'H'\nprint(fifthChar) -- Output: 'o'"
],
"comment":"In Lua, strings are treated as arrays of characters."
},
"complex_as_object": {
"name": "Complex Number as an object",
"code": [
""
],
"not-implemented": true,
"comment":"In Lua, you can work with complex numbers by implementing your own data structure using tables or userdata, and define the necessary operations and methods for working with them."
"comment":"Lua does not have built-in support for complex numbers as a distinct data type like some other languages, such as Python."

},
"real_number_part": {
"name": "Complex number real part",
"code": [
""
],
"not-implemented": true
},
"imaginary_number_part": {
"name": "Complex number imaginary part",
"code": [
""
],
"not-implemented": true
}
}
}
}

0 comments on commit 57a2833

Please sign in to comment.