Package-level declarations

Types

Link copied to clipboard
interface ASTParser<R : Node>
Link copied to clipboard
open class CodeProcessingResult<D>(val issues: List<Issue>, val data: D?, val code: String? = null) : Serializable

The result of processing a piece of source code.

Link copied to clipboard
Link copied to clipboard
open class KolasuToken(val category: TokenCategory, val range: Range, val text: String) : Serializable

A token is a portion of text that has been assigned a category.

Link copied to clipboard
class LexingResult<T : KolasuToken>(issues: List<Issue>, val tokens: List<T>, code: String? = null, val time: Long? = null) : CodeProcessingResult<List<T>>

The result of lexing (tokenizing) a stream.

Link copied to clipboard
open class ParsingResult<RootNode : Node>(issues: List<Issue>, val root: RootNode?, code: String? = null, val incompleteNode: Node? = null, val time: Long? = null) : CodeProcessingResult<RootNode>
Link copied to clipboard
data class TokenCategory(val type: String)

Functions

Link copied to clipboard
fun String.toStream(charset: Charset = Charsets.UTF_8): ByteArrayInputStream