Advertisement
siewdass

Lang

Aug 16th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. import debug
  2. from system import platform
  3. import 'external.new'
  4.  
  5. # comment line
  6. ##
  7. comment multiple lines
  8. ##
  9.  
  10. str a = platform( )
  11. int b = 1
  12. float c = 1.0
  13.  
  14. bool d = true
  15. bool e = false
  16.  
  17. tuple f = ( a, b ) # maybe pair?
  18.  
  19. byte g = b
  20.  
  21. list h = { a, b, c } # inmutable ( ) ?
  22. f.append( d )
  23. f.insert( 3, d ) # by index
  24. f.remove( d )
  25.  
  26. dict i = [ a: d, b: g ]
  27.  
  28. debug( a )
  29.  
  30. if ( a = 'Android' ) {
  31. if not ( a = 'iOS' ) or ( a = 'OSX' ) {
  32. debug( false )
  33. }
  34. } else if ( a = 'Linux' ) or ( a = 'Windows' ) {
  35. debug( true )
  36. } else {
  37. debug( false )
  38. }
  39.  
  40. var = str( b )
  41. var = int( a )
  42. var = len( b )
  43. var = byte( a )
  44. var = type( c )
  45.  
  46. var = var.split( ' ' ) # for loop or toList( ' ' )
  47. var = var.slice( 0, 1 )
  48.  
  49. for ( int var in h ) {
  50. debug( var )
  51. }
  52.  
  53. ## ignore
  54. null/none
  55. kwargs
  56. self
  57. switch case
  58. with
  59. global
  60. function
  61. class
  62. ##
  63.  
  64. # C++
  65. class MyClass {
  66. void myFunction( ) {
  67. }
  68. }
  69.  
  70. # Python
  71. class MyClass:
  72. def myFunction( ):
  73.  
  74. # New
  75. MyClass {
  76. myFunction( ) {
  77. }
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement