Class ListParser

java.lang.Object
io.github.eutro.jwasm.sexp.internal.ListParser

public class ListParser extends Object
  • Field Details

  • Constructor Details

    • ListParser

      public ListParser(List<?> list)
    • ListParser

      public ListParser(List<?> list, int i)
  • Method Details

    • isId

      public static boolean isId(Object it)
    • expectClass

      public static <T> T expectClass(Class<T> clazz, Object obj)
    • expectList

      public static List<?> expectList(Object obj)
    • expectEq

      public static void expectEq(Object expected, Object val)
    • mark

      public static <T> T mark(Object obj, Supplier<T> f)
    • parseUtf8

      public static String parseUtf8(Object obj)
    • parseV128Const

      public static byte[] parseV128Const(ListParser lp, boolean acceptScriptNan)
    • expectBigInt

      public static BigInteger expectBigInt(Object obj)
    • parseI32

      public static int parseI32(Object obj)
    • parseI64

      public static long parseI64(Object obj)
    • parseF32

      public static float parseF32(Object val)
    • parseF32

      public static float parseF32(Object val, boolean acceptScriptNan)
    • parseF64

      public static double parseF64(Object val)
    • parseF64

      public static double parseF64(Object val, boolean acceptScriptNan)
    • expect

      public Object expect(String msg)
    • expect

      public Object expect()
    • maybeParse

      public Optional<Object> maybeParse(Predicate<Object> pred)
    • maybeParseId

      public Optional<String> maybeParseId()
    • expectEnd

      public void expectEnd()
    • peek

      public Optional<Object> peek()