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
|
abstract class Literal
|
Base for all literal values in the AST. |
sealed class IntegerLiteral
|
|
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>
Parameters
Name | Description |
---|---|
vararg values: T
|
ReturnValue
Name | Description |
---|---|
AstNodeList<T>
|
Convenience function to build an AstNodeList in a similar manner to other list types.