Package org.partiql.parser

Types

Link copied to clipboard
class PartiQLLexerException(token: String, tokenType: String, message: String, cause: Throwable?, location: SourceLocation) : PartiQLSyntaxException

PartiQLParser Exception upon lexing.

Link copied to clipboard
interface PartiQLParser
Link copied to clipboard
class PartiQLParserBuilder

A builder class to instantiate a PartiQLParser.

Link copied to clipboard
class PartiQLParserException(rule: String, token: String, tokenType: String, message: String, cause: Throwable?, location: SourceLocation) : PartiQLSyntaxException

PartiQLParser Exception upon parsing.

Link copied to clipboard
open class PartiQLSyntaxException(message: String, cause: Throwable?, location: SourceLocation) : Exception

PartiQLParser Syntax Exception

Link copied to clipboard
data class SourceLocation(line: Int, offset: Int, length: Int, lengthLegacy: Int)

SourceLocation represents the span of a given grammar rule; which corresponds to an AST subtree.

Link copied to clipboard
class SourceLocations : Map<String, SourceLocation>

Each node is hashable and has a unique identifier. Metadata is kept externally. Delegate once we are on Kotlin 1.7