All Downloads are FREE. Search and download functionalities are using the official Maven repository.

antlr.collections.Stack Maven / Gradle / Ivy

There is a newer version: 3.3.8
Show newest version
package antlr.collections;

/* ANTLR Translator Generator
 * Project led by Terence Parr at http://www.cs.usfca.edu
 * Software rights: http://www.antlr.org/license.html
 *
 * $Id: //depot/code/org.antlr/release/antlr-2.7.7/antlr/collections/Stack.java#2 $
 */

import java.util.NoSuchElementException;

/** A simple stack definition; restrictive in that you cannot
 * access arbitrary stack elements.
 *
 * @author Terence Parr
 * MageLang Institute
 */
public interface Stack {
    public int height();

    public Object pop() throws NoSuchElementException;

    public void push(Object o);

    public Object top() throws NoSuchElementException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy