]> git.xonotic.org Git - xonotic/gmqcc.git/blob - data/numbers.qc
-_- file->filename
[xonotic/gmqcc.git] / data / numbers.qc
1 /* this is the WIP test for the parser...
2  * constantly adding stuff here to see if things break
3  */
4 void(string)        print  = #1;
5 void(string,string) print2 = #1;
6 void(string,string,string) print3 = #1;
7 string(float)       ftos   = #2;
8
9 void() main = {
10     float a, b, c;
11     a = 3 + 4 + 5;
12     b = (5 * 2) + 1;
13     c = 3 & 1;
14     c = 1 | 2;
15     a = 3 && 4;
16     b = 0 && 4;
17     c = 4 && 0;
18     a = 1 || 1;
19     b = 1 || 0;
20     c = 0 || 1;
21     a = 0 || 0;
22 };