compiler

Unnamed Compiled Systems Language Project
git clone http://frotz.net/git/compiler.git
Log | Files | Refs

1050-enums.src (286B)


      1 
      2 var i i32 = 3;
      3 
      4 enum { ZERO, ONE, TWO, };
      5 
      6 enum { A = 5, B, C = 0x10000000, D, E = 50 + 50, F = ONE * TWO, }; 
      7 
      8 func start() i32 {
      9 	_hexout_(ZERO);
     10 	_hexout_(ONE);
     11 	_hexout_(TWO);
     12 	_hexout_(A);
     13 	_hexout_(B);
     14 	_hexout_(C);
     15 	_hexout_(D);
     16 	_hexout_(E);
     17 	_hexout_(F);
     18         return 0;
     19 }
     20