类 Parsers


  • public class Parsers
    extends java.lang.Object
    Utility class for common helpful parsers.
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static Parser<java.lang.Character> fixedChar​(char terminal)
      Construct a parser which looks for a fixed char in the input.
      static Parser<java.lang.String> fixedString​(java.lang.String terminal)
      Construct a parser which looks for a fixed string in the input.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 方法详细资料

      • fixedString

        public static Parser<java.lang.String> fixedString​(java.lang.String terminal)
        Construct a parser which looks for a fixed string in the input.
        参数:
        terminal - The string to look for.
        返回:
        A parser which returns the string that it matched.
      • fixedChar

        public static Parser<java.lang.Character> fixedChar​(char terminal)
        Construct a parser which looks for a fixed char in the input.
        参数:
        terminal - The char to look for.
        返回:
        A parser which returns the char that it matched.