Interface Term<S>

All Known Implementing Classes:
StringReaderTerms.TerminalCharacter, StringReaderTerms.TerminalWord, Term.Alternative, Term.Marker, Term.Maybe, Term.Reference, Term.Sequence

public interface Term<S>
  • Method Details

    • parse

      boolean parse(ParseState<S> pParseState, Scope pScope, Control pControl)
    • named

      static <S> Term<S> named(Atom<?> pName)
    • marker

      static <S, T> Term<S> marker(Atom<T> pName, T pValue)
    • sequence

      @SafeVarargs static <S> Term<S> sequence(Term<S>... pElements)
    • alternative

      @SafeVarargs static <S> Term<S> alternative(Term<S>... pElements)
    • optional

      static <S> Term<S> optional(Term<S> pTerm)
    • cut

      static <S> Term<S> cut()
    • empty

      static <S> Term<S> empty()