类 Combinator

java.lang.Object
jaskell.parsec.common.Combinator

public class Combinator
extends Object
Created by march on 16/9/12. helper toolbox for combinator.
  • 构造器详细资料

    • Combinator

      public Combinator()
  • 方法详细资料

    • attempt

      public static <E,​ T> Attempt<E,​T> attempt​(Parsec<E,​T> parser)
    • ahead

      public static <E,​ T> Ahead<E,​T> ahead​(Parsec<E,​T> parser)
    • choice

      @SafeVarargs public static <E,​ T> Choice<E,​T> choice​(Parsec<E,​T>... parsers)
    • many

      public static <E,​ T> Many<E,​T> many​(Parsec<E,​T> parser)
    • many1

      public static <E,​ T> Many1<E,​T> many1​(Parsec<E,​T> parser)
    • manyTill

      public static <E,​ T,​ L> ManyTill<E,​T,​L> manyTill​(Parsec<E,​T> parser, Parsec<E,​L> end)
    • skip

      public static <E,​ T> Skip<E,​T> skip​(Parsec<E,​T> parser)
    • skip1

      public static <E,​ T> Skip1<E,​T> skip1​(Parsec<E,​T> parser)
    • sepBy

      public static <E,​ T,​ Sep> SepBy<E,​T,​Sep> sepBy​(Parsec<E,​T> parser, Parsec<E,​Sep> by)
    • sepBy1

      public static <E,​ T,​ Sep> SepBy1<E,​T,​Sep> sepBy1​(Parsec<E,​T> parser, Parsec<E,​Sep> by)
    • find

      public static <E,​ T> Find<E,​T> find​(Parsec<E,​T> parser)
    • between

      public static <E,​ T,​ O,​ C> Parsec<E,​T> between​(Parsec<E,​O> open, Parsec<E,​C> close, Parsec<E,​T> parser)
    • option

      public static <E,​ T> Parsec<E,​Optional<T>> option​(Parsec<E,​T> parser)