5 symboltable *table = new symboltable;
14 struct find_result* temp3;
15 String t = "t", a = "a",
21 //temp=table->insert(t,VARIABLE_S,new v_variable);
22 temp0=table->insert(a,CLASS_S,new c_class);
24 cout << "test 1 " << temp3->found->id << '\n';
26 temp1=table->last->open_unit();
27 table->last->add_spec(CLOSE,x);
28 table->last->add_spec(CLOSE,y);
29 table->last->add_spec(HIDDEN,t);
30 table->last->add_spec(HIDDEN,u);
31 table->last->add_spec(CLOSE,t);
32 table->last->add_virt(temp0);
34 temp=table->insert(x,VARIABLE_S,new v_variable);
35 temp=table->insert(t,VARIABLE_S,new v_variable);
36 temp=table->insert(u,VARIABLE_S,new v_variable);
37 temp=table->insert(z,VARIABLE_S,new v_variable);
38 temp=table->insert(y,VARIABLE_S,new v_variable);
41 temp3=table->find_in_module(temp1,y,NOT_DOT);
42 cout << "test " << temp3->found->id << '\n';
43 temp3=temp1->local_find(x,ALL);
44 cout << "test " << temp3->found->id << '\n';
46 cout << "test " << temp3->found->id << '\n';
47 table->last->close_unit();
50 cout << "test " << temp3->found->id << '\n';
52 temp0=table->insert(b,CLASS_S,new c_class);
53 temp1=table->last->open_unit();
56 cout << "test 2 " << temp3->found->id << 'n';
58 temp0=table->inherit(a);
61 if (temp3->found == NULL) cout << "o nie jest widoczy \n";
63 temp3=table->find_in_module(temp1,t,NOT_DOT);
64 if (temp3->found == NULL) cout << "t nie jest widoczy z zewnatrz\n";
66 temp3=table->find_in_module(temp1,t,TRUE);
67 if (temp3->found == NULL) cout << "t nie jest widoczy przez kropke\n";
69 temp3=table->find_in_module(temp1,x,TRUE);
70 if (temp3->found == NULL) cout << "x nie jest widoczy \n";
73 cout << "test " << temp3->found->id << '\n';