Kwasm.format.text.token
package kwasm.format.text.token
Classes
Name | Description |
---|---|
class FloatLiteral
|
From the docs.
And:
|
class Identifier
|
From the docs: Indices can be given in both numeric and symbolic form. Symbolic identifiers that stand in lieu
of indices start with
|
sealed class IntegerLiteral
|
From the docs: The allowed syntax for integer literals depends on size and signedness. Moreover, their value must lie within the range of the respective type
|
data class Keyword
|
Represents a text-format wasm keyword. From the docs:
|
sealed class Paren
|
Representations of Open/Close Parentheses in source WebAssembly. |
data class RawToken
|
Special Token implementation, used by the actual tokens to build instances of themselves against. |
data class Reserved
|
Represents a reserved word. From the docs:
|
open class StringLiteral
|
A String literal. From the docs:
The JVM will crash if the string is 4 billion characters, so no need to perform the check. |
interface Token
|
A base type for all valid text-format WebAssembly tokens. |
Subpackages
Name | Description |
---|---|
package kwasm.format.text.token.util
|
Methods
findFloatLiteral
fun RawToken.findFloatLiteral(): TokenMatchResult?
Receiver
Name | Description |
---|---|
RawToken
|
ReturnValue
Name | Description |
---|---|
TokenMatchResult?
|
isFloatLiteral
fun RawToken.isFloatLiteral(): Boolean
Receiver
Name | Description |
---|---|
RawToken
|
ReturnValue
Name | Description |
---|---|
Boolean
|
toFloatLiteral
fun RawToken.toFloatLiteral(): FloatLiteral
Receiver
Name | Description |
---|---|
RawToken
|
ReturnValue
Name | Description |
---|---|
FloatLiteral
|
findIdentifier
fun RawToken.findIdentifier(): TokenMatchResult?
Receiver
Name | Description |
---|---|
RawToken
|
ReturnValue
Name | Description |
---|---|
TokenMatchResult?
|
isIdentifier
fun RawToken.isIdentifier(): Boolean
Receiver
Name | Description |
---|---|
RawToken
|
ReturnValue
Name | Description |
---|---|
Boolean
|
toIdentifier
fun RawToken.toIdentifier(): Identifier
Receiver
Name | Description |
---|---|
RawToken
|
ReturnValue
Name | Description |
---|---|
Identifier
|
findIntegerLiteral
fun RawToken.findIntegerLiteral(): TokenMatchResult?
Receiver
Name | Description |
---|---|
RawToken
|
ReturnValue
Name | Description |
---|---|
TokenMatchResult?
|
isIntegerLiteral
fun RawToken.isIntegerLiteral(): Boolean
Receiver
Name | Description |
---|---|
RawToken
|
ReturnValue
Name | Description |
---|---|
Boolean
|
toIntegerLiteral
fun RawToken.toIntegerLiteral(): IntegerLiteral<*>
Receiver
Name | Description |
---|---|
RawToken
|
ReturnValue
Name | Description |
---|---|
IntegerLiteral<*>
|
findKeyword
fun RawToken.findKeyword(): TokenMatchResult?
Receiver
Name | Description |
---|---|
RawToken
|
ReturnValue
Name | Description |
---|---|
TokenMatchResult?
|
isKeyword
fun RawToken.isKeyword(): Boolean
Receiver
Name | Description |
---|---|
RawToken
|
ReturnValue
Name | Description |
---|---|
Boolean
|
toKeyword
fun RawToken.toKeyword(): Keyword
Receiver
Name | Description |
---|---|
RawToken
|
ReturnValue
Name | Description |
---|---|
Keyword
|
findParen
fun RawToken.findParen(): TokenMatchResult?
Receiver
Name | Description |
---|---|
RawToken
|
ReturnValue
Name | Description |
---|---|
TokenMatchResult?
|
isOpenParen
fun RawToken.isOpenParen(): Boolean
Receiver
Name | Description |
---|---|
RawToken
|
ReturnValue
Name | Description |
---|---|
Boolean
|
isClosedParen
fun RawToken.isClosedParen(): Boolean
Receiver
Name | Description |
---|---|
RawToken
|
ReturnValue
Name | Description |
---|---|
Boolean
|
findReserved
fun RawToken.findReserved(): TokenMatchResult?
Receiver
Name | Description |
---|---|
RawToken
|
ReturnValue
Name | Description |
---|---|
TokenMatchResult?
|
isReserved
fun RawToken.isReserved(): Boolean
Receiver
Name | Description |
---|---|
RawToken
|
ReturnValue
Name | Description |
---|---|
Boolean
|
toReserved
fun RawToken.toReserved(): Reserved
Receiver
Name | Description |
---|---|
RawToken
|
ReturnValue
Name | Description |
---|---|
Reserved
|
findStringLiteral
fun RawToken.findStringLiteral(): TokenMatchResult?
Receiver
Name | Description |
---|---|
RawToken
|
ReturnValue
Name | Description |
---|---|
TokenMatchResult?
|
isStringLiteral
fun RawToken.isStringLiteral(): Boolean
Receiver
Name | Description |
---|---|
RawToken
|
ReturnValue
Name | Description |
---|---|
Boolean
|
toStringLiteral
fun RawToken.toStringLiteral(): StringLiteral
Receiver
Name | Description |
---|---|
RawToken
|
ReturnValue
Name | Description |
---|---|
StringLiteral
|