Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import debug
- from system import platform
- import 'external.new'
- # comment line
- ##
- comment multiple lines
- ##
- str a = platform( )
- int b = 1
- float c = 1.0
- bool d = true
- bool e = false
- tuple f = ( a, b ) # maybe pair?
- byte g = b
- list h = { a, b, c } # inmutable ( ) ?
- f.append( d )
- f.insert( 3, d ) # by index
- f.remove( d )
- dict i = [ a: d, b: g ]
- debug( a )
- if ( a = 'Android' ) {
- if not ( a = 'iOS' ) or ( a = 'OSX' ) {
- debug( false )
- }
- } else if ( a = 'Linux' ) or ( a = 'Windows' ) {
- debug( true )
- } else {
- debug( false )
- }
- var = str( b )
- var = int( a )
- var = len( b )
- var = byte( a )
- var = type( c )
- var = var.split( ' ' ) # for loop or toList( ' ' )
- var = var.slice( 0, 1 )
- for ( int var in h ) {
- debug( var )
- }
- ## ignore
- null/none
- kwargs
- self
- switch case
- with
- global
- function
- class
- ##
- # C++
- class MyClass {
- void myFunction( ) {
- }
- }
- # Python
- class MyClass:
- def myFunction( ):
- # New
- MyClass {
- myFunction( ) {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement