siewdass

New

Aug 22nd, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 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. a = platform( ) # str
  11. b = 1 # int
  12. c = 1.0 # float
  13.  
  14. d = true # bool
  15. e = false # bool
  16.  
  17. f = ( a, b ) # tuple
  18.  
  19. g = b'a' # byte
  20.  
  21. h = { a, b, c } # list
  22. f.append( d )
  23. f.insert( 3, d ) # by index
  24. f.remove( d )
  25.  
  26. i = [ a: d, b: g ] # dict
  27.  
  28. # conditions
  29. if ( a = 'Android' ) {
  30. if not ( a = 'iOS' ) or ( a = 'OSX' ) {
  31. debug( false ) # print
  32. }
  33. } else if ( a = 'Linux' ) or ( a = 'Windows' ) {
  34. debug( true )
  35. } else {
  36. debug( false )
  37. }
  38.  
  39. var = str( b )
  40. var = int( a )
  41. var = len( b )
  42. var = byte( a )
  43. var = type( c )
  44.  
  45. var = var.split( ' ' ) # for loop or toList( ' ' )
  46. var = var.slice( 0, 1 )
  47.  
  48. for ( var in h ) { # loop
  49. debug( var )
  50. }
  51.  
  52. while ( d ) {
  53. }
  54.  
  55. MyClass { # class
  56. myFunction( ) { # function
  57. }
  58. }
  59.  
  60. ##
  61. self
  62. switch
  63. case
  64. with
  65. try
  66. global
  67. ##
Add Comment
Please, Sign In to add comment