"""
File: abstractstack.py
Author: <NAME>
"""

__author__ = "\n".join(['<NAME> (<EMAIL>)'])

__all__ = ['AbstractStack']

from Cayley.parser.abstractcollection import *

class AbstractStack(AbstractCollection):
    """Represents an abstract stack."""

    def __init__(self, sourceCollection):
        """Initializes the stack at this level."""
        AbstractCollection.__init__(self, sourceCollection)

    def add(self, item):
        """For compatibility with other collections."""
        self.push(item)

"""
File: abstractstack.py
Author: <NAME>
"""

__author__ = "\n".join(['<NAME> (<EMAIL>)'])

__all__ = ['AbstractStack']

from Cayley.parser.abstractcollection import *

class AbstractStack(AbstractCollection):
    """Represents an abstract stack."""

    def __init__(self, sourceCollection):
        """Initializes the stack at this level."""
        AbstractCollection.__init__(self, sourceCollection)

    def add(self, item):
        """For compatibility with other collections."""
        self.push(item)

File: abstractstack.py Author: <NAME> Represents an abstract stack. Initializes the stack at this level. For compatibility with other collections.