Class WatParser

java.lang.Object
de.inetsoftware.jwebassembly.module.WasmCodeBuilder
de.inetsoftware.jwebassembly.watparser.WatParser

public class WatParser extends WasmCodeBuilder
Parser for text format of a function.
Author:
Volker Berlin
  • Constructor Details

    • WatParser

      public WatParser()
  • Method Details

    • parse

      public void parse(String wat, MethodInfo method, Iterator<AnyType> signature, int lineNumber)
      Parse the given wasm text format and generate a list of WasmInstuctions
      Parameters:
      wat - the text format content of a function
      method - the method with signature as fallback for a missing variable table
      signature - alternative for method signature, can be null if method is set
      lineNumber - the line number for an error message