Class WatParser
java.lang.Object
de.inetsoftware.jwebassembly.module.WasmCodeBuilder
de.inetsoftware.jwebassembly.watparser.WatParser
Parser for text format of a function.
- Author:
- Volker Berlin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidparse(String wat, MethodInfo method, Iterator<AnyType> signature, int lineNumber) Parse the given wasm text format and generate a list of WasmInstuctionsMethods inherited from class de.inetsoftware.jwebassembly.module.WasmCodeBuilder
addArrayInstruction, addBlockInstruction, addCallInstruction, addCallInterfaceInstruction, addCallVirtualInstruction, addConstInstruction, addConstInstruction, addConvertInstruction, addDupInstruction, addDupX1Instruction, addDupX2Instruction, addGlobalInstruction, addGlobalInstruction, addInvokeDynamic, addJumpPlaceholder, addLoadStoreInstruction, addLocalInstruction, addMemoryInstruction, addMultiNewArrayInstruction, addMultiNewArrayInstruction, addNopInstruction, addNumericInstruction, addStructInstruction, addTableInstruction, calculateVariables, getTypeManager, reset
-
Constructor Details
-
WatParser
public WatParser()
-
-
Method Details
-
parse
Parse the given wasm text format and generate a list of WasmInstuctions- Parameters:
wat- the text format content of a functionmethod- the method with signature as fallback for a missing variable tablesignature- alternative for method signature, can be null if method is setlineNumber- the line number for an error message
-