Package kawa.lang

Class Translator.FormStack

  • All Implemented Interfaces:
    BoundedHashable, Consumable, Sequence<java.lang.Object>, java.io.Externalizable, java.io.Serializable, java.lang.Comparable, java.lang.Iterable<java.lang.Object>, java.util.Collection<java.lang.Object>, java.util.List<java.lang.Object>
    Enclosing class:
    Translator

    public static class Translator.FormStack
    extends Pair
    A list of "forms" to be further processed. It is implemented as an LList so we can save position information.
    See Also:
    Serialized Form
    • Method Detail

      • getHead

        public Pair getHead()
        Return the "head" of the list. The cdr of the head is the first element.
      • getFirst

        public java.lang.Object getFirst()
      • lastPair

        public Pair lastPair()
        The Pair whose car is the last form in the list. If the list is empty, this returns the list head.
        Overrides:
        lastPair in class Pair
      • popTail

        public java.lang.Object popTail​(Pair oldTail)
      • push

        public void push​(java.lang.Object value)
      • pushAll

        public void pushAll​(LList values)
      • pushAll

        public void pushAll​(LList values,
                            Pair valuesLast)
      • pushAfter

        public void pushAfter​(java.lang.Object value,
                              Pair position)