Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ?> Redfine the World Easy Syntax
- ?> Multiline Comment:
- ?>test
- !>
- .. some Text
- <!
- ?>SingellineComment:
- ?> .. some Text
- ?>Data:
- ?>Number:
- i8
- i16
- i32
- i64
- ?>Unsigend Number:
- ui8
- ui16
- ui32
- ui64
- ?>Char:
- c8
- c16
- c32
- c64
- ?>String:
- wrd
- str
- ?> Enumartion type
- enu
- ?>Float:
- f8
- f16
- f32
- f64
- ?> Special's
- type
- ?>Var:
- var
- ct
- let
- const
- ?> Alias Functions
- al this_thing i16
- al myfunc ifunc
- ?>Varide:
- i16,i32,i64:$t;
- ?>Variade Data:
- var $t:beispiel
- ?>Aliases
- al i16 int16;
- al f8 float8;
- ?>Type Conversion
- var i16:data = 13343;
- var i32:data1 = conv(data);
- ?> Get type of a Value
- var str:mydata = "this is a string";
- type:mydata ?> Will return str in version 1.0.0 of wes
- ?>Function Definitions:
- ?>SingelDefine:
- func:beispiel( .. Some Arguments )
- {
- .. Some Commands
- }
- ?>Anonym Define:
- ( .. Some Arguments )
- {
- ?>.. Some Commands
- }
- ?>AnonymFunction Calls:
- ();
- ?>AnonymFunction Store:
- var func:b =
- ( .. Some Agrguments )
- {
- ?>.. Some Commands
- }
- ?>Returning Functions:
- func:beispiel( .. Some Agruments ) str
- {
- ?>.. Some Commands
- }
- ?>Muliple Returning Functions:
- func:beispiel( .. Some Agruments ) str , i16
- {
- ?>.. Some Commands
- }
- ?>Variade Functions:
- i16,c16,str:$t;
- func:beispiel($t:beispiel1,$t:beispiel2)
- {
- ret beispiel1 + beispiel2;
- }
- ?>Variade Functions Return:
- func:beispiel($t:beispiel1 , $t:beispiel2) $t
- {
- ret beispiel1 + beispiel2;
- }
- ?>Functions with Names
- func:beispiel1(i16:x_pos,i16:y_pos)
- {
- ?>.. some Commands
- }
- ?>Variade Function Calls:
- beispiel1(y_pos:55,x_pos:23);
- ?>Functions with multi paramters
- func:beispiel4(i32:Dek,str)
- {
- }
- ?> Get type of function parameters taht are Varaides
- i16,i32,str:$t;
- str,i32,i64:$z;
- func:bsp($t:param1,$z:param2)
- {
- if type:param1 == str
- {
- if param2 == i16
- {
- print("this is param1: [param1] and param2: [param2]");
- }
- }
- }
- bsp("simplecall",param2:23); ?> Will return: this is param1: simplecall and param2: 23
- bsp(param2:34,param1:max(i16)); ?> Will return: this is param1: 34 and param2: 65535
- ?>Code Structures:
- ?>Wehn Statment (Multithread if):
- wehn a <= b
- {
- ?>.. some Commands
- }
- ?>If in wes lang
- if a <= b
- {
- ?>.. some Commands
- }
- ?>If + else
- if a <= b
- {
- ?>.. some Commands
- }
- else
- {
- ?>.. some Commands
- }
- ?>if + elseif
- if a <= b
- {
- ?>.. some Commands
- }
- elseif
- {
- ?>.. some Commands
- }
- ?>While Wes
- while a < 3
- {
- ?>.. some Commands
- }
- ?>Mulitthread while
- aslong a < 3
- {
- ?>.. some Commands
- }
- ?>Mulitfile Stuff
- ?> File 1:
- func:ismir()
- {
- ret 22;
- }
- ?> File 2:
- print(ismir());
- ?> Pointing Value
- var @test:mypointingvalue = ismir;
- mypointingvalue(); ?> 22
- ?> Pointer as Parameter
- func:bc(@test:anvalue,@test2:mytest)
- {
- print("Test"..anvalue.size);
- }
- ?> Send Pointer
- var i16:zwei = 0;
- var i32:drei = 4;
- var c16:mychar = 23;
- bc(@zwei , @drei) ?> "Test 16bit "
- bc(@mychar , @tem ) ?> "Test 22bit "
- ?> Summarys
- ct i16:MySum << 12 , 24 , 45 , 56 , 89 ;
- ct c32:MyRun << 'c' , 'o' , 'p' , 'w' ;
- ?> Summary Read
- var MySum.type:val;
- MySum(23) = val;
- ?> Summary Write
- MySum(12) = 4;
- MySum:4 ?> 4 24 45 56 89
- MySum:5 ?> 4 5 45 56 89
- MySum: ?> 4 5 45 56 89
- MySum:1 ?> 1 5 45 56 89
- MySum:! ?> 1 5 45 56 89
- MySum:4 ?> 1 4 45 56 89
- ?> Summary Sort
- func:sort( a , b)
- {
- wehn ( a < b )
- {
- ret a;
- }
- else
- {
- ret b;
- }
- }
- MySum(@sort:sort);
- ?> Summary Sort Anoynom
- ()
- {
- al a first;
- al b second;
- ret a < b ;
- }
- MySum(@());
- ?> Future
- ?> String Interpolation
- var i16:myrandomvar = 43423;
- var str:mystring = " [myrandomvar] "; ?> returns 43423
- var str:mystring2 = " [myrandomvar[HEX]] "; ?> returns 0xA99F
- var str:mystring3 = " [mystring2[ASCII]]"; ?> returns 43423
- var str:mystring4 = " [mystring2[RANGE 2-4]] "; ?> returns A99F
- var str:mystring5 = " [myrandomvar[PUT 1 3 4 5]] "; ?> returns 4423
- ?>diffrence ? the number 3 is missing
- var str:mystring6 = " [myrandomvar[EVERY 3]] "; ?> returns 442
- ?> Classes Inharitance ..
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement