snake5 icon

new lang test sample / current state of generation

snake5 | PRO | 01/08/15 08:56:24 PM UTC | 0 ⭐ | 899 👁️ | Never ⏰ | []
C |

960 B

|

None

|

0 👍

/

0 👎

---- IN ----
static var globall : int32 = 1;
 
class data1
{
    class ooo { var c : uint8; }
    
    var name : string;
    var value : int32;
    
    func both(){ return name $ value; }
}
 
func _test( a : int32 ) : int32
{
    var v : int8 = -5;
    return 0s8 + a + v;
}
--- OUT ----
 
#include <inttypes.h>
 
typedef int8_t Iint8;
typedef uint8_t Iuint8;
typedef int16_t Iint16;
typedef uint16_t Iuint16;
typedef int32_t Iint32;
typedef uint32_t Iuint32;
typedef int64_t Iint64;
typedef uint64_t Iuint64;
typedef float Ifloat32;
typedef double Ifloat64;
 
 
typedef struct Idata1PIooo
{
    Iuint8 Ic;
}
Idata1PIooo;
 
typedef struct Idata1
{
    Istring Iname;
    Iint32 Ivalue;
}
Idata1;
 
 
Iint32 Igloball = 1ULL;
 
 
void Idata1PIboth();
Iint32 _Itest();
 
 
void Idata1PIboth()
{
    return ((!op[1]str[12])) <INV-BINARY-OP:239> ((!op[1]str[12]));
}
 
Iint32 _Itest()
{
    Iint8 Iv = -(5ULL);
    return ((0) + ((!op[1]str[12]))) + ((!op[1]str[12]));
}

Comments