1:   /* Created by SharpDevelop.
2:    * User: Eduardo Rocha Monteiro ([email protected])
3:    * Date: 25/2/2005
4:    * Time: 14:25
5:   */
6:  
7:   using System;
8:  
9:   namespace Compilador.Util
10:   {
11:       /// <summary>
12:       /// Description of Pilha.
13:       /// </summary>
14:       public class Pilha
15:       {
16:           private int _item;
17:             private Pilha _next;
18:             private Pilha _previous;
19:  
20:             public Pilha()
21:             {
22:                 _item = -1;
23:                 _previous null;
24:                 _next null;              
25:                 
26:             }
27:             public Pilha(int a)
28:             {
29:                 _item a;
30:                 _previous null;
31:                 _next null;              
32:           }
33:           
34:           public Pilha Push(int a)
35:           {
36:               _next new Pilha(a);
37:                 _next._previous=this;
38:                 return _next;                        
39:           }
40:           
41:           public Pilha Pop()
42:           {
43:               Pilha p _previous;
44:               p._next=null;
45:               return p;            
46:           }
47:           
48:           public int Item
49:           {
50:               get
51:               {
52:                   return _item;
53:               }
54:           }
55:           
56:           public void DecItem()
57:           {
58:               _item--;
59:           }
60:       }
61:   }

This page was automatically generated by SharpDevelop.

1