Advertisement
KAYOver

Objects Structure Rough Example

Jul 19th, 2022
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. @1 => {
  2. TestClass: @2 => class { ... },
  3. testPi: 3.14,
  4. metaObject: {
  5. address: 1,
  6. type: 'namespace',
  7. inheritance: [],
  8. properties: [
  9. {
  10. accesibility: 'public',
  11. title: 'TestClass',
  12. inheritance: [2],
  13. value: '110010' -> 2
  14. },
  15. {
  16. accesibility: 'public',
  17. title: 'testPi',
  18. inheritance: ['float'],
  19. value: '110011101110110001110100' -> 3.14
  20. }
  21. ],
  22. scope: nil
  23. }
  24. }
  25.  
  26. @2 => {
  27. init: @3 => { (firstArgument: float, secondArgument: boolean) -> boolean in ... },
  28. metaObject: {
  29. address: 2,
  30. type: 'class',
  31. inheritance: [],
  32. properties: [
  33. {
  34. accesibility: 'public',
  35. title: 'init',
  36. inheritance: [3],
  37. value: '110011' -> 3
  38. }
  39. ],
  40. scope: 1
  41. }
  42. }
  43.  
  44. @3 => {
  45. init: 'print('Test: '+firstArgument) return secondArgument',
  46. firstArgument,
  47. secondArgument,
  48. metaObject: {
  49. address: 3,
  50. type: 'function',
  51. inheritance: ['boolean'],
  52. properties: [
  53. {
  54. accesibility: nil,
  55. title: 'init',
  56. inheritance: ['string']
  57. value: '111000011100101101001110111011101001010001001111010100110010111100111110100111010100000100111101011110011011010011110010111001111101001000001111001011001111110101110110111001011101110111010010100110000011100101100101111010011101011110010110111010000011100111100101110001111011111101110110010010000011110010110011111101011101101110010111011101110100' -> '...'
  58. },
  59. {
  60. accesibility: nil,
  61. title: 'firstArgument',
  62. inheritance: ['float']
  63. value: nil
  64. },
  65. {
  66. accesibility: nil,
  67. title: 'secondArgument',
  68. inheritance: ['boolean']
  69. value: nil
  70. }
  71. ]
  72. },
  73. scope: 2
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement