Advertisement
snake5

new lang test sample / current state of generation

Jan 8th, 2015
534
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.96 KB | None | 0 0
  1. ---- IN ----
  2. static var globall : int32 = 1;
  3.  
  4. class data1
  5. {
  6.     class ooo { var c : uint8; }
  7.    
  8.     var name : string;
  9.     var value : int32;
  10.    
  11.     func both(){ return name $ value; }
  12. }
  13.  
  14. func _test( a : int32 ) : int32
  15. {
  16.     var v : int8 = -5;
  17.     return 0s8 + a + v;
  18. }
  19. --- OUT ----
  20.  
  21. #include <inttypes.h>
  22.  
  23. typedef int8_t Iint8;
  24. typedef uint8_t Iuint8;
  25. typedef int16_t Iint16;
  26. typedef uint16_t Iuint16;
  27. typedef int32_t Iint32;
  28. typedef uint32_t Iuint32;
  29. typedef int64_t Iint64;
  30. typedef uint64_t Iuint64;
  31. typedef float Ifloat32;
  32. typedef double Ifloat64;
  33.  
  34.  
  35. typedef struct Idata1PIooo
  36. {
  37.     Iuint8 Ic;
  38. }
  39. Idata1PIooo;
  40.  
  41. typedef struct Idata1
  42. {
  43.     Istring Iname;
  44.     Iint32 Ivalue;
  45. }
  46. Idata1;
  47.  
  48.  
  49. Iint32 Igloball = 1ULL;
  50.  
  51.  
  52. void Idata1PIboth();
  53. Iint32 _Itest();
  54.  
  55.  
  56. void Idata1PIboth()
  57. {
  58.     return ((!op[1]str[12])) <INV-BINARY-OP:239> ((!op[1]str[12]));
  59. }
  60.  
  61. Iint32 _Itest()
  62. {
  63.     Iint8 Iv = -(5ULL);
  64.     return ((0) + ((!op[1]str[12]))) + ((!op[1]str[12]));
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement