
    -i                     &    d Z  G d de          ZdS )z
Stack module
@author: Taha Zerrouki
@contact: taha dot zerrouki at gmail dot com
@copyright: Arabtechies,  Arabeyes,   Taha Zerrouki
@license: GPL
@date:2010/03/01
@version: 0.1
c                   ,    e Zd ZdZddZd Zd Zd ZdS )	Stackz
    Stack class
     c                 .    t          |          | _        dS )z 
        create a stack
        N)listitems)selftexts     L/var/www/html/speakWrite/venv/lib/python3.11/site-packages/pyarabic/stack.py__init__zStack.__init__   s     $ZZ


    c                 :    | j                             |           dS )z
        puch an item into the stack
        @param item: pushed item
        @type item: mixed
        @return: None
        @rtype: None
        N)r   append)r   items     r
   pushz
Stack.push   s      	
$r   c                 `    |                                  s| j                                        S dS )z^
        pop an item from the stack
        @return: poped item
        @rtype: mixed
        N)is_emptyr   popr   s    r
   r   z	Stack.pop    s+     }} 	:>>###4r   c                     | j         g k    S )zc
        test if the stack is empty
        @return: True or False
        @rtype: boolean
        )r   r   s    r
   r   zStack.is_empty+   s     zRr   N)r   )__name__
__module____qualname____doc__r   r   r   r    r   r
   r   r      s_                     	 	 	         r   r   N)r   objectr   r   r   r
   <module>r      sC    %  %  %  %  % F %  %  %  %  % r   