kwasm.ast

Kwasm.ast

package kwasm.ast

Classes

Name Description
interface AstNode

Base interface implemented by all members of the AST.

interface DeDupeableAstNode

Represents an AstNode type for which there may be a canonical variant available.

data class AstNodeList

A list of AstNodes.

sealed class Identifier

From the docs:

Where I is a IdentifierContext:


I  ::=   { types       (id?),
funcs       (id?),
tables      (id?),
mems        (id?),
globals     (id?),
locals      (id?),
labels      (id?),
typedefs    functype   }

abstract class Literal

Base for all literal values in the AST.

sealed class IntegerLiteral

Literal Representation of an unsigned Int (as UInt).

sealed class FloatLiteral

Base for all Literal classes which represent a floating-point value.

data class StringLiteral

Representation of a String as a Literal.

Subpackages

Name Description
package kwasm.ast.instruction
package kwasm.ast.module
package kwasm.ast.type
package kwasm.ast.util

Methods

astNodeListOf

fun <T : AstNode> astNodeListOf(vararg values: T): AstNodeList<T>

Convenience function to build an AstNodeList in a similar manner to other list types.

Parameters

Name Description
vararg values: T

ReturnValue

Name Description
AstNodeList<T>