File tree Expand file tree Collapse file tree 3 files changed +5
-10
lines changed
Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ Cfn Node {
99 -> bool
1010 {
1111 dec bool ret = | own.next != void |
12-
1312 return ret
1413 }
1514
@@ -86,10 +85,7 @@ Cfn Stack {
8685 {
8786 if | own...is_empty() == true | { }
8887 else {
89- dec Node temp = new Node { next: void, data: 0 }
90- temp = own.head
91- own.head = temp...next()
92-
88+ own.head = own.head ...next()
9389 own.size = own.size - 1
9490 }
9591 }
Original file line number Diff line number Diff line change @@ -92,9 +92,7 @@ pop(Stack* own)
9292}
9393else
9494{
95- Node * temp = construct_Node (NULL ,0 );
96- temp = own -> head ;
97- own -> head = next (temp );
95+ own -> head = next (own -> head );
9896 own -> size = own -> size - 1 ;
9997}
10098
@@ -141,6 +139,9 @@ main()
141139 print_str ("\n" );
142140 pop (s );
143141 pop (s );
142+ pop (s );
143+ pop (s );
144+ pop (s );
144145 print_str ("Size: " );
145146 print_int (size (s ));
146147 print_str ("\tTop: " );
Original file line number Diff line number Diff line change @@ -1155,8 +1155,6 @@ TypeChecker::visit(ast::AttributeMethodAccess* node)
11551155 std::string methodName = node->getName ()->getValue ();
11561156 std::string variableUDTname = getType (node->getAttribute ());
11571157
1158- std::cout << " HERE: " << variableUDTname << " \n " ;
1159-
11601158 // hacks: REMOVE ASAP
11611159 if (variableUDTname == " own" )
11621160 variableUDTname = curUDT;
You can’t perform that action at this time.
0 commit comments