Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
test.c
Go to the documentation of this file.
1 module test {
2 
3 globals {
4  class int g1,g2,g5,g6;
5  float g3;
6  object g4;
7 };
8 
9 import a1;
10 
11 class int aty:=34.3;
12 int arss=4.3;
13 
14  void t0(){
15  float x=a*b+c*d+e;
16  float y=a*b+c+d*e/f-g*q;
17 
18  float x2=b+!a*b+!c-d;
19  float x3=!a+b==!b;
20 
21  };
22 
23  void t1(){
24  int blah="whatever";
25  a="whatever"+"nothing"+_io.print("never","ever");
26 
27  float b1=a*b;
28  float b2:=3.4;
29  a->push(a,b,cd);
30 
31  };
32 
33  int m1;
34  //int ms1;
35  float sdm2;
36 
37  int m321;
38  /* int ms1;
39  float ms234;
40  */
41  float sdm2;
42 
43 
44 bool blah:=true;
45 
47 
48  void loop(){
49  if(a){
50  int blah;
51  };
52 
53  if(a){
54  int sdhfj;
55  }
56  else {
57  int sdjk;
58  };
59 
60  if(a){
61  int sdhfj;
62  }
63  else if(b) {
64  int sdjk;
65  };
66 
67  };
68 
69  void loop2(){
70  if(a){
71  int blah;
72  }
73 
74  if(a){
75  int sdhfj;
76  }
77  else {
78  int sdjk;
79  }
80 
81  if(a){
82  int sdhfj;
83  }
84  else if(b) {
85  int sdjk;
86  };
87 
88  };
89 
90  void gram(void d){};
91 
92  float first(int a,float b) {
93  _io.three(:s1="flubb"; :s2="blah" ;a,b,c,d);
94  _io.qu();
95  _io.js1(a);
96  _io.js2(a,b);
97  _io.js3(:s1="blah";a,b,c);
98  _io.js4(:s1="blah";:s2="fghdg";a,b,c);
99  _io.js5(:s1="fsjf";);
100 
101  return a;
102  blubb=four(a);
103  };
104 
105 
106  float second(int a1,float d3) {
107  int hallo;
108  float fasel;
109 
110  if(whatever==soever) {
111  int h2;
112  float b3;
113 
114  b3=13.3;
115  b34=(sowhat==nover);
116 
117  if(nowhat+never==323.4){
118  return;
119  }
120  else{
121  }
122 
123  a46=34.2 + 3.4;
124 
125  a3784=37+4278.54*dh+4.5;
126  }
127  else {
128  int h3;
129  float h4;
130  };
131 
132  };
133 
134 }